Home
last modified time | relevance | path

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

/system/update_engine/
Dproxy_resolver_unittest.cc37 void SetUp() override { loop_.SetAsCurrent(); } in SetUp()
39 void TearDown() override { EXPECT_FALSE(loop_.PendingTasks()); } in TearDown()
41 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_engine::ProxyResolverTest
62 loop_.Run(); in TEST_F()
76 loop_.Run(); in TEST_F()
88 loop_.Run(); in TEST_F()
Dupdate_attempter_unittest.cc124 loop_.SetAsCurrent(); in UpdateAttempterTest()
187 brillo::BaseMessageLoop loop_{&base_loop_}; member in chromeos_update_engine::UpdateAttempterTest
209 loop_.PostTask( in ScheduleQuitMainLoop()
212 base::Unretained(&loop_))); in ScheduleQuitMainLoop()
405 loop_.PostTask(FROM_HERE, in UpdateTestStart()
425 loop_.BreakLoop(); in UpdateTestVerify()
475 loop_.PostTask(FROM_HERE, in RollbackTestStart()
480 loop_.BreakLoop(); in RollbackTestStart()
500 loop_.BreakLoop(); in RollbackTestVerify()
505 loop_.Run(); in TEST_F()
[all …]
Dp2p_manager_unittest.cc74 loop_.SetAsCurrent(); in SetUp()
92 brillo::BaseMessageLoop loop_{&base_loop_}; member in chromeos_update_engine::P2PManagerTest
480 loop_.Run(); in TEST_F()
486 loop_.Run(); in TEST_F()
492 loop_.Run(); in TEST_F()
499 loop_.Run(); in TEST_F()
505 loop_.Run(); in TEST_F()
523 loop_.Run(); in TEST_F()
Dconnection_manager_unittest.cc53 loop_.SetAsCurrent(); in SetUp()
57 void TearDown() override { EXPECT_FALSE(loop_.PendingTasks()); } in TearDown()
81 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_engine::ConnectionManagerTest
/system/update_engine/update_manager/
Dreal_device_policy_provider_unittest.cc61 loop_.SetAsCurrent(); in SetUp()
87 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()
195 loop_.RunOnce(false); in TEST_F()
232 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()
512 EXPECT_TRUE(loop_.RunOnce(false)); in TEST_F()
524 EXPECT_TRUE(loop_.RunOnce(false)); in TEST_F()
Dgeneric_variables_unittest.cc152 loop_.SetAsCurrent(); in SetUp()
157 EXPECT_FALSE(loop_.PendingTasks()); in TearDown()
161 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_manager::UmAsyncCopyVariableTest
Dupdate_manager_unittest.cc80 loop_.SetAsCurrent(); in SetUp()
87 EXPECT_FALSE(loop_.PendingTasks()); in TearDown()
91 brillo::FakeMessageLoop loop_{&test_clock_}; member in chromeos_update_manager::UmUpdateManagerTest
Dvariable_unittest.cc57 loop_.SetAsCurrent(); in SetUp()
60 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_manager::UmBaseVariableTest
Devaluation_context_unittest.cc89 loop_.SetAsCurrent(); in SetUp()
119 EXPECT_FALSE(loop_.PendingTasks()); in TearDown()
124 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_manager::UmEvaluationContextTest
Dchromeos_policy_unittest.cc49 loop_.SetAsCurrent(); in SetUp()
57 EXPECT_FALSE(loop_.PendingTasks()); in TearDown()
200 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_manager::UmChromeOSPolicyTest
/system/update_engine/common/
Dsubprocess_unittest.cc68 loop_.SetAsCurrent(); in SetUp()
74 brillo::BaseMessageLoop loop_{&base_loop_}; member in chromeos_update_engine::SubprocessTest
136 loop_.Run(); in TEST_F()
143 loop_.Run(); in TEST_F()
152 loop_.Run(); in TEST_F()
166 loop_.Run(); in TEST_F()
183 loop_.Run(); in TEST_F()
189 loop_.Run(); in TEST_F()
259 loop_.WatchFileDescriptor(FROM_HERE, in TEST_F()
274 &loop_, in TEST_F()
Dhttp_fetcher_unittest.cc380 brillo::BaseMessageLoop loop_{&base_loop_}; member in chromeos_update_engine::HttpFetcherTest
386 loop_.SetAsCurrent(); in HttpFetcherTest()
390 EXPECT_EQ(0, brillo::MessageLoopRunMaxIterations(&loop_, 1)); in TearDown()
465 this->loop_.PostTask(FROM_HERE, base::Bind( in TYPED_TEST()
469 this->loop_.Run(); in TYPED_TEST()
481 this->loop_.PostTask(FROM_HERE, base::Bind( in TYPED_TEST()
485 this->loop_.Run(); in TYPED_TEST()
505 this->loop_.PostTask(FROM_HERE, base::Bind( in TYPED_TEST()
509 this->loop_.Run(); in TYPED_TEST()
543 this->loop_.PostTask( in TYPED_TEST()
[all …]
/system/update_engine/payload_consumer/
Dpostinstall_runner_action_unittest.cc88 loop_.SetAsCurrent(); in SetUp()
117 loop_.PostDelayedTask( in SuspendRunningAction()
125 loop_.PostDelayedTask( in SuspendRunningAction()
136 loop_.PostDelayedTask( in CancelWhenStarted()
149 brillo::BaseMessageLoop loop_{&base_loop_}; member in chromeos_update_engine::PostinstallRunnerActionTest
196 loop_.PostTask( in RunPosinstallAction()
201 loop_.Run(); in RunPosinstallAction()
320 loop_.PostTask(FROM_HERE, in TEST_F()
Dfilesystem_verifier_action_unittest.cc50 loop_.SetAsCurrent(); in SetUp()
54 EXPECT_EQ(0, brillo::MessageLoopRunMaxIterations(&loop_, 1)); in TearDown()
60 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_engine::FilesystemVerifierActionTest
185 loop_.PostTask(FROM_HERE, base::Bind(&StartProcessorInRunLoop, in DoTest()
189 loop_.Run(); in DoTest()
299 while (loop_.RunOnce(false)) {} in TEST_F()
Ddownload_action_unittest.cc422 loop_.SetAsCurrent(); in SetUp()
427 EXPECT_FALSE(loop_.PendingTasks()); in TearDown()
485 loop_.PostTask(FROM_HERE, base::Bind( in StartDownload()
488 loop_.Run(); in StartDownload()
492 brillo::FakeMessageLoop loop_{nullptr}; member in chromeos_update_engine::P2PDownloadActionTest
/system/extras/simpleperf/
Devent_selection_set.cpp533 if (!event_fd->StartPolling(*loop_, [this]() { in PrepareToReadMmapEventData()
541 if (!sampler->StartPolling(*loop_, callback, in PrepareToReadMmapEventData()
641 loop_.reset(new IOEventLoop); in FinishReadMmapEventData()
645 return loop_->ExitLoop(); in FinishReadMmapEventData()
653 if (!sampler->StopProfiling(*loop_, close_callback)) { in FinishReadMmapEventData()
669 if (!loop_->AddPeriodicEvent(tv, [&]() { return loop_->ExitLoop(); })) { in FinishReadMmapEventData()
672 return loop_->RunLoop(); in FinishReadMmapEventData()
679 if (!loop_->AddPeriodicEvent(SecondToTimeval(check_interval_in_sec), in HandleCpuHotplugEvents()
822 !fd_with_buffer->StartPolling(*loop_, [this]() { in CreateMappedBufferForCpu()
831 return loop_->AddPeriodicEvent(SecondToTimeval(check_interval_in_sec), in StopWhenNoMoreTargets()
[all …]
Devent_selection_set.h70 : for_stat_cmd_(for_stat_cmd), mmap_pages_(0), loop_(new IOEventLoop) {} in EventSelectionSet()
109 return loop_.get(); in GetIOEventLoop()
164 std::unique_ptr<IOEventLoop> loop_; variable
Dinplace_sampler_lib.cpp93 IOEventLoop loop_; member in __anon4713fb340111::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()
/system/core/libappfuse/tests/
DFuseAppLoopTest.cc90 std::unique_ptr<FuseAppLoop> loop_; member in android::fuse::__anon70b134a80111::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()