Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/io/
Dcoded_stream_unittest.cc196 CodedInputStream coded_input(&input); in TEST_2D() local
199 EXPECT_TRUE(coded_input.ReadVarint32(&value)); in TEST_2D()
211 CodedInputStream coded_input(&input); in TEST_2D() local
214 EXPECT_EQ(expected_value, coded_input.ReadTag()); in TEST_2D()
216 EXPECT_TRUE(coded_input.LastTagWas(expected_value)); in TEST_2D()
217 EXPECT_FALSE(coded_input.LastTagWas(expected_value + 1)); in TEST_2D()
257 CodedInputStream coded_input(&input); in TEST_1D() local
262 coded_input.ReadRaw(&dummy, 1); in TEST_1D()
269 EXPECT_FALSE(coded_input.ExpectTag(expected_value + 1)); in TEST_1D()
270 EXPECT_TRUE(coded_input.ExpectTag(expected_value)); in TEST_1D()
[all …]
Dzero_copy_stream_unittest.cc328 CodedInputStream* coded_input = new CodedInputStream(input); in TEST_F() local
330 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
332 EXPECT_TRUE(coded_input->ReadRaw(temp_buffer, insize)); in TEST_F()
335 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
337 EXPECT_TRUE(coded_input->ReadRaw(temp_buffer, insize)); in TEST_F()
340 delete coded_input; in TEST_F()
635 CodedInputStream* coded_input = new CodedInputStream(gzin); in TEST_F() local
637 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
639 EXPECT_TRUE(coded_input->ReadRaw(temp_buffer, insize)); in TEST_F()
643 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/util/
Ddelimited_message_util.cc60 io::CodedInputStream coded_input(input); in ParseDelimitedFromZeroCopyStream() local
61 return ParseDelimitedFromCodedStream(message, &coded_input, clean_eof); in ParseDelimitedFromZeroCopyStream()
/external/protobuf/src/google/protobuf/util/internal/
Dtype_info_test_helper.cc89 io::CodedInputStream* coded_input, const std::string& type_url) { in NewProtoSource() argument
93 return new ProtoStreamObjectSource(coded_input, type_resolver_.get(), in NewProtoSource()
Dtype_info_test_helper.h74 ProtoStreamObjectSource* NewProtoSource(io::CodedInputStream* coded_input,
/external/protobuf/src/google/protobuf/
Dunknown_field_set.cc230 io::CodedInputStream coded_input(input); in ParseFromZeroCopyStream() local
231 return (ParseFromCodedStream(&coded_input) && in ParseFromZeroCopyStream()
232 coded_input.ConsumedEntireMessage()); in ParseFromZeroCopyStream()
Dwire_format_unittest.cc414 io::CodedInputStream coded_input(&raw_input); in TEST() local
415 EXPECT_TRUE(WireFormat::ParseAndMergePartial(&coded_input, &dest)); in TEST()
1197 io::CodedInputStream coded_input(&raw_input); in TEST_F() local
1199 EXPECT_FALSE(WireFormat::SkipMessage(&coded_input, &unknown_fields)); in TEST_F()