Home
last modified time | relevance | path

Searched refs:ThreadTaskRunnerHandle (Results 1 – 25 of 52) sorted by relevance

123

/external/libchrome/base/threading/
Dthread_task_runner_handle.cc21 base::LazyInstance<base::ThreadLocalPointer<ThreadTaskRunnerHandle>>::Leaky
27 scoped_refptr<SingleThreadTaskRunner> ThreadTaskRunnerHandle::Get() { in Get()
28 ThreadTaskRunnerHandle* current = thread_task_runner_tls.Pointer()->Get(); in Get()
36 bool ThreadTaskRunnerHandle::IsSet() { in IsSet()
41 ScopedClosureRunner ThreadTaskRunnerHandle::OverrideForTesting( in OverrideForTesting()
57 auto top_level_ttrh = std::make_unique<ThreadTaskRunnerHandle>( in OverrideForTesting()
60 [](std::unique_ptr<ThreadTaskRunnerHandle> ttrh_to_release) {}, in OverrideForTesting()
64 ThreadTaskRunnerHandle* ttrh = thread_task_runner_tls.Pointer()->Get(); in OverrideForTesting()
77 ThreadTaskRunnerHandle* ttrh = thread_task_runner_tls.Pointer()->Get(); in OverrideForTesting()
90 ThreadTaskRunnerHandle::ThreadTaskRunnerHandle( in ThreadTaskRunnerHandle() function in base::ThreadTaskRunnerHandle
[all …]
Dthread_task_runner_handle.h22 class BASE_EXPORT ThreadTaskRunnerHandle {
45 explicit ThreadTaskRunnerHandle(
47 ~ThreadTaskRunnerHandle();
52 DISALLOW_COPY_AND_ASSIGN(ThreadTaskRunnerHandle);
Dthread_checker_unittest.cc65 ThreadTaskRunnerHandle thread_task_runner_handle( in ExpectNotCalledOnValidThreadWithSequenceTokenAndThreadTaskRunnerHandle()
81 ThreadTaskRunnerHandle thread_task_runner_handle( in TEST()
132 ThreadTaskRunnerHandle thread_task_runner_handle( in TEST()
149 ThreadTaskRunnerHandle thread_task_runner_handle( in TEST()
182 ThreadTaskRunnerHandle thread_task_runner_handle( in TEST()
Dsequenced_task_runner_handle.cc33 CHECK(ThreadTaskRunnerHandle::IsSet()) in Get()
36 return ThreadTaskRunnerHandle::Get(); in Get()
42 ThreadTaskRunnerHandle::IsSet(); in IsSet()
Dthread_checker_impl.cc33 !ThreadTaskRunnerHandle::IsSet())) { in CalledOnValidThread()
/external/libchrome/base/message_loop/
Dmessage_loop_unittest.cc242 ThreadTaskRunnerHandle::Get()->PostTask( in RecursiveFunc()
257 ThreadTaskRunnerHandle::Get()->PostTask( in PostNTasks()
385 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST_P()
536 FROM_HERE, BindOnce(&RecursiveFuncWin, ThreadTaskRunnerHandle::Get(), in RunTest_RecursiveDenial2()
576 FROM_HERE, BindOnce(&RecursiveFuncWin, ThreadTaskRunnerHandle::Get(), in RunTest_RecursiveSupport2()
613 ThreadTaskRunnerHandle::Get()->PostTask( in PostNTasksThenQuit()
855 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, in TEST_P()
857 ThreadTaskRunnerHandle::Get()->PostTask( in TEST_P()
859 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, in TEST_P()
861 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, in TEST_P()
[all …]
Dmessage_pump_glib_unittest.cc154 ThreadTaskRunnerHandle::Get()->PostTask(from_here, std::move(task)); in PostMessageLoopTask()
325 ThreadTaskRunnerHandle::Get()->PostTask( in FromTask()
397 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, DoNothing()); in AddEventsAndDrainGLib()
398 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, DoNothing()); in AddEventsAndDrainGLib()
464 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, in TestGLibLoopInternal()
466 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, in TestGLibLoopInternal()
472 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TestGLibLoopInternal()
475 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TestGLibLoopInternal()
497 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, in TestGtkLoopInternal()
499 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, in TestGtkLoopInternal()
[all …]
Dmessage_loop.h38 class ThreadTaskRunnerHandle; variable
326 std::unique_ptr<ThreadTaskRunnerHandle> thread_task_runner_handle_;
/external/libchrome/mojo/public/cpp/bindings/tests/
Dconnector_unittest.cc117 base::ThreadTaskRunnerHandle::Get()); in TEST_F()
119 base::ThreadTaskRunnerHandle::Get()); in TEST_F()
143 base::ThreadTaskRunnerHandle::Get()); in TEST_F()
145 base::ThreadTaskRunnerHandle::Get()); in TEST_F()
168 base::ThreadTaskRunnerHandle::Get()); in TEST_F()
170 base::ThreadTaskRunnerHandle::Get()); in TEST_F()
194 base::ThreadTaskRunnerHandle::Get()); in TEST_F()
196 base::ThreadTaskRunnerHandle::Get()); in TEST_F()
226 base::ThreadTaskRunnerHandle::Get()); in TEST_F()
228 base::ThreadTaskRunnerHandle::Get()); in TEST_F()
[all …]
Dmultiplex_router_unittest.cc36 base::ThreadTaskRunnerHandle::Get()); in SetUp()
39 base::ThreadTaskRunnerHandle::Get()); in SetUp()
68 base::ThreadTaskRunnerHandle::Get(), 0u); in TEST_F()
72 base::ThreadTaskRunnerHandle::Get(), 0u); in TEST_F()
115 base::ThreadTaskRunnerHandle::Get(), 0u); in TEST_F()
119 base::ThreadTaskRunnerHandle::Get(), 0u); in TEST_F()
162 false, base::ThreadTaskRunnerHandle::Get(), 0u); in TEST_F()
167 false, base::ThreadTaskRunnerHandle::Get(), in TEST_F()
234 false, base::ThreadTaskRunnerHandle::Get(), 0u); in TEST_F()
244 false, base::ThreadTaskRunnerHandle::Get(), in TEST_F()
[all …]
Dbindings_perftest.cc198 true, base::ThreadTaskRunnerHandle::Get())); in TEST_F()
202 false, base::ThreadTaskRunnerHandle::Get())); in TEST_F()
209 false, base::ThreadTaskRunnerHandle::Get(), 0u); in TEST_F()
212 false, base::ThreadTaskRunnerHandle::Get(), 0u); in TEST_F()
254 true, base::ThreadTaskRunnerHandle::Get())); in TEST_F()
258 false, base::ThreadTaskRunnerHandle::Get(), 0u); in TEST_F()
De2e_perftest.cc89 base::ThreadTaskRunnerHandle::Get()->PostTask( in RunTest()
121 if (runner == base::ThreadTaskRunnerHandle::Get().get()) { in RunTestOnTaskRunner()
/external/libchrome/base/test/
Dtest_mock_time_task_runner_unittest.cc87 EXPECT_FALSE(ThreadTaskRunnerHandle::IsSet()); in TEST()
97 ThreadTaskRunnerHandle::Get()->PostTask( in TEST()
100 ThreadTaskRunnerHandle::Get()->PostTask( in TEST()
103 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST()
107 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST()
111 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST()
115 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST()
132 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST()
134 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST()
155 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST()
[all …]
Dscoped_task_environment_unittest.cc51 ThreadTaskRunnerHandle::Get()->PostTask( in RunUntilIdleTest()
159 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST_P()
180 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST_P()
188 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST_P()
197 ThreadTaskRunnerHandle::Get()->PostTask( in TEST_P()
281 ThreadTaskRunnerHandle::Get()->PostDelayedTask(FROM_HERE, base::DoNothing(), in TEST_F()
285 ThreadTaskRunnerHandle::Get()->PostDelayedTask(FROM_HERE, base::DoNothing(), in TEST_F()
Dtest_simple_task_runner.cc89 if (!ThreadTaskRunnerHandle::IsSet() || in RunPendingTasks()
90 ThreadTaskRunnerHandle::Get() != this) { in RunPendingTasks()
91 undo_override = ThreadTaskRunnerHandle::OverrideForTesting(this); in RunPendingTasks()
Dtest_mock_time_task_runner.cc187 : on_destroy_(ThreadTaskRunnerHandle::OverrideForTesting(scope)) { in ScopedContext()
215 std::make_unique<ThreadTaskRunnerHandle>(proxy_task_runner_); in TestMockTimeTaskRunner()
391 if (!ThreadTaskRunnerHandle::IsSet() || in ProcessAllTasksNoLaterThan()
392 ThreadTaskRunnerHandle::Get() != proxy_task_runner_.get()) { in ProcessAllTasksNoLaterThan()
394 ThreadTaskRunnerHandle::OverrideForTesting(proxy_task_runner_.get()); in ProcessAllTasksNoLaterThan()
Dtest_mock_time_task_runner.h30 class ThreadTaskRunnerHandle; variable
285 std::unique_ptr<ThreadTaskRunnerHandle> thread_task_runner_handle_;
/external/libchrome/ipc/
Dipc_test_base.cc43 base::ThreadTaskRunnerHandle::Get(), base::ThreadTaskRunnerHandle::Get()); in CreateChannel()
69 base::ThreadTaskRunnerHandle::Get(), base::ThreadTaskRunnerHandle::Get()); in Connect()
77 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, in Close()
Dipc_mojo_bootstrap_unittest.cc114 IPC::Channel::MODE_SERVER, base::ThreadTaskRunnerHandle::Get(), in TEST_F()
115 base::ThreadTaskRunnerHandle::Get()), in TEST_F()
139 IPC::Channel::MODE_CLIENT, base::ThreadTaskRunnerHandle::Get(), in MULTIPROCESS_TEST_MAIN_WITH_SETUP()
140 base::ThreadTaskRunnerHandle::Get()), in MULTIPROCESS_TEST_MAIN_WITH_SETUP()
160 IPC::Channel::MODE_SERVER, base::ThreadTaskRunnerHandle::Get(), in TEST_F()
161 base::ThreadTaskRunnerHandle::Get()), in TEST_F()
187 IPC::Channel::MODE_CLIENT, base::ThreadTaskRunnerHandle::Get(), in MULTIPROCESS_TEST_MAIN_WITH_SETUP()
188 base::ThreadTaskRunnerHandle::Get()), in MULTIPROCESS_TEST_MAIN_WITH_SETUP()
Dipc_sync_message_filter.cc57 if (base::ThreadTaskRunnerHandle::IsSet()) { in Send()
58 DCHECK(base::ThreadTaskRunnerHandle::Get() != listener_task_runner_); in Send()
59 DCHECK(base::ThreadTaskRunnerHandle::Get() != io_task_runner_); in Send()
106 io_task_runner_ = base::ThreadTaskRunnerHandle::Get(); in OnFilterAdded()
147 listener_task_runner_(base::ThreadTaskRunnerHandle::Get()), in SyncMessageFilter()
Dipc_channel_common.cc42 base::ThreadTaskRunnerHandle::Get()); in CreateClient()
58 base::ThreadTaskRunnerHandle::Get()); in CreateServer()
/external/libchrome/base/files/
Dimportant_file_writer_unittest.cc134 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F()
146 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F()
186 ThreadTaskRunnerHandle::Get()); in TEST_F()
235 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get(), in TEST_F()
254 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F()
269 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F()
284 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F()
299 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F()
316 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F()
/external/libchrome/base/
Dcancelable_callback_unittest.cc179 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, cancelable.callback()); in TEST()
184 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, cancelable.callback()); in TEST()
/external/libchrome/base/debug/
Dtask_annotator_unittest.cc196 auto main_thread_a = ThreadTaskRunnerHandle::Get(); in TEST_F()
352 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, DoNothing()); in TEST_F()
354 ThreadTaskRunnerHandle::Get()->PostTask(location2, std::move(task2)); in TEST_F()
/external/libchrome/libchrome_tools/patch/
Dmessage_loop.patch14 class ThreadTaskRunnerHandle;

123