Home
last modified time | relevance | path

Searched refs:BindOnce (Results 1 – 25 of 96) sorted by relevance

1234

/external/libchrome/base/task/sequence_manager/
Dsequence_manager_impl_unittest.cc260 runners_[0]->PostTask(FROM_HERE, BindOnce(&NopTask)); in TEST_P()
261 runners_[0]->PostTask(FROM_HERE, BindOnce(&NopTask)); in TEST_P()
262 runners_[1]->PostTask(FROM_HERE, BindOnce(&NopTask)); in TEST_P()
263 runners_[1]->PostTask(FROM_HERE, BindOnce(&NopTask)); in TEST_P()
264 runners_[2]->PostTask(FROM_HERE, BindOnce(&NopTask)); in TEST_P()
265 runners_[2]->PostTask(FROM_HERE, BindOnce(&NopTask)); in TEST_P()
290 runners_[0]->PostTask(FROM_HERE, BindOnce(&TestTask, 1, &run_order)); in TEST_P()
291 runners_[0]->PostTask(FROM_HERE, BindOnce(&TestTask, 2, &run_order)); in TEST_P()
292 runners_[0]->PostTask(FROM_HERE, BindOnce(&TestTask, 3, &run_order)); in TEST_P()
302 runners_[0]->PostTask(FROM_HERE, BindOnce(&TestTask, 1, &run_order)); in TEST_P()
[all …]
/external/libchrome/mojo/public/cpp/bindings/tests/
Dcallback_helpers_unittest.cc52 WrapCallbackWithDropHandler(base::BindOnce(&SetIntegers, &a, &b), in TEST()
53 base::BindOnce(&SetIntegers, &a, &b, 3, 4)); in TEST()
64 WrapCallbackWithDropHandler(base::BindOnce(&SetIntegers, &a, &b), in TEST()
65 base::BindOnce(&SetIntegers, &a, &b, 3, 4)); in TEST()
75 base::BindOnce(&CallClosure), base::BindOnce(&SetIntegers, &a, &b, 3, 4)); in TEST()
76 std::move(cb).Run(base::BindOnce(&SetIntegers, &a, &b, 1, 2)); in TEST()
86 base::BindOnce(&CallClosure), in TEST()
87 base::BindOnce(&SetIntegers, &a, &b, 3, 4)); in TEST()
96 WrapCallbackWithDefaultInvokeIfNotRun(base::BindOnce(&SetBool, &a, true)); in TEST()
105 base::BindOnce(&SetBool, &a, true)); in TEST()
[all …]
/external/libchrome/base/message_loop/
Dmessage_loop_unittest.cc244 BindOnce(&RecursiveFunc, order, cookie, depth - 1, is_reentrant)); in RecursiveFunc()
258 FROM_HERE, BindOnce(&PostNTasks, posts_remaining - 1)); in PostNTasks()
337 BindOnce(&android::JavaHandlerThreadHelpers::ThrowExceptionAndAbort, in RunTest_AbortDontRunMoreTasks()
346 BindOnce(&DoNotRun)); in RunTest_AbortDontRunMoreTasks()
381 BindOnce( in TEST_P()
386 FROM_HERE, BindOnce([]() { ADD_FAILURE(); }), in TEST_P()
424 message_loop.task_runner()->PostTask(FROM_HERE, BindOnce(&SubPumpFunc)); in RunTest_PostDelayedTask_SharedTimer_SubPump()
428 FROM_HERE, BindOnce(&RecordRunTimeFunc, &run_time, &num_tasks), in RunTest_PostDelayedTask_SharedTimer_SubPump()
433 BindOnce(&PostQuitMessage, 0), in RunTest_PostDelayedTask_SharedTimer_SubPump()
485 BindOnce(&RecursiveFunc, order, 1, 2, is_reentrant)); in RecursiveFuncWin()
[all …]
Dmessage_pump_glib_unittest.cc210 BindOnce(&ExpectProcessedEvents, Unretained(injector()), 2); in TEST_F()
212 BindOnce(&PostMessageLoopTask, FROM_HERE, std::move(check_task)); in TEST_F()
224 check_task = BindOnce(&ExpectProcessedEvents, Unretained(injector()), 2); in TEST_F()
226 BindOnce(&PostMessageLoopTask, FROM_HERE, std::move(check_task)); in TEST_F()
243 BindOnce(&IncrementInt, &task_count)); in TEST_F()
250 FROM_HERE, BindOnce(&EventInjector::AddEvent, Unretained(injector()), 0, in TEST_F()
262 BindOnce(&IncrementInt, &task_count), in TEST_F()
273 BindOnce(&EventInjector::AddEvent, Unretained(injector()), 0, in TEST_F()
292 BindOnce(&ExpectProcessedEvents, Unretained(injector()), 11); in TEST_F()
294 BindOnce(&PostMessageLoopTask, FROM_HERE, std::move(check_task)); in TEST_F()
[all …]
Dmessage_loop_task_runner_unittest.cc41 FROM_HERE, BindOnce(&MessageLoopTaskRunnerTest::BlockTaskThreadHelper, in SetUp()
117 FROM_HERE, BindOnce(&RecordLoop, task_recorder), in TEST_F()
118 BindOnce(&RecordLoopAndQuit, reply_recorder))); in TEST_F()
156 FROM_HERE, BindOnce(&RecordLoop, task_recorder), in TEST_F()
157 BindOnce(&RecordLoopAndQuit, reply_recorder))); in TEST_F()
185 FROM_HERE, BindOnce(&RecordLoop, task_recorder), in TEST_F()
186 BindOnce(&RecordLoopAndQuit, reply_recorder))); in TEST_F()
221 FROM_HERE, BindOnce(&RecordLoop, task_recorder), in TEST_F()
222 BindOnce(&RecordLoopAndQuit, reply_recorder)); in TEST_F()
334 FROM_HERE, BindOnce(&MessageLoopTaskRunnerThreadingTest::BasicFunction, in TEST_F()
[all …]
/external/libchrome/base/debug/
Dtask_annotator_unittest.cc38 PendingTask pending_task(FROM_HERE, BindOnce(&TestTask, &result)); in TEST()
110 BindOnce(&WaitableEvent::Wait, Unretained(wait_before_next_task))); in VerifyTraceAndPostWithBlocker()
149 OnceClosure task5 = BindOnce( in TEST_F()
157 OnceClosure task4 = BindOnce( in TEST_F()
163 OnceClosure task3 = BindOnce( in TEST_F()
169 OnceClosure task2 = BindOnce( in TEST_F()
175 BindOnce(&TaskAnnotatorBacktraceIntegrationTest::VerifyTraceAndPost, in TEST_F()
179 BindOnce(&TaskAnnotatorBacktraceIntegrationTest::VerifyTraceAndPost, in TEST_F()
230 OnceClosure task_a2 = BindOnce( in TEST_F()
238 BindOnce(&TaskAnnotatorBacktraceIntegrationTest::VerifyTraceAndPost, in TEST_F()
[all …]
/external/v8/tools/clang/base_bind_rewriters/tests/
Dremove-adapt-callback-for-repeating-expected.cc12 base::OnceClosure cb = base::BindOnce([] {}); in Test()
13 Foo(base::BindOnce([] {})); in Test()
14 Bar(1, base::BindOnce([] {}), 1); in Test()
18 OnceClosure cb2 = BindOnce([] {}); in Test()
19 Foo(BindOnce([] {})); in Test()
20 Bar(1, BindOnce([] {}), 1); in Test()
22 OnceClosure cb3 = BindOnce([] {}); in Test()
Dremove-adapt-callback-for-repeating-original.cc12 base::OnceClosure cb = base::AdaptCallbackForRepeating(base::BindOnce([] {})); in Test()
13 Foo(base::AdaptCallbackForRepeating(base::BindOnce([] {}))); in Test()
14 Bar(1, base::AdaptCallbackForRepeating(base::BindOnce([] {})), 1); in Test()
18 OnceClosure cb2 = AdaptCallbackForRepeating(BindOnce([] {})); in Test()
19 Foo(AdaptCallbackForRepeating(BindOnce([] {}))); in Test()
20 Bar(1, AdaptCallbackForRepeating(BindOnce([] {})), 1); in Test()
22 OnceClosure cb3 = BindOnce([] {}); in Test()
Dpassed-to-move-rewriter-expected.cc8 using base::BindOnce; in Test()
15 base::BindOnce([] {}, std::move(i)); in Test()
18 base::BindOnce([] {}, std::move(*p)); in Test()
22 base::BindOnce([] {}, std::move(*p)); in Test()
23 BindOnce([] {}, 1); in Test()
Dpassed-to-move-rewriter-original.cc8 using base::BindOnce; in Test()
15 base::BindOnce([] {}, base::Passed(&i)); in Test()
18 base::BindOnce([] {}, base::Passed(p)); in Test()
22 base::BindOnce([] {}, Passed(std::move(*p))); in Test()
23 BindOnce([] {}, base::Passed(1)); in Test()
Dcallback-temporary-converted-to-once-callback-expected.cc10 base::OnceClosure cb = base::BindOnce([] {}); in Test()
11 Foo(base::BindOnce([] {})); in Test()
15 OnceClosure cb2 = BindOnce([] {}); in Test()
16 Foo(BindOnce([] {})); in Test()
/external/libchrome/base/
Dbind_unittest.cc421 OnceCallback<int(int)> c0 = BindOnce(&Sum, 1, 2, 4, 8, 16); in TEST_F()
431 c0 = BindOnce(&Sum, 2, 3, 5, 7, 11); in TEST_F()
435 OnceCallback<int()> c1 = BindOnce(std::move(c0), 13); in TEST_F()
439 EXPECT_EQ(41, BindOnce(c2, 13).Run()); in TEST_F()
493 OnceClosure normal_func_cb = BindOnce(IgnoreResult(&IntFunc0)); in TEST_F()
497 BindOnce(IgnoreResult(&HasRef::IntMethod0), &has_ref_); in TEST_F()
501 BindOnce(IgnoreResult(&HasRef::IntConstMethod0), &has_ref_); in TEST_F()
508 BindOnce(IgnoreResult(&NoRef::IntMethod0), in TEST_F()
511 BindOnce(IgnoreResult(&NoRef::IntConstMethod0), in TEST_F()
544 OnceCallback<int()> ref_copies_cb = BindOnce(&Identity, ref_n); in TEST_F()
[all …]
Dtask_runner_util.h43 BindOnce(&internal::ReturnAsParamAdapter<TaskReturnType>, std::move(task), in PostTaskAndReplyWithResult()
45 BindOnce(&internal::ReplyAdapter<TaskReturnType, ReplyArgType>, in PostTaskAndReplyWithResult()
/external/libchrome/base/task/
Dcancelable_task_tracker.cc93 BindOnce(&CancelableTaskTracker::Untrack, weak_factory_.GetWeakPtr(), id); in PostTaskAndReply()
95 from_here, BindOnce(&RunIfNotCanceled, flag, std::move(task)), in PostTaskAndReply()
96 BindOnce(&RunIfNotCanceledThenUntrack, Owned(flag), std::move(reply), in PostTaskAndReply()
117 OnceClosure untrack_and_delete_flag = BindOnce( in NewTrackedTaskId()
119 BindOnce(&CancelableTaskTracker::Untrack, weak_factory_.GetWeakPtr(), id), in NewTrackedTaskId()
124 new ScopedClosureRunner(BindOnce( in NewTrackedTaskId()
Dcancelable_task_tracker_unittest.cc197 FROM_HERE, BindOnce(&ExpectIsCanceled, is_canceled, false)); in TEST_F()
204 FROM_HERE, BindOnce(&ExpectIsCanceled, is_canceled, true)); in TEST_F()
356 BindOnce(&MaybeRunDeadlyTaskTrackerMemberFunction, in TEST_F()
378 BindOnce(&MaybeRunDeadlyTaskTrackerMemberFunction, in TEST_F()
396 FROM_HERE, BindOnce(&MaybeRunDeadlyTaskTrackerMemberFunction, in TEST_F()
/external/libchrome/base/test/
Dscoped_task_environment_unittest.cc52 FROM_HERE, BindOnce(&VerifyRunUntilIdleDidNotReturnAndSetFlag, in RunUntilIdleTest()
57 PostTask(FROM_HERE, BindOnce(&VerifyRunUntilIdleDidNotReturnAndSetFlag, in RunUntilIdleTest()
64 BindOnce(&VerifyRunUntilIdleDidNotReturnAndSetFlag, in RunUntilIdleTest()
67 BindOnce(&VerifyRunUntilIdleDidNotReturnAndSetFlag, in RunUntilIdleTest()
97 PostTask(FROM_HERE, BindOnce( in TEST_P()
107 PostTask(FROM_HERE, BindOnce( in TEST_P()
126 BindOnce([](WaitableEvent* task_ran) { task_ran->Signal(); }, in TEST_P()
144 BindOnce([](WaitableEvent* task_ran) { task_ran->Signal(); }, in TEST_P()
/external/libchrome/base/threading/
Dthread_unittest.cc162 base::BindOnce(&base::WaitableEvent::Signal, base::Unretained(&event))); in TEST_F()
195 base::BindOnce(&base::WaitableEvent::Wait, in TEST_F()
221 FROM_HERE, base::BindOnce(static_cast<void (*)(base::TimeDelta)>( in TEST_F()
225 base::BindOnce(&ToggleValue, &was_invoked)); in TEST_F()
292 FROM_HERE, base::BindOnce(&Thread::Stop, base::Unretained(&a))); in TEST_F()
313 FROM_HERE, base::BindOnce( in TEST_F()
368 FROM_HERE, base::BindOnce(&base::WaitableEvent::Signal, in TEST_F()
406 base::BindOnce(ReturnThreadId, &a, &id_from_new_thread, &event)); in TEST_F()
466 base::BindOnce(&RegisterDestructionObserver, in TEST_F()
512 base::BindOnce(&base::PlatformThread::Sleep, kSleepPerTestTask)); in TEST_F()
[all …]
/external/libchrome/dbus/
Dobject_proxy.cc104 FROM_HERE, base::BindOnce(&base::DeletePointer<ResponseOrErrorCallback>, in ~ReplyCallbackHolder()
182 auto internal_callback = base::BindOnce( in CallMethod()
205 base::BindOnce(&ObjectProxy::RunResponseOrErrorCallback, this, in CallMethodWithErrorResponse()
224 base::BindOnce(&ObjectProxy::StartAsyncMethodCall, this, timeout_ms, in CallMethodWithErrorResponse()
233 auto internal_callback = base::BindOnce( in CallMethodWithErrorCallback()
257 base::BindOnce(&ObjectProxy::ConnectToSignalInternal, this, in ConnectToSignal()
259 base::BindOnce(std::move(on_connected_callback), interface_name, in ConnectToSignal()
285 base::BindOnce(&ObjectProxy::WaitForServiceToBeAvailableInternal, this)); in WaitForServiceToBeAvailable()
320 base::BindOnce(&ObjectProxy::RunResponseOrErrorCallback, this, in StartAsyncMethodCall()
341 new PendingCallback(base::BindOnce(&ObjectProxy::OnPendingCallIsComplete, in StartAsyncMethodCall()
[all …]
/external/libchrome/base/task_scheduler/
Dscheduler_worker_pool_unittest.cc217 EXPECT_FALSE(task_runner->PostTask(FROM_HERE, BindOnce(&ShouldNotRun))); in TEST_P()
230 EXPECT_FALSE(task_runner->PostTask(FROM_HERE, BindOnce(&ShouldNotRun))); in TEST_P()
246 FROM_HERE, BindOnce(&WaitableEvent::Signal, Unretained(&task_ran))); in TEST_P()
253 FROM_HERE, BindOnce(&WaitableEvent::Signal, Unretained(&task_ran)), in TEST_P()
282 BindOnce( in TEST_P()
301 FROM_HERE, BindOnce(&WaitableEvent::Signal, Unretained(&task_1_running))); in TEST_P()
303 FROM_HERE, BindOnce(&WaitableEvent::Signal, Unretained(&task_2_running))); in TEST_P()
Dlazy_task_runner_unittest.cc98 BindOnce(&InitCheckers, Unretained(&sequence_checker), in TestTaskRunnerEnvironment()
104 ? BindOnce(&ExpectSingleThreadEnvironment, in TestTaskRunnerEnvironment()
112 : BindOnce(&ExpectSequencedEnvironment, in TestTaskRunnerEnvironment()
/external/libchrome/base/synchronization/
Datomic_flag_unittest.cc72 BindOnce(&BusyWaitUntilFlagIsSet, &tested_flag, in TEST()
104 BindOnce(&BusyWaitUntilFlagIsSet, &tested_flag, in TEST()
132 t.task_runner()->PostTask(FROM_HERE, BindOnce(&ExpectSetFlagDeath, &flag)); in TEST()
/external/libchrome/mojo/public/cpp/bindings/
Dcallback_helpers.h72 base::BindOnce(&CallbackWithDeleteHelper::Run, base::Unretained(this), in CallbackWithDeleteHelper()
108 return base::BindOnce(&internal::CallbackWithDeleteHelper<T>::Run, in WrapCallbackWithDropHandler()
117 return base::BindOnce(&internal::CallbackWithDeleteHelper<T>::Run, in WrapCallbackWithDefaultInvokeIfNotRun()
/external/libchrome/base/memory/
Dweak_ptr_unittest.cc36 base::BindOnce(OffThreadObjectCreator::CreateObject, &result)); in NewObject()
97 FROM_HERE, base::BindOnce(&BackgroundThread::DoCreateArrowFromTarget, in CreateArrowFromTarget()
106 FROM_HERE, base::BindOnce(&BackgroundThread::DoCreateArrowFromArrow, in CreateArrowFromArrow()
116 base::BindOnce(&BackgroundThread::DoDeleteTarget, object, &completion)); in DeleteTarget()
124 FROM_HERE, base::BindOnce(&BackgroundThread::DoCopyAndAssignArrow, in CopyAndAssignArrow()
133 FROM_HERE, base::BindOnce(&BackgroundThread::DoCopyAndAssignArrowBase, in CopyAndAssignArrowBase()
143 base::BindOnce(&BackgroundThread::DoDeleteArrow, object, &completion)); in DeleteArrow()
152 FROM_HERE, base::BindOnce(&BackgroundThread::DoDeRef, arrow, &result, in DeRef()
/external/libchrome/base/files/
Dfile_descriptor_watcher_posix.cc135 FROM_HERE, BindOnce(&Controller::RunCallback, controller_)); in OnFileCanReadWithoutBlocking()
146 FROM_HERE, BindOnce(&Controller::RunCallback, controller_)); in OnFileCanWriteWithoutBlocking()
180 FROM_HERE, BindOnce(&Watcher::StartWatching, Unretained(watcher_.get()))); in StartWatching()
/external/libchrome/crypto/
Dnss_util.cc304 FROM_HERE, base::BindOnce(std::move(callback), false)); in InitializeTPMTokenAndSystemSlot()
313 FROM_HERE, base::BindOnce(std::move(callback), true)); in InitializeTPMTokenAndSystemSlot()
325 base::BindOnce(&NSSInitSingleton::InitializeTPMTokenInThreadPool, in InitializeTPMTokenAndSystemSlot()
327 base::BindOnce(&NSSInitSingleton::OnInitializedTPMTokenAndSystemSlot, in InitializeTPMTokenAndSystemSlot()
488 base::BindOnce(&NSSInitSingleton::InitializeTPMTokenInThreadPool, in InitializeTPMForChromeOSUser()
490 base::BindOnce(&NSSInitSingleton::OnInitializedTPMForChromeOSUser, in InitializeTPMForChromeOSUser()
548 FROM_HERE, base::BindOnce(std::move(callback), ScopedPK11Slot())); in GetPrivateSlotForChromeOSUser()
620 wrapped_callback = base::BindOnce( in GetSystemNSSKeySlot()

1234