summaryrefslogtreecommitdiffstats
path: root/base/thread_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/thread_unittest.cc')
-rw-r--r--base/thread_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/thread_unittest.cc b/base/thread_unittest.cc
index c4e8be7..2717246 100644
--- a/base/thread_unittest.cc
+++ b/base/thread_unittest.cc
@@ -51,7 +51,7 @@ class SleepSome : public Task {
explicit SleepSome(int msec) : msec_(msec) {
}
virtual void Run() {
- Sleep(msec_);
+ PlatformThread::Sleep(msec_);
}
private:
int msec_;
@@ -89,7 +89,7 @@ TEST(ThreadTest, StartWithStackSize) {
// instead to avoid busy waiting, but this is sufficient for
// testing purposes).
for (int i = 100; i >= 0 && !was_invoked; --i) {
- Sleep(10);
+ PlatformThread::Sleep(10);
}
EXPECT_TRUE(was_invoked);
}