Lines Matching refs:tokenizer
20 PEMTokenizer tokenizer(string_piece, accepted_types);
21 EXPECT_TRUE(tokenizer.GetNext());
23 EXPECT_EQ("EXPECTED-BLOCK", tokenizer.block_type());
24 EXPECT_EQ("MatchesAcceptedBlockType", tokenizer.data());
26 EXPECT_FALSE(tokenizer.GetNext());
38 PEMTokenizer tokenizer(string_piece, accepted_types);
39 EXPECT_TRUE(tokenizer.GetNext());
41 EXPECT_EQ("EXPECTED-BLOCK", tokenizer.block_type());
42 EXPECT_EQ("MatchesAcceptedBlockType", tokenizer.data());
44 EXPECT_FALSE(tokenizer.GetNext());
56 PEMTokenizer tokenizer(string_piece, accepted_types);
57 EXPECT_FALSE(tokenizer.GetNext());
73 PEMTokenizer tokenizer(string_piece, accepted_types);
74 EXPECT_TRUE(tokenizer.GetNext());
76 EXPECT_EQ("BLOCK-ONE", tokenizer.block_type());
77 EXPECT_EQ("EncodedDataOne", tokenizer.data());
79 EXPECT_TRUE(tokenizer.GetNext());
81 EXPECT_EQ("BLOCK-TWO", tokenizer.block_type());
82 EXPECT_EQ("EncodedDataTwo", tokenizer.data());
84 EXPECT_FALSE(tokenizer.GetNext());
98 PEMTokenizer tokenizer(string_piece, accepted_types);
99 EXPECT_TRUE(tokenizer.GetNext());
101 EXPECT_EQ("MISSING-FOOTER", tokenizer.block_type());
102 EXPECT_EQ("EncodedDataOne", tokenizer.data());
104 EXPECT_FALSE(tokenizer.GetNext());
122 PEMTokenizer tokenizer(string_piece, accepted_types);
123 EXPECT_TRUE(tokenizer.GetNext());
125 EXPECT_EQ("BLOCK-ONE", tokenizer.block_type());
126 EXPECT_EQ("EncodedDataThree", tokenizer.data());
128 EXPECT_FALSE(tokenizer.GetNext());
139 PEMTokenizer tokenizer(string_piece, accepted_types);
140 EXPECT_FALSE(tokenizer.GetNext());
160 PEMTokenizer tokenizer(string_piece, accepted_types);
161 EXPECT_TRUE(tokenizer.GetNext());
163 EXPECT_EQ("BLOCK-ONE", tokenizer.block_type());
164 EXPECT_EQ("EncodedDataTwo", tokenizer.data());
166 EXPECT_FALSE(tokenizer.GetNext());