Lines Matching refs:loop
314 brillo::FakeMessageLoop loop(nullptr); in TestUpdateCheck() local
315 loop.SetAsCurrent(); in TestUpdateCheck()
357 loop.PostTask(base::Bind([&processor] { processor.StartProcessing(); })); in TestUpdateCheck()
358 LOG(INFO) << "loop.PendingTasks() = " << loop.PendingTasks(); in TestUpdateCheck()
359 loop.Run(); in TestUpdateCheck()
360 LOG(INFO) << "loop.PendingTasks() = " << loop.PendingTasks(); in TestUpdateCheck()
361 EXPECT_FALSE(loop.PendingTasks()); in TestUpdateCheck()
376 brillo::FakeMessageLoop loop(nullptr); in TestEvent() local
377 loop.SetAsCurrent(); in TestEvent()
392 loop.PostTask(base::Bind([&processor] { processor.StartProcessing(); })); in TestEvent()
393 loop.Run(); in TestEvent()
397 EXPECT_EQ(event->result == OmahaEvent::kResultError, loop.PendingTasks()); in TestEvent()
845 brillo::FakeMessageLoop loop(nullptr); in TEST_F() local
846 loop.SetAsCurrent(); in TEST_F()
861 loop.PostTask(base::Bind([&processor] { processor.StartProcessing(); })); in TEST_F()
862 loop.Run(); in TEST_F()
863 EXPECT_FALSE(loop.PendingTasks()); in TEST_F()
1016 brillo::FakeMessageLoop loop(nullptr); in TEST_F() local
1017 loop.SetAsCurrent(); in TEST_F()
1031 loop.PostTask(base::Bind(&TerminateTransferTestStarter, &processor)); in TEST_F()
1032 loop.Run(); in TEST_F()
1033 EXPECT_FALSE(loop.PendingTasks()); in TEST_F()