/external/libchrome/base/threading/ |
D | thread_task_runner_handle_unittest.cc | 17 EXPECT_FALSE(ThreadTaskRunnerHandle::IsSet()); in TEST() 19 ThreadTaskRunnerHandle ttrh1(task_runner); in TEST() 20 EXPECT_TRUE(ThreadTaskRunnerHandle::IsSet()); in TEST() 21 EXPECT_EQ(task_runner, ThreadTaskRunnerHandle::Get()); in TEST() 23 EXPECT_FALSE(ThreadTaskRunnerHandle::IsSet()); in TEST() 31 ThreadTaskRunnerHandle ttrh(task_runner); in TEST() 33 { ThreadTaskRunnerHandle overriding_ttrh(overidding_task_runner); }); in TEST() 42 EXPECT_FALSE(ThreadTaskRunnerHandle::IsSet()); in TEST() 45 ThreadTaskRunnerHandle ttrh1(task_runner_1); in TEST() 46 EXPECT_TRUE(ThreadTaskRunnerHandle::IsSet()); in TEST() [all …]
|
D | thread_task_runner_handle.cc | 21 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 …]
|
D | thread_task_runner_handle.h | 22 class BASE_EXPORT ThreadTaskRunnerHandle { 45 explicit ThreadTaskRunnerHandle( 47 ~ThreadTaskRunnerHandle(); 52 DISALLOW_COPY_AND_ASSIGN(ThreadTaskRunnerHandle);
|
D | sequenced_task_runner_handle.cc | 33 CHECK(ThreadTaskRunnerHandle::IsSet()) in Get() 36 return ThreadTaskRunnerHandle::Get(); in Get() 42 ThreadTaskRunnerHandle::IsSet(); in IsSet()
|
D | thread_checker_unittest.cc | 65 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()
|
D | sequenced_task_runner_handle_unittest.cc | 78 EXPECT_FALSE(ThreadTaskRunnerHandle::IsSet()); in TEST() 82 EXPECT_FALSE(ThreadTaskRunnerHandle::IsSet()); in TEST() 86 EXPECT_FALSE(ThreadTaskRunnerHandle::IsSet()); in TEST()
|
/external/libchrome/base/ |
D | run_loop_unittest.cc | 51 ThreadTaskRunnerHandle::Get()->PostTask( in RunNestedLoopTask() 55 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in RunNestedLoopTask() 155 std::make_unique<ThreadTaskRunnerHandle>(simple_task_runner_); in BindToCurrentThread() 197 std::unique_ptr<ThreadTaskRunnerHandle> thread_task_runner_handle_; 252 ThreadTaskRunnerHandle::Get()->PostTask( in TEST_P() 255 ThreadTaskRunnerHandle::Get()->PostTask( in TEST_P() 257 ThreadTaskRunnerHandle::Get()->PostDelayedTask( in TEST_P() 265 ThreadTaskRunnerHandle::Get()->PostTask( in TEST_P() 267 ThreadTaskRunnerHandle::Get()->PostTask( in TEST_P() 270 ThreadTaskRunnerHandle::Get()->PostTask( in TEST_P() [all …]
|
/external/libchrome/base/message_loop/ |
D | message_loop_unittest.cc | 242 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 …]
|
D | message_pump_glib_unittest.cc | 154 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 …]
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | connector_unittest.cc | 117 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 …]
|
D | multiplex_router_unittest.cc | 36 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 …]
|
D | bindings_perftest.cc | 198 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()
|
/external/libchrome/base/test/ |
D | test_mock_time_task_runner_unittest.cc | 87 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 …]
|
D | scoped_task_environment_unittest.cc | 51 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()
|
D | test_simple_task_runner.cc | 89 if (!ThreadTaskRunnerHandle::IsSet() || in RunPendingTasks() 90 ThreadTaskRunnerHandle::Get() != this) { in RunPendingTasks() 91 undo_override = ThreadTaskRunnerHandle::OverrideForTesting(this); in RunPendingTasks()
|
D | scoped_mock_time_message_loop_task_runner.cc | 19 previous_task_runner_(ThreadTaskRunnerHandle::Get()) { in ScopedMockTimeMessageLoopTaskRunner() 29 DCHECK_EQ(task_runner_, ThreadTaskRunnerHandle::Get()); in ~ScopedMockTimeMessageLoopTaskRunner()
|
D | test_mock_time_task_runner.cc | 187 : 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()
|
/external/libchrome/ipc/ |
D | ipc_test_base.cc | 43 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()
|
D | ipc_mojo_bootstrap_unittest.cc | 114 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()
|
D | ipc_sync_message_filter.cc | 57 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()
|
D | ipc_channel_common.cc | 42 base::ThreadTaskRunnerHandle::Get()); in CreateClient() 58 base::ThreadTaskRunnerHandle::Get()); in CreateServer()
|
/external/libchrome/base/files/ |
D | important_file_writer_unittest.cc | 134 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/task_scheduler/ |
D | test_task_factory.cc | 61 EXPECT_FALSE(ThreadTaskRunnerHandle::IsSet()); in RunTaskCallback() 65 EXPECT_FALSE(ThreadTaskRunnerHandle::IsSet()); in RunTaskCallback() 72 EXPECT_TRUE(ThreadTaskRunnerHandle::IsSet()); in RunTaskCallback() 74 EXPECT_EQ(task_runner_, ThreadTaskRunnerHandle::Get()); in RunTaskCallback()
|
/external/libchrome/base/trace_event/ |
D | memory_dump_manager_unittest.cc | 223 ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, in RequestProcessDumpAndWait() 276 RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get()); in TEST_F() 306 RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get()); in TEST_F() 316 RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get()); in TEST_F() 331 RegisterDumpProvider(&mdp1, ThreadTaskRunnerHandle::Get()); in TEST_F() 370 RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get()); in TEST_F() 390 RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get()); in TEST_F() 401 RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get()); in TEST_F() 403 RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get()); in TEST_F() 572 RegisterDumpProvider(&mdp1, ThreadTaskRunnerHandle::Get(), kDefaultOptions); in TEST_F() [all …]
|
/external/libchrome/components/policy/core/common/ |
D | policy_scheduler_unittest.cc | 21 base::ThreadTaskRunnerHandle::Get()->PostTask( in DoTask() 30 base::ThreadTaskRunnerHandle::Get()->PostTask( in OnTaskDone() 44 base::ThreadTaskRunnerHandle::Get()->PostTask( in PostSlowTaskCallback()
|