Home
last modified time | relevance | path

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

/external/libchrome/base/threading/
Dthread_checker_unittest.cc45 void ExpectCalledOnValidThread(ThreadCheckerImpl* thread_checker) { in ExpectCalledOnValidThread() argument
46 ASSERT_TRUE(thread_checker); in ExpectCalledOnValidThread()
50 EXPECT_TRUE(thread_checker->CalledOnValidThread()); in ExpectCalledOnValidThread()
54 EXPECT_TRUE(thread_checker->CalledOnValidThread()); in ExpectCalledOnValidThread()
57 void ExpectNotCalledOnValidThread(ThreadCheckerImpl* thread_checker) { in ExpectNotCalledOnValidThread() argument
58 ASSERT_TRUE(thread_checker); in ExpectNotCalledOnValidThread()
59 EXPECT_FALSE(thread_checker->CalledOnValidThread()); in ExpectNotCalledOnValidThread()
63 ThreadCheckerImpl* thread_checker, in ExpectNotCalledOnValidThreadWithSequenceTokenAndThreadTaskRunnerHandle() argument
69 ExpectNotCalledOnValidThread(thread_checker); in ExpectNotCalledOnValidThreadWithSequenceTokenAndThreadTaskRunnerHandle()
75 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 …]
Dthread_task_runner_unittest.cc46 ThreadChecker thread_checker; in TEST_F() local
47 task_runner.get()->PostTask([&thread_checker] { in TEST_F()
49 thread_checker.DetachFromThread(); in TEST_F()
50 EXPECT_TRUE(thread_checker.CalledOnValidThread()); in TEST_F()
52 task_runner.get()->PostTask([this, &thread_checker] { in TEST_F()
54 EXPECT_TRUE(thread_checker.CalledOnValidThread()); in TEST_F()
68 ThreadChecker thread_checker; in TEST_F() local
69 task_runner.get()->PostTask([&thread_checker] { in TEST_F()
71 thread_checker.DetachFromThread(); in TEST_F()
72 EXPECT_TRUE(thread_checker.CalledOnValidThread()); in TEST_F()
[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.gn33 "thread_checker.cc",
/external/libchrome/base/task_scheduler/
Dlazy_task_runner_unittest.cc50 ThreadCheckerImpl* thread_checker) { in InitCheckers() argument
53 thread_checker->DetachFromThread(); in InitCheckers()
54 EXPECT_TRUE(thread_checker->CalledOnValidThread()); in InitCheckers()
58 ThreadCheckerImpl* thread_checker, in ExpectSequencedEnvironment() argument
61 EXPECT_FALSE(thread_checker->CalledOnValidThread()); in ExpectSequencedEnvironment()
66 ThreadCheckerImpl* thread_checker, in ExpectSingleThreadEnvironment() argument
74 EXPECT_TRUE(thread_checker->CalledOnValidThread()); in ExpectSingleThreadEnvironment()
96 ThreadCheckerImpl thread_checker; in TestTaskRunnerEnvironment() local
99 Unretained(&thread_checker))); in TestTaskRunnerEnvironment()
106 Unretained(&thread_checker), expected_priority in TestTaskRunnerEnvironment()
[all …]
/external/perfetto/include/perfetto/base/
Dweak_ptr.h62 PERFETTO_DCHECK_THREAD(thread_checker); in get()
75 PERFETTO_THREAD_CHECKER(thread_checker)
83 PERFETTO_DCHECK_THREAD(thread_checker);
87 PERFETTO_DCHECK_THREAD(thread_checker); in ~WeakPtrFactory()
101 PERFETTO_THREAD_CHECKER(thread_checker)
DBUILD.gn42 "thread_checker.h",
/external/perfetto/
DBUILD52 "src/base/thread_checker.cc",
89 "include/perfetto/base/thread_checker.h",
142 "src/base/thread_checker.cc",
288 "include/perfetto/base/thread_checker.h",
363 "include/perfetto/base/thread_checker.h",
395 "src/base/thread_checker.cc",
571 "include/perfetto/base/thread_checker.h",
603 "src/base/thread_checker.cc",
DAndroid.bp64 "src/base/thread_checker.cc",
180 "src/base/thread_checker.cc",
247 "src/base/thread_checker.cc",
441 "src/base/thread_checker.cc",
617 "src/base/thread_checker.cc",
2698 "src/base/thread_checker.cc",
2946 "src/base/thread_checker.cc",
3238 "src/base/thread_checker.cc",
3431 "src/base/thread_checker.cc",
/external/webrtc/webrtc/base/
DBUILD.gn152 "thread_checker.h",
Dbase.gyp122 'thread_checker.h',