Lines Matching refs:parser_
22 DepfileParser parser_; member
28 return parser_.Parse(&input_, err); in Parse()
37 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
38 EXPECT_EQ("build/ninja.o", parser_.outs_[0].AsString()); in TEST_F()
39 EXPECT_EQ(4u, parser_.ins_.size()); in TEST_F()
58 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
59 EXPECT_EQ("foo.o", parser_.outs_[0].AsString()); in TEST_F()
60 EXPECT_EQ(2u, parser_.ins_.size()); in TEST_F()
70 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
71 EXPECT_EQ("foo.o", parser_.outs_[0].AsString()); in TEST_F()
72 EXPECT_EQ(2u, parser_.ins_.size()); in TEST_F()
85 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
87 parser_.outs_[0].AsString()); in TEST_F()
88 EXPECT_EQ(4u, parser_.ins_.size()); in TEST_F()
97 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
99 parser_.outs_[0].AsString()); in TEST_F()
100 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
102 parser_.ins_[0].AsString()); in TEST_F()
104 parser_.ins_[1].AsString()); in TEST_F()
106 parser_.ins_[2].AsString()); in TEST_F()
119 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
121 parser_.outs_[0].AsString()); in TEST_F()
122 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
124 parser_.ins_[0].AsString()); in TEST_F()
126 parser_.ins_[1].AsString()); in TEST_F()
128 parser_.ins_[2].AsString()); in TEST_F()
139 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
141 parser_.outs_[0].AsString()); in TEST_F()
142 ASSERT_EQ(0u, parser_.ins_.size()); in TEST_F()
155 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
157 parser_.outs_[0].AsString()); in TEST_F()
158 ASSERT_EQ(1u, parser_.ins_.size()); in TEST_F()
160 parser_.ins_[0].AsString()); in TEST_F()
174 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
175 EXPECT_EQ("foo1\\", parser_.outs_[0].AsString()); in TEST_F()
176 ASSERT_EQ(1u, parser_.ins_.size()); in TEST_F()
177 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
192 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
194 parser_.outs_[0].AsString()); in TEST_F()
195 ASSERT_EQ(5u, parser_.ins_.size()); in TEST_F()
197 parser_.ins_[0].AsString()); in TEST_F()
199 parser_.ins_[1].AsString()); in TEST_F()
201 parser_.ins_[2].AsString()); in TEST_F()
203 parser_.ins_[3].AsString()); in TEST_F()
205 parser_.ins_[4].AsString()); in TEST_F()
212 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
213 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
214 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
215 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
216 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
217 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()
224 ASSERT_EQ(2u, parser_.outs_.size()); in TEST_F()
225 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
226 ASSERT_EQ("bar", parser_.outs_[1].AsString()); in TEST_F()
227 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
228 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
229 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
230 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()
238 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
239 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
240 ASSERT_EQ(1u, parser_.ins_.size()); in TEST_F()
241 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
250 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
251 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
252 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
253 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
254 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
255 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()
264 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
265 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
266 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
267 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
268 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
269 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()
278 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
279 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
280 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
281 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
282 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
283 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()
292 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
293 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
294 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
295 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
296 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
297 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()
305 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
306 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
307 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
308 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
309 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
310 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()
318 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
319 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
320 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
321 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
322 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
323 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()
332 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
333 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
334 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
335 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
336 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
337 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()
348 ASSERT_EQ(1u, parser_.outs_.size()); in TEST_F()
349 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
350 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
351 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
352 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
353 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()
362 ASSERT_EQ(2u, parser_.outs_.size()); in TEST_F()
363 ASSERT_EQ("foo", parser_.outs_[0].AsString()); in TEST_F()
364 ASSERT_EQ("bar", parser_.outs_[1].AsString()); in TEST_F()
365 ASSERT_EQ(3u, parser_.ins_.size()); in TEST_F()
366 EXPECT_EQ("x", parser_.ins_[0].AsString()); in TEST_F()
367 EXPECT_EQ("y", parser_.ins_[1].AsString()); in TEST_F()
368 EXPECT_EQ("z", parser_.ins_[2].AsString()); in TEST_F()