blob: 6b5c7c436f7cb8189e41bebe9213ed5af50481d7 [file] [log] [blame]
David Reisse4d4ea02009-04-02 21:37:17 +00001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#include <stdio.h>
21
Roger Meier49ff8b12012-04-13 09:12:31 +000022#include <thrift/protocol/TBinaryProtocol.h>
23#include <thrift/protocol/TCompactProtocol.h>
24#include <thrift/transport/TBufferTransports.h>
Claudius Heine5ef662b2015-06-24 10:03:50 +020025
26#define BOOST_TEST_MODULE AllProtocolTests
27#include <boost/test/unit_test.hpp>
28
David Reisse4d4ea02009-04-02 21:37:17 +000029#include "AllProtocolTests.tcc"
30
31using namespace apache::thrift;
32using namespace apache::thrift::protocol;
33using namespace apache::thrift::transport;
34
35char errorMessage[ERR_LEN];
36
Claudius Heine5ef662b2015-06-24 10:03:50 +020037BOOST_AUTO_TEST_CASE(test_binary_protocol) {
38 testProtocol<TBinaryProtocol>("TBinaryProtocol");
39}
40
Ben Craig384f9762015-07-08 20:33:03 -050041BOOST_AUTO_TEST_CASE(test_little_binary_protocol) {
42 testProtocol<TLEBinaryProtocol>("TLEBinaryProtocol");
43}
44
Claudius Heine5ef662b2015-06-24 10:03:50 +020045BOOST_AUTO_TEST_CASE(test_compact_protocol) {
46 testProtocol<TCompactProtocol>("TCompactProtocol");
David Reisse4d4ea02009-04-02 21:37:17 +000047}