Home
last modified time | relevance | path

Searched refs:coded_input (Results 1 – 6 of 6) sorted by relevance

/external/protobuf/src/google/protobuf/io/
Dcoded_stream_unittest.cc197 CodedInputStream coded_input(&input); in TEST_2D() local
200 EXPECT_TRUE(coded_input.ReadVarint32(&value)); in TEST_2D()
212 CodedInputStream coded_input(&input); in TEST_2D() local
215 EXPECT_EQ(expected_value, coded_input.ReadTag()); in TEST_2D()
217 EXPECT_TRUE(coded_input.LastTagWas(expected_value)); in TEST_2D()
218 EXPECT_FALSE(coded_input.LastTagWas(expected_value + 1)); in TEST_2D()
259 CodedInputStream coded_input(&input); in TEST_1D() local
264 coded_input.ReadRaw(&dummy, 1); in TEST_1D()
271 EXPECT_FALSE(coded_input.ExpectTag(expected_value + 1)); in TEST_1D()
272 EXPECT_TRUE(coded_input.ExpectTag(expected_value)); in TEST_1D()
[all …]
Dzero_copy_stream_unittest.cc324 CodedInputStream* coded_input = new CodedInputStream(input); in TEST_F() local
326 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
328 EXPECT_TRUE(coded_input->ReadRaw(temp_buffer, insize)); in TEST_F()
331 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
333 EXPECT_TRUE(coded_input->ReadRaw(temp_buffer, insize)); in TEST_F()
336 delete coded_input; in TEST_F()
637 CodedInputStream* coded_input = new CodedInputStream(gzin); in TEST_F() local
639 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
641 EXPECT_TRUE(coded_input->ReadRaw(temp_buffer, insize)); in TEST_F()
645 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Dtype_info_test_helper.cc92 io::CodedInputStream* coded_input, const string& type_url) { in NewProtoSource() argument
96 return new ProtoStreamObjectSource(coded_input, type_resolver_.get(), in NewProtoSource()
Dtype_info_test_helper.h77 ProtoStreamObjectSource* NewProtoSource(io::CodedInputStream* coded_input,
/external/protobuf/src/google/protobuf/
Dunknown_field_set.cc273 io::CodedInputStream coded_input(input); in ParseFromZeroCopyStream() local
274 return (ParseFromCodedStream(&coded_input) && in ParseFromZeroCopyStream()
275 coded_input.ConsumedEntireMessage()); in ParseFromZeroCopyStream()
Dwire_format_unittest.cc415 io::CodedInputStream coded_input(&raw_input); in TEST() local
416 EXPECT_TRUE(WireFormat::ParseAndMergePartial(&coded_input, &dest)); in TEST()
1093 io::CodedInputStream coded_input(&raw_input); in TEST_F() local
1095 EXPECT_FALSE(WireFormat::SkipMessage(&coded_input, &unknown_fields)); in TEST_F()