Lines Matching refs:protocol
45 using apache::thrift::protocol::TBinaryProtocol;
46 using apache::thrift::protocol::TCompactProtocol;
47 using apache::thrift::protocol::TJSONProtocol;
48 using apache::thrift::protocol::TType;
63 using namespace apache::thrift::protocol;
149 std::shared_ptr<TBinaryProtocol> protocol(new TBinaryProtocol(transport)); in BOOST_AUTO_TEST_CASE() local
152 TType elemType = apache::thrift::protocol::T_STOP; in BOOST_AUTO_TEST_CASE()
153 TType elemType1 = apache::thrift::protocol::T_STOP; in BOOST_AUTO_TEST_CASE()
155 protocol->writeListBegin(list.elemType_, list.size_); in BOOST_AUTO_TEST_CASE()
156 protocol->writeListEnd(); in BOOST_AUTO_TEST_CASE()
157 BOOST_CHECK_THROW(protocol->readListBegin(elemType, val), TTransportException); in BOOST_AUTO_TEST_CASE()
158 protocol->readListEnd(); in BOOST_AUTO_TEST_CASE()
161 protocol->writeSetBegin(set.elemType_, set.size_); in BOOST_AUTO_TEST_CASE()
162 protocol->writeSetEnd(); in BOOST_AUTO_TEST_CASE()
163 BOOST_CHECK_THROW(protocol->readSetBegin(elemType, val), TTransportException); in BOOST_AUTO_TEST_CASE()
164 protocol->readSetEnd(); in BOOST_AUTO_TEST_CASE()
167 protocol->writeMapBegin(map.keyType_, map.valueType_, map.size_); in BOOST_AUTO_TEST_CASE()
168 protocol->writeMapEnd(); in BOOST_AUTO_TEST_CASE()
169 BOOST_CHECK_THROW(protocol->readMapBegin(elemType, elemType1, val), TTransportException); in BOOST_AUTO_TEST_CASE()
170 protocol->readMapEnd(); in BOOST_AUTO_TEST_CASE()
176 std::shared_ptr<TCompactProtocol> protocol(new TCompactProtocol(transport)); in BOOST_AUTO_TEST_CASE() local
179 TType elemType = apache::thrift::protocol::T_STOP; in BOOST_AUTO_TEST_CASE()
180 TType elemType1 = apache::thrift::protocol::T_STOP; in BOOST_AUTO_TEST_CASE()
182 protocol->writeListBegin(list.elemType_, list.size_); in BOOST_AUTO_TEST_CASE()
183 protocol->writeListEnd(); in BOOST_AUTO_TEST_CASE()
184 BOOST_CHECK_THROW(protocol->readListBegin(elemType, val), TTransportException); in BOOST_AUTO_TEST_CASE()
185 protocol->readListEnd(); in BOOST_AUTO_TEST_CASE()
188 protocol->writeSetBegin(set.elemType_, set.size_); in BOOST_AUTO_TEST_CASE()
189 protocol->writeSetEnd(); in BOOST_AUTO_TEST_CASE()
190 BOOST_CHECK_THROW(protocol->readSetBegin(elemType, val), TTransportException); in BOOST_AUTO_TEST_CASE()
191 protocol->readSetEnd(); in BOOST_AUTO_TEST_CASE()
194 protocol->writeMapBegin(map.keyType_, map.valueType_, map.size_); in BOOST_AUTO_TEST_CASE()
195 protocol->writeMapEnd(); in BOOST_AUTO_TEST_CASE()
196 BOOST_CHECK_THROW(protocol->readMapBegin(elemType, elemType1, val), TTransportException); in BOOST_AUTO_TEST_CASE()
197 protocol->readMapEnd(); in BOOST_AUTO_TEST_CASE()
203 std::shared_ptr<TJSONProtocol> protocol(new TJSONProtocol(transport)); in BOOST_AUTO_TEST_CASE() local
206 TType elemType = apache::thrift::protocol::T_STOP; in BOOST_AUTO_TEST_CASE()
207 TType elemType1 = apache::thrift::protocol::T_STOP; in BOOST_AUTO_TEST_CASE()
209 protocol->writeListBegin(list.elemType_, list.size_); in BOOST_AUTO_TEST_CASE()
210 protocol->writeListEnd(); in BOOST_AUTO_TEST_CASE()
211 BOOST_CHECK_THROW(protocol->readListBegin(elemType, val), TTransportException); in BOOST_AUTO_TEST_CASE()
212 protocol->readListEnd(); in BOOST_AUTO_TEST_CASE()
215 protocol->writeSetBegin(set.elemType_, set.size_); in BOOST_AUTO_TEST_CASE()
216 protocol->writeSetEnd(); in BOOST_AUTO_TEST_CASE()
217 BOOST_CHECK_THROW(protocol->readSetBegin(elemType, val), TTransportException); in BOOST_AUTO_TEST_CASE()
218 protocol->readSetEnd(); in BOOST_AUTO_TEST_CASE()
221 protocol->writeMapBegin(map.keyType_, map.valueType_, map.size_); in BOOST_AUTO_TEST_CASE()
222 protocol->writeMapEnd(); in BOOST_AUTO_TEST_CASE()
223 BOOST_CHECK_THROW(protocol->readMapBegin(elemType, elemType1, val), TTransportException); in BOOST_AUTO_TEST_CASE()
224 protocol->readMapEnd(); in BOOST_AUTO_TEST_CASE()