diff options
Diffstat (limited to 'base/threading/thread_unittest.cc')
-rw-r--r-- | base/threading/thread_unittest.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/threading/thread_unittest.cc b/base/threading/thread_unittest.cc index a89768e..e86c758 100644 --- a/base/threading/thread_unittest.cc +++ b/base/threading/thread_unittest.cc @@ -194,11 +194,12 @@ TEST_F(ThreadTest, ThreadName) { EXPECT_EQ("ThreadName", a.thread_name()); } -// Make sure we can't use a thread between Start() and Init(). +// Make sure Init() is called after Start() and before +// WaitUntilThreadInitialized() returns. TEST_F(ThreadTest, SleepInsideInit) { SleepInsideInitThread t; EXPECT_FALSE(t.InitCalled()); - t.Start(); + t.StartAndWaitForTesting(); EXPECT_TRUE(t.InitCalled()); } |