Home
last modified time | relevance | path

Searched refs:nesting_observer (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/base/task/sequence_manager/
Dthread_controller_with_message_pump_impl.cc101 DCHECK(!main_thread_only().nesting_observer); in AddNestingObserver()
103 main_thread_only().nesting_observer = observer; in AddNestingObserver()
108 DCHECK_EQ(main_thread_only().nesting_observer, observer); in RemoveNestingObserver()
109 main_thread_only().nesting_observer = nullptr; in RemoveNestingObserver()
175 if (main_thread_only().run_depth > 0 && main_thread_only().nesting_observer) in Run()
176 main_thread_only().nesting_observer->OnBeginNestedRunLoop(); in Run()
187 if (main_thread_only().run_depth > 0 && main_thread_only().nesting_observer) in Run()
188 main_thread_only().nesting_observer->OnExitNestedRunLoop(); in Run()
Dthread_controller_with_message_pump_impl.h63 RunLoop::NestingObserver* nesting_observer = nullptr; // Not owned. member
/external/libchrome/base/
Drun_loop_unittest.cc510 testing::StrictMock<MockNestingObserver> nesting_observer; in TEST_P() local
514 RunLoop::AddNestingObserverOnCurrentThread(&nesting_observer); in TEST_P()
539 EXPECT_CALL(nesting_observer, OnBeginNestedRunLoop()); in TEST_P()
541 EXPECT_CALL(nesting_observer, OnBeginNestedRunLoop()); in TEST_P()
543 EXPECT_CALL(nesting_observer, OnExitNestedRunLoop()).Times(2); in TEST_P()
547 RunLoop::RemoveNestingObserverOnCurrentThread(&nesting_observer); in TEST_P()