Lines Matching refs:TestConsumer

250 void checkEventualResultWithTimeout(VerifyingConsumer &TestConsumer) {  in checkEventualResultWithTimeout()  argument
252 [&TestConsumer]() { return TestConsumer.blockUntilResult(); }); in checkEventualResultWithTimeout()
260 std::unique_lock<std::mutex> L(TestConsumer.Mtx); in checkEventualResultWithTimeout()
261 EXPECT_TRUE(TestConsumer.result().has_value()); in checkEventualResultWithTimeout()
262 if (TestConsumer.result()) { in checkEventualResultWithTimeout()
263 EXPECT_TRUE(*TestConsumer.result()); in checkEventualResultWithTimeout()
265 if ((TestConsumer.result() && !TestConsumer.result().value()) || in checkEventualResultWithTimeout()
266 !TestConsumer.result()) in checkEventualResultWithTimeout()
267 TestConsumer.printUnmetExpectations(llvm::outs()); in checkEventualResultWithTimeout()
278 VerifyingConsumer TestConsumer{ in TEST() local
294 [&TestConsumer](llvm::ArrayRef<DirectoryWatcher::Event> Events, in TEST()
296 TestConsumer.consume(Events, IsInitial); in TEST()
301 checkEventualResultWithTimeout(TestConsumer); in TEST()
311 VerifyingConsumer TestConsumer{ in TEST() local
327 [&TestConsumer](llvm::ArrayRef<DirectoryWatcher::Event> Events, in TEST()
329 TestConsumer.consume(Events, IsInitial); in TEST()
334 checkEventualResultWithTimeout(TestConsumer); in TEST()
340 VerifyingConsumer TestConsumer{ in TEST() local
349 [&TestConsumer](llvm::ArrayRef<DirectoryWatcher::Event> Events, in TEST()
351 TestConsumer.consume(Events, IsInitial); in TEST()
360 checkEventualResultWithTimeout(TestConsumer); in TEST()
368 VerifyingConsumer TestConsumer{ in TEST() local
376 [&TestConsumer](llvm::ArrayRef<DirectoryWatcher::Event> Events, in TEST()
378 TestConsumer.consume(Events, IsInitial); in TEST()
392 checkEventualResultWithTimeout(TestConsumer); in TEST()
400 VerifyingConsumer TestConsumer{ in TEST() local
408 [&TestConsumer](llvm::ArrayRef<DirectoryWatcher::Event> Events, in TEST()
410 TestConsumer.consume(Events, IsInitial); in TEST()
417 checkEventualResultWithTimeout(TestConsumer); in TEST()
423 VerifyingConsumer TestConsumer{ in TEST() local
431 [&TestConsumer](llvm::ArrayRef<DirectoryWatcher::Event> Events, in TEST()
433 TestConsumer.consume(Events, IsInitial); in TEST()
440 checkEventualResultWithTimeout(TestConsumer); in TEST()
446 VerifyingConsumer TestConsumer{ in TEST() local
453 [&TestConsumer](llvm::ArrayRef<DirectoryWatcher::Event> Events, in TEST()
455 TestConsumer.consume(Events, IsInitial); in TEST()
461 checkEventualResultWithTimeout(TestConsumer); in TEST()
472 VerifyingConsumer TestConsumer{ in TEST() local
489 [&TestConsumer, in TEST()
493 TestConsumer.consume(Events, IsInitial); in TEST()
499 checkEventualResultWithTimeout(TestConsumer); in TEST()