Home
last modified time | relevance | path

Searched refs:thread_checker (Results 1 – 9 of 9) sorted by relevance

/external/libchrome/base/threading/
Dthread_checker_unittest.cc43 void ExpectCalledOnValidThread(ThreadCheckerImpl* thread_checker) { in ExpectCalledOnValidThread() argument
44 ASSERT_TRUE(thread_checker); in ExpectCalledOnValidThread()
48 EXPECT_TRUE(thread_checker->CalledOnValidThread()); in ExpectCalledOnValidThread()
52 EXPECT_TRUE(thread_checker->CalledOnValidThread()); in ExpectCalledOnValidThread()
55 void ExpectNotCalledOnValidThread(ThreadCheckerImpl* thread_checker) { in ExpectNotCalledOnValidThread() argument
56 ASSERT_TRUE(thread_checker); in ExpectNotCalledOnValidThread()
57 EXPECT_FALSE(thread_checker->CalledOnValidThread()); in ExpectNotCalledOnValidThread()
61 ThreadCheckerImpl* thread_checker, in ExpectNotCalledOnValidThreadWithSequenceTokenAndThreadTaskRunnerHandle() argument
67 ExpectNotCalledOnValidThread(thread_checker); in ExpectNotCalledOnValidThreadWithSequenceTokenAndThreadTaskRunnerHandle()
73 ThreadCheckerImpl thread_checker; in TEST() local
[all …]
/external/perfetto/src/base/
Dthread_checker_unittest.cc46 ThreadChecker thread_checker; in TEST() local
47 ASSERT_TRUE(thread_checker.CalledOnValidThread()); in TEST()
48 void* res = RunOnThread([&thread_checker]() -> void* { in TEST()
49 return thread_checker.CalledOnValidThread() ? kTrue : kFalse; in TEST()
51 ASSERT_TRUE(thread_checker.CalledOnValidThread()); in TEST()
56 ThreadChecker thread_checker; in TEST() local
57 ASSERT_TRUE(thread_checker.CalledOnValidThread()); in TEST()
58 thread_checker.DetachFromThread(); in TEST()
59 void* res = RunOnThread([&thread_checker]() -> void* { in TEST()
60 return thread_checker.CalledOnValidThread() ? kTrue : kFalse; in TEST()
[all …]
Dtask_runner_unittest.cc114 ThreadChecker thread_checker; in TYPED_TEST() local
116 std::thread thread([&task_runner, &counter, &thread_checker] { in TYPED_TEST()
117 task_runner.PostTask([&thread_checker] { in TYPED_TEST()
118 EXPECT_TRUE(thread_checker.CalledOnValidThread()); in TYPED_TEST()
DBUILD.gn31 "thread_checker.cc",
/external/perfetto/include/perfetto/base/
Dweak_ptr.h62 PERFETTO_DCHECK_THREAD(thread_checker); in get()
75 PERFETTO_THREAD_CHECKER(thread_checker)
82 PERFETTO_DCHECK_THREAD(thread_checker);
85 PERFETTO_DCHECK_THREAD(thread_checker); in ~WeakPtrFactory()
90 PERFETTO_DCHECK_THREAD(thread_checker); in GetWeakPtr()
99 PERFETTO_THREAD_CHECKER(thread_checker)
DBUILD.gn26 "thread_checker.h",
/external/webrtc/webrtc/base/
DBUILD.gn152 "thread_checker.h",
Dbase.gyp122 'thread_checker.h',
/external/perfetto/
DAndroid.bp37 "src/base/thread_checker.cc",
147 "src/base/thread_checker.cc",
278 "src/base/thread_checker.cc",
3431 "src/base/thread_checker.cc",
3607 "src/base/thread_checker.cc",