Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/io/
Dcoded_stream_unittest.cc190 CodedInputStream coded_input(&input); in TEST_2D() local
193 EXPECT_TRUE(coded_input.ReadVarint32(&value)); in TEST_2D()
205 CodedInputStream coded_input(&input); in TEST_2D() local
208 EXPECT_EQ(expected_value, coded_input.ReadTag()); in TEST_2D()
210 EXPECT_TRUE(coded_input.LastTagWas(expected_value)); in TEST_2D()
211 EXPECT_FALSE(coded_input.LastTagWas(expected_value + 1)); in TEST_2D()
252 CodedInputStream coded_input(&input); in TEST_1D() local
257 coded_input.ReadRaw(&dummy, 1); in TEST_1D()
264 EXPECT_FALSE(coded_input.ExpectTag(expected_value + 1)); in TEST_1D()
265 EXPECT_TRUE(coded_input.ExpectTag(expected_value)); in TEST_1D()
[all …]
Dzero_copy_stream_unittest.cc319 CodedInputStream* coded_input = new CodedInputStream(input); in TEST_F() local
321 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
323 EXPECT_TRUE(coded_input->ReadRaw(temp_buffer, insize)); in TEST_F()
326 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
328 EXPECT_TRUE(coded_input->ReadRaw(temp_buffer, insize)); in TEST_F()
331 delete coded_input; in TEST_F()
632 CodedInputStream* coded_input = new CodedInputStream(gzin); in TEST_F() local
634 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
636 EXPECT_TRUE(coded_input->ReadRaw(temp_buffer, insize)); in TEST_F()
640 EXPECT_TRUE(coded_input->ReadVarint32(&insize)); in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/
Dunknown_field_set.cc207 io::CodedInputStream coded_input(input); in ParseFromZeroCopyStream() local
208 return (ParseFromCodedStream(&coded_input) && in ParseFromZeroCopyStream()
209 coded_input.ConsumedEntireMessage()); in ParseFromZeroCopyStream()
Dwire_format_unittest.cc411 io::CodedInputStream coded_input(&raw_input); in TEST() local
412 EXPECT_TRUE(WireFormat::ParseAndMergePartial(&coded_input, &dest)); in TEST()
926 io::CodedInputStream coded_input(&raw_input); in TEST_F() local
928 EXPECT_FALSE(WireFormat::SkipMessage(&coded_input, &unknown_fields)); in TEST_F()