Home
last modified time | relevance | path

Searched refs:loop_ (Results 1 – 21 of 21) sorted by relevance

/system/update_engine/common/
Dproxy_resolver_unittest.cc36 void SetUp() override { loop_.SetAsCurrent(); } in SetUp()
38 void TearDown() override { EXPECT_FALSE(loop_.PendingTasks()); } in TearDown()
40 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_engine::ProxyResolverTest
61 loop_.Run(); in TEST_F()
75 loop_.Run(); in TEST_F()
87 loop_.Run(); in TEST_F()
Dsubprocess_unittest.cc67 loop_.SetAsCurrent(); in SetUp()
73 brillo::BaseMessageLoop loop_{&base_loop_}; member in chromeos_update_engine::SubprocessTest
137 loop_.Run(); in TEST_F()
144 loop_.Run(); in TEST_F()
153 loop_.Run(); in TEST_F()
167 loop_.Run(); in TEST_F()
184 loop_.Run(); in TEST_F()
190 loop_.Run(); in TEST_F()
258 loop_.WatchFileDescriptor(FROM_HERE, in TEST_F()
277 &loop_, TimeDelta::FromSeconds(120), base::Bind([] { in TEST_F()
Dhttp_fetcher_unittest.cc402 brillo::BaseMessageLoop loop_{&base_loop_}; member in chromeos_update_engine::HttpFetcherTest
407 HttpFetcherTest() { loop_.SetAsCurrent(); } in HttpFetcherTest()
410 EXPECT_EQ(0, brillo::MessageLoopRunMaxIterations(&loop_, 1)); in TearDown()
485 this->loop_.PostTask(FROM_HERE, in TYPED_TEST()
489 this->loop_.Run(); in TYPED_TEST()
501 this->loop_.PostTask( in TYPED_TEST()
505 this->loop_.Run(); in TYPED_TEST()
525 this->loop_.PostTask(FROM_HERE, in TYPED_TEST()
529 this->loop_.Run(); in TYPED_TEST()
563 this->loop_.PostTask( in TYPED_TEST()
[all …]
/system/update_engine/update_manager/
Dreal_device_policy_provider_unittest.cc64 loop_.SetAsCurrent(); in SetUp()
89 EXPECT_FALSE(loop_.PendingTasks()); in TearDown()
108 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_manager::UmRealDevicePolicyProviderTest
123 loop_.RunOnce(false); in TEST_F()
136 loop_.RunOnce(false); in TEST_F()
149 loop_.RunOnce(false); in TEST_F()
160 loop_.RunOnce(false); in TEST_F()
173 loop_.RunOnce(false); in TEST_F()
202 loop_.RunOnce(false); in TEST_F()
243 loop_.RunOnce(false); in TEST_F()
[all …]
Dreal_shill_provider_unittest.cc69 loop_.SetAsCurrent(); in SetUp()
83 EXPECT_FALSE(loop_.PendingTasks()); in TearDown()
123 EXPECT_TRUE(loop_.RunOnce(false)); in InitWithDefaultService()
206 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_manager::UmRealShillProviderTest
300 EXPECT_TRUE(loop_.RunOnce(false)); in TEST_F()
507 EXPECT_TRUE(loop_.RunOnce(false)); in TEST_F()
519 EXPECT_TRUE(loop_.RunOnce(false)); in TEST_F()
Dgeneric_variables_unittest.cc146 void SetUp() override { loop_.SetAsCurrent(); } in SetUp()
150 EXPECT_FALSE(loop_.PendingTasks()); in TearDown()
153 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_manager::UmAsyncCopyVariableTest
Dpolicy_test_utils.cc35 loop_.SetAsCurrent(); in SetUp()
42 EXPECT_FALSE(loop_.PendingTasks()); in TearDown()
Dupdate_manager_unittest.cc82 loop_.SetAsCurrent(); in SetUp()
90 void TearDown() override { EXPECT_FALSE(loop_.PendingTasks()); } in TearDown()
93 brillo::FakeMessageLoop loop_{&test_clock_}; member in chromeos_update_manager::UmUpdateManagerTest
Dvariable_unittest.cc55 void SetUp() override { loop_.SetAsCurrent(); } in SetUp()
57 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_manager::UmBaseVariableTest
Dpolicy_test_utils.h93 brillo::FakeMessageLoop loop_{nullptr};
Devaluation_context_unittest.cc90 loop_.SetAsCurrent(); in SetUp()
122 EXPECT_FALSE(loop_.PendingTasks()); in TearDown()
127 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_manager::UmEvaluationContextTest
/system/update_engine/
Dupdate_attempter_unittest.cc135 loop_.SetAsCurrent(); in UpdateAttempterTest()
207 brillo::BaseMessageLoop loop_{&base_loop_}; member in chromeos_update_engine::UpdateAttempterTest
224 loop_.PostTask( in ScheduleQuitMainLoop()
227 base::Unretained(&loop_))); in ScheduleQuitMainLoop()
510 loop_.PostTask(FROM_HERE, in UpdateTestStart()
519 loop_.BreakLoop(); in UpdateTestVerify()
568 loop_.PostTask(FROM_HERE, in RollbackTestStart()
573 loop_.BreakLoop(); in RollbackTestStart()
583 loop_.BreakLoop(); in RollbackTestVerify()
588 loop_.Run(); in TEST_F()
[all …]
Dp2p_manager_unittest.cc75 loop_.SetAsCurrent(); in SetUp()
96 brillo::BaseMessageLoop loop_{&base_loop_}; member in chromeos_update_engine::P2PManagerTest
481 loop_.Run(); in TEST_F()
487 loop_.Run(); in TEST_F()
493 loop_.Run(); in TEST_F()
499 loop_.Run(); in TEST_F()
505 loop_.Run(); in TEST_F()
525 loop_.Run(); in TEST_F()
Dconnection_manager_unittest.cc54 loop_.SetAsCurrent(); in SetUp()
58 void TearDown() override { EXPECT_FALSE(loop_.PendingTasks()); } in TearDown()
83 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_engine::ConnectionManagerTest
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action_unittest.cc41 void SetUp() override { loop_.SetAsCurrent(); } in SetUp()
44 EXPECT_EQ(0, brillo::MessageLoopRunMaxIterations(&loop_, 1)); in TearDown()
52 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_engine::FilesystemVerifierActionTest
144 loop_.PostTask(FROM_HERE, in DoTest()
154 loop_.Run(); in DoTest()
271 while (loop_.RunOnce(false)) { in TEST_F()
325 loop_.PostTask( in TEST_F()
330 loop_.Run(); in TEST_F()
372 loop_.PostTask( in TEST_F()
377 loop_.Run(); in TEST_F()
Dpostinstall_runner_action_unittest.cc88 loop_.SetAsCurrent(); in SetUp()
118 loop_.PostDelayedTask( in SuspendRunningAction()
126 loop_.PostDelayedTask( in SuspendRunningAction()
137 loop_.PostDelayedTask( in CancelWhenStarted()
150 brillo::BaseMessageLoop loop_{&base_loop_}; member in chromeos_update_engine::PostinstallRunnerActionTest
201 loop_.PostTask( in RunPostinstallAction()
206 loop_.Run(); in RunPostinstallAction()
347 loop_.PostTask(FROM_HERE, in TEST_F()
Ddownload_action_unittest.cc522 void SetUp() override { loop_.SetAsCurrent(); } in SetUp()
525 void TearDown() override { EXPECT_FALSE(loop_.PendingTasks()); } in TearDown()
584 loop_.PostTask( in StartDownload()
593 loop_.Run(); in StartDownload()
597 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_engine::P2PDownloadActionTest
/system/extras/simpleperf/
Devent_selection_set.cpp133 : for_stat_cmd_(for_stat_cmd), loop_(new IOEventLoop) {} in EventSelectionSet()
622 if (!record_read_thread_->RegisterDataCallback(*loop_, in PrepareToReadMmapEventData()
673 loop_.reset(new IOEventLoop); in FinishReadMmapEventData()
677 return loop_->ExitLoop(); in FinishReadMmapEventData()
685 if (!sampler->StopProfiling(*loop_, close_callback)) { in FinishReadMmapEventData()
701 if (!loop_->AddPeriodicEvent(tv, [&]() { return loop_->ExitLoop(); })) { in FinishReadMmapEventData()
704 return loop_->RunLoop(); in FinishReadMmapEventData()
716 if (!loop_->AddPeriodicEvent(SecondToTimeval(check_interval_in_sec), in HandleCpuHotplugEvents()
859 return loop_->AddPeriodicEvent(SecondToTimeval(check_interval_in_sec), in StopWhenNoMoreTargets()
865 return loop_->ExitLoop(); in CheckMonitoredTargets()
[all …]
Dinplace_sampler_lib.cpp93 IOEventLoop loop_; member in __anon56195e7e0111::SampleManager
101 return loop_.ExitLoop(); in Run()
103 if (!conn_->PrepareForIO(loop_, read_callback, close_callback)) { in Run()
106 loop_.RunLoop(); in Run()
194 return loop_.AddPeriodicEvent(tv, [&]() { in StartProfiling()
Devent_selection_set.h132 return loop_.get(); in GetIOEventLoop()
188 std::unique_ptr<IOEventLoop> loop_; variable
/system/core/libappfuse/tests/
DFuseAppLoopTest.cc90 std::unique_ptr<FuseAppLoop> loop_; member in android::fuse::__anon239256b20111::FuseAppLoopTest
95 loop_.reset(new FuseAppLoop(std::move(sockets_[1]))); in SetUp()
96 callback_.loop = loop_.get(); in SetUp()
97 thread_ = std::thread([this] { loop_->Start(&callback_); }); in SetUp()
292 loop_->Break(); in TEST_F()