Home | History | Annotate | Download | only in src

Lines Matching full:parser

35   VCDiffHeaderParserTest() : parser(NULL) { }
38 delete parser;
46 parser = new VCDiffHeaderParser(
49 EXPECT_EQ(encoded_buffer_.data(), parser->UnparsedData());
54 const char* prior_position = parser->UnparsedData();
55 EXPECT_TRUE(parser->ParseByte(&decoded_byte));
57 EXPECT_EQ(RESULT_SUCCESS, parser->GetResult());
59 parser->UnparsedData());
64 const char* prior_position = parser->UnparsedData();
65 EXPECT_TRUE(parser->ParseInt32("decoded int32", &decoded_integer));
67 EXPECT_EQ(RESULT_SUCCESS, parser->GetResult());
69 parser->UnparsedData());
74 const char* prior_position = parser->UnparsedData();
75 EXPECT_TRUE(parser->ParseUInt32("decoded uint32", &decoded_integer));
77 EXPECT_EQ(RESULT_SUCCESS, parser->GetResult());
79 parser->UnparsedData());
84 const char* prior_position = parser->UnparsedData();
85 EXPECT_TRUE(parser->ParseChecksum("decoded checksum", &decoded_checksum));
87 EXPECT_EQ(RESULT_SUCCESS, parser->GetResult());
89 parser->UnparsedData());
93 VCDiffHeaderParser* parser;
108 EXPECT_FALSE(parser->ParseByte(&decoded_byte));
109 EXPECT_EQ(RESULT_END_OF_DATA, parser->GetResult());
111 parser->UnparsedData());
126 EXPECT_FALSE(parser->ParseInt32("decoded integer", &decoded_integer));
127 EXPECT_EQ(RESULT_END_OF_DATA, parser->GetResult());
129 parser->UnparsedData());
144 EXPECT_FALSE(parser->ParseUInt32("decoded integer", &decoded_integer));
145 EXPECT_EQ(RESULT_END_OF_DATA, parser->GetResult());
147 parser->UnparsedData());
163 EXPECT_FALSE(parser->ParseChecksum("decoded checksum", &decoded_checksum));
164 EXPECT_EQ(RESULT_END_OF_DATA, parser->GetResult());
166 parser->UnparsedData());
182 EXPECT_FALSE(parser->ParseInt32("incomplete Varint", &incomplete_int32));
184 EXPECT_EQ(RESULT_END_OF_DATA, parser->GetResult());
186 parser->UnparsedData());
196 EXPECT_FALSE(parser->ParseInt32("invalid Varint", &invalid_int32));
198 EXPECT_EQ(RESULT_ERROR, parser->GetResult());
199 EXPECT_EQ(encoded_buffer_.data(), parser->UnparsedData());
203 EXPECT_FALSE(parser->ParseByte(&decoded_byte));
205 EXPECT_EQ(RESULT_ERROR, parser->GetResult());
206 EXPECT_EQ(encoded_buffer_.data(), parser->UnparsedData());