/external/libbrillo/brillo/message_loops/ |
D | message_loop_unittest.cc | 38 EXPECT_TRUE(this->loop_.get()); in SetUp() 43 std::unique_ptr<MessageLoop> loop_; member in brillo::MessageLoopTest 53 loop_.reset(new GlibMessageLoop()); in MessageLoopSetUp() 59 loop_.reset(new BaseMessageLoop(base::MessageLoopForIO::current())); in MessageLoopSetUp() 71 EXPECT_FALSE(this->loop_->CancelTask(MessageLoop::kTaskIdNull)); in TYPED_TEST() 72 EXPECT_FALSE(this->loop_->CancelTask(1234)); in TYPED_TEST() 77 TaskId task_id = this->loop_->PostTask(FROM_HERE, in TYPED_TEST() 80 MessageLoopRunMaxIterations(this->loop_.get(), 100); in TYPED_TEST() 87 TaskId task_id = this->loop_->PostTask(FROM_HERE, in TYPED_TEST() 89 EXPECT_TRUE(this->loop_->CancelTask(task_id)); in TYPED_TEST() [all …]
|
D | fake_message_loop_unittest.cc | 30 loop_.reset(new FakeMessageLoop(nullptr)); in SetUp() 31 EXPECT_TRUE(loop_.get()); in SetUp() 34 EXPECT_FALSE(loop_->PendingTasks()); in TearDown() 38 std::unique_ptr<FakeMessageLoop> loop_; member in brillo::FakeMessageLoopTest 42 EXPECT_FALSE(loop_->CancelTask(MessageLoop::kTaskIdNull)); in TEST_F() 43 EXPECT_FALSE(loop_->CancelTask(1234)); in TEST_F() 51 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 1), in TEST_F() 53 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 4), in TEST_F() 55 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 3), in TEST_F() 57 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 2), in TEST_F() [all …]
|
D | glib_message_loop_unittest.cc | 30 loop_.reset(new GlibMessageLoop()); in SetUp() 31 EXPECT_TRUE(loop_.get()); in SetUp() 34 std::unique_ptr<GlibMessageLoop> loop_; member in brillo::GlibMessageLoopTest 43 TaskId task_id = loop_->WatchFileDescriptor( in TEST_F() 47 EXPECT_NE(0, MessageLoopRunMaxIterations(loop_.get(), 10)); in TEST_F() 49 EXPECT_TRUE(loop_->CancelTask(task_id)); in TEST_F() 56 TaskId task_id = loop_->WatchFileDescriptor( in TEST_F() 64 EXPECT_NE(0, MessageLoopRunMaxIterations(loop_.get(), 10)); in TEST_F() 66 EXPECT_TRUE(loop_->CancelTask(task_id)); in TEST_F()
|
D | base_message_loop.cc | 317 : location_(location), loop_(loop), task_id_(task_id), in IOTask() 321 return loop_->base_loop_->WatchFileDescriptor( in StartWatching() 355 bool base_scheduled = loop_->base_loop_->task_runner()->PostTask( in OnFileReady() 358 loop_->weak_ptr_factory_.GetWeakPtr(), in OnFileReady() 378 BaseMessageLoop* loop_ptr = loop_; in OnFileReadyPostedTask() 386 loop_->io_tasks_.erase(task_id_); in OnFileReadyPostedTask() 408 loop_->io_tasks_.erase(task_id_); in OnFileReadyPostedTask() 429 loop_->io_tasks_.erase(task_id_); in CancelTask()
|
D | glib_message_loop.cc | 17 loop_ = g_main_loop_new(g_main_context_default(), FALSE); in GlibMessageLoop() 28 g_main_loop_unref(loop_); in ~GlibMessageLoop() 145 g_main_loop_run(loop_); in Run() 149 g_main_loop_quit(loop_); in BreakLoop()
|
D | glib_message_loop.h | 60 GMainLoop* loop_; variable
|
D | base_message_loop.h | 126 BaseMessageLoop* loop_; variable
|
/external/libchrome/base/ |
D | run_loop.cc | 14 : loop_(MessageLoop::current()), in RunLoop() 35 loop_->RunHandler(); in Run() 48 if (running_ && loop_->run_loop_ == this) { in Quit() 50 loop_->QuitNow(); in Quit() 75 previous_run_loop_ = loop_->run_loop_; in BeforeRun() 77 loop_->run_loop_ = this; in BeforeRun() 80 loop_->NotifyBeginNestedLoop(); in BeforeRun() 90 loop_->run_loop_ = previous_run_loop_; in AfterRun() 94 loop_->QuitNow(); in AfterRun()
|
D | observer_list_unittest.cc | 98 loop_(nullptr), in AddRemoveThread() 110 loop_ = new MessageLoop(); // Fire up a message loop. in ThreadMain() 111 loop_->task_runner()->PostTask( in ThreadMain() 117 delete loop_; in ThreadMain() 118 loop_ = reinterpret_cast<MessageLoop*>(0xdeadbeef); in ThreadMain() 141 loop_->task_runner()->PostTask( in AddTask() 147 loop_->task_runner()->PostTask(FROM_HERE, in Quit() 159 EXPECT_EQ(loop_, MessageLoop::current()); in Observe() 167 MessageLoop* loop_; member in base::__anonf2975cd40111::AddRemoveThread
|
D | run_loop.h | 92 MessageLoop* loop_; variable
|
/external/libchrome/base/message_loop/ |
D | message_loop.h | 337 : loop_(loop), in ScopedNestableTaskAllower() 338 old_state_(loop_->NestableTasksAllowed()) { in ScopedNestableTaskAllower() 339 loop_->SetNestableTasksAllowed(true); in ScopedNestableTaskAllower() 342 loop_->SetNestableTasksAllowed(old_state_); in ~ScopedNestableTaskAllower() 346 MessageLoop* loop_;
|
D | message_pump_glib_unittest.cc | 161 MessagePumpGLibTest() : loop_(NULL), injector_(NULL) { } in MessagePumpGLibTest() 165 loop_ = new MessageLoop(MessageLoop::TYPE_UI); in SetUp() 171 delete loop_; in TearDown() 172 loop_ = NULL; in TearDown() 175 MessageLoop* loop() const { return loop_; } in loop() 179 MessageLoop* loop_; member in base::__anonbba8ca210111::MessagePumpGLibTest
|
D | message_loop_task_runner_unittest.cc | 263 loop_.task_runner()->PostTask(FROM_HERE, in Quit() 315 mutable MessageLoop loop_; member in base::MessageLoopTaskRunnerThreadingTest
|
/external/libchrome/base/files/ |
D | file_path_watcher_unittest.cc | 200 loop_.PostDelayedTask(FROM_HERE, in WaitForEvents() 209 MessageLoop loop_; member in base::__anonf96a742c0111::FilePathWatcherTest 291 loop_(loop) { in Deleter() 297 loop_->task_runner()->PostTask(FROM_HERE, in OnFileChanged() 305 MessageLoop* loop_; member in base::__anonf96a742c0111::Deleter 314 std::unique_ptr<Deleter> deleter(new Deleter(watcher, &loop_)); in TEST_F() 897 loop_.task_runner()->PostDelayedTask(FROM_HERE, in TEST_F()
|
D | important_file_writer_unittest.cc | 97 MessageLoop loop_; member in base::ImportantFileWriterTest
|
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | bindings_perftest.cc | 98 base::MessageLoop loop_; member in mojo::__anonbe7796bc0111::MojoBindingsPerftest
|
D | bind_task_runner_unittest.cc | 194 base::MessageLoop loop_; member in mojo::test::__anon4c1b2fc90111::BindTaskRunnerTest 235 base::MessageLoop loop_; member in mojo::test::__anon4c1b2fc90111::AssociatedBindTaskRunnerTest
|
D | binding_unittest.cc | 29 base::MessageLoop& loop() { return loop_; } in loop() 32 base::MessageLoop loop_; member in mojo::__anon4f44f45c0111::BindingTestBase
|
D | associated_interface_unittest.cc | 122 if (loop_.task_runner()->BelongsToCurrentThread()) { in QuitRunLoop() 125 loop_.task_runner()->PostTask( in QuitRunLoop() 133 base::MessageLoop loop_; member in mojo::test::__anoncb765ed10111::AssociatedInterfaceTest
|
D | request_response_unittest.cc | 93 base::MessageLoop loop_; member in mojo::test::__anon6defbb180111::RequestResponseTest
|
D | binding_callback_unittest.cc | 135 base::MessageLoop loop_; member in mojo::test::__anonce13d5480111::BindingCallbackTest
|
D | router_unittest.cc | 38 base::MessageLoop loop_; member in mojo::test::__anon4b656c020111::RouterTest
|
D | multiplex_router_unittest.cc | 63 base::MessageLoop loop_; member in mojo::test::__anonbeb860050111::MultiplexRouterTest
|
D | handle_passing_unittest.cc | 163 base::MessageLoop loop_; member in mojo::test::__anon22a2ad010111::HandlePassingTest
|
D | pickle_unittest.cc | 181 base::MessageLoop loop_; member in mojo::test::__anonfbcc6df90111::PickleTest
|