Lines Matching refs:thread_checker

45 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
76 EXPECT_TRUE(thread_checker.CalledOnValidThread()); in TEST()
84 std::unique_ptr<ThreadCheckerImpl> thread_checker; in TEST() local
90 thread_checker.reset(new ThreadCheckerImpl); in TEST()
96 EXPECT_TRUE(thread_checker->CalledOnValidThread()); in TEST()
104 ThreadCheckerImpl thread_checker; in TEST() local
105 EXPECT_TRUE(thread_checker.CalledOnValidThread()); in TEST()
110 std::unique_ptr<ThreadCheckerImpl> thread_checker; in TEST() local
115 thread_checker.reset(new ThreadCheckerImpl); in TEST()
121 EXPECT_FALSE(thread_checker->CalledOnValidThread()); in TEST()
126 ThreadCheckerImpl thread_checker; in TEST() local
128 Bind(&ExpectNotCalledOnValidThread, Unretained(&thread_checker))); in TEST()
138 ThreadCheckerImpl thread_checker; in TEST() local
139 EXPECT_TRUE(thread_checker.CalledOnValidThread()); in TEST()
143 Unretained(&thread_checker), sequence_token)); in TEST()
147 std::unique_ptr<ThreadCheckerImpl> thread_checker; in TEST() local
155 thread_checker.reset(new ThreadCheckerImpl); in TEST()
162 EXPECT_FALSE(thread_checker->CalledOnValidThread()); in TEST()
166 EXPECT_FALSE(thread_checker->CalledOnValidThread()); in TEST()
170 ThreadCheckerImpl thread_checker; in TEST() local
171 thread_checker.DetachFromThread(); in TEST()
176 Bind(&ExpectCalledOnValidThread, Unretained(&thread_checker))); in TEST()
178 EXPECT_FALSE(thread_checker.CalledOnValidThread()); in TEST()
186 ThreadCheckerImpl thread_checker; in TEST() local
187 thread_checker.DetachFromThread(); in TEST()
192 Bind(&ExpectCalledOnValidThread, Unretained(&thread_checker))); in TEST()
194 EXPECT_FALSE(thread_checker.CalledOnValidThread()); in TEST()