| Index: base/file_util_unittest.cc
|
| diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc
|
| index 4cd6f03dd7f437cb30640f8c93d540b4c0467a02..0cade2ae6f07be030ff4c5056e5ddba8233c0da8 100644
|
| --- a/base/file_util_unittest.cc
|
| +++ b/base/file_util_unittest.cc
|
| @@ -22,7 +22,6 @@
|
| #include "base/path_service.h"
|
| #include "base/scoped_temp_dir.h"
|
| #include "base/threading/platform_thread.h"
|
| -#include "base/time.h"
|
| #include "base/utf_string_conversions.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "testing/platform_test.h"
|
| @@ -349,11 +348,11 @@ TEST_F(FileUtilTest, FLAKY_CountFilesCreatedAfter) {
|
|
|
| // Age to perfection
|
| #if defined(OS_WIN)
|
| - base::PlatformThread::Sleep(100);
|
| + base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
|
| #elif defined(OS_POSIX)
|
| // We need to wait at least one second here because the precision of
|
| // file creation time is one second.
|
| - base::PlatformThread::Sleep(1500);
|
| + base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(1500));
|
| #endif
|
|
|
| // Establish our cutoff time
|
| @@ -1250,9 +1249,9 @@ TEST_F(FileUtilTest, GetFileCreationLocalTime) {
|
|
|
| SYSTEMTIME start_time;
|
| GetLocalTime(&start_time);
|
| - Sleep(100);
|
| + base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
|
| CreateTextFile(file_name, L"New file!");
|
| - Sleep(100);
|
| + base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
|
| SYSTEMTIME end_time;
|
| GetLocalTime(&end_time);
|
|
|
|
|