Home
last modified time | relevance | path

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

12

/external/libbrillo/brillo/message_loops/
Dmessage_loop_unittest.cc38 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 …]
Dfake_message_loop_unittest.cc30 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 …]
Dglib_message_loop_unittest.cc30 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()
Dbase_message_loop.cc317 : 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()
Dglib_message_loop.cc17 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()
Dglib_message_loop.h60 GMainLoop* loop_; variable
Dbase_message_loop.h126 BaseMessageLoop* loop_; variable
/external/libchrome/base/
Drun_loop.cc14 : 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()
Dobserver_list_unittest.cc98 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
Drun_loop.h92 MessageLoop* loop_; variable
/external/libchrome/base/message_loop/
Dmessage_loop.h337 : 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_;
Dmessage_pump_glib_unittest.cc161 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
Dmessage_loop_task_runner_unittest.cc263 loop_.task_runner()->PostTask(FROM_HERE, in Quit()
315 mutable MessageLoop loop_; member in base::MessageLoopTaskRunnerThreadingTest
/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc200 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()
Dimportant_file_writer_unittest.cc97 MessageLoop loop_; member in base::ImportantFileWriterTest
/external/libmojo/mojo/public/cpp/bindings/tests/
Dbindings_perftest.cc98 base::MessageLoop loop_; member in mojo::__anonbe7796bc0111::MojoBindingsPerftest
Dbind_task_runner_unittest.cc194 base::MessageLoop loop_; member in mojo::test::__anon4c1b2fc90111::BindTaskRunnerTest
235 base::MessageLoop loop_; member in mojo::test::__anon4c1b2fc90111::AssociatedBindTaskRunnerTest
Dbinding_unittest.cc29 base::MessageLoop& loop() { return loop_; } in loop()
32 base::MessageLoop loop_; member in mojo::__anon4f44f45c0111::BindingTestBase
Dassociated_interface_unittest.cc122 if (loop_.task_runner()->BelongsToCurrentThread()) { in QuitRunLoop()
125 loop_.task_runner()->PostTask( in QuitRunLoop()
133 base::MessageLoop loop_; member in mojo::test::__anoncb765ed10111::AssociatedInterfaceTest
Drequest_response_unittest.cc93 base::MessageLoop loop_; member in mojo::test::__anon6defbb180111::RequestResponseTest
Dbinding_callback_unittest.cc135 base::MessageLoop loop_; member in mojo::test::__anonce13d5480111::BindingCallbackTest
Drouter_unittest.cc38 base::MessageLoop loop_; member in mojo::test::__anon4b656c020111::RouterTest
Dmultiplex_router_unittest.cc63 base::MessageLoop loop_; member in mojo::test::__anonbeb860050111::MultiplexRouterTest
Dhandle_passing_unittest.cc163 base::MessageLoop loop_; member in mojo::test::__anon22a2ad010111::HandlePassingTest
Dpickle_unittest.cc181 base::MessageLoop loop_; member in mojo::test::__anonfbcc6df90111::PickleTest

12