Submitting http://codereview.chromium.org/87039 on behalf of hamaji.
Review URL: http://codereview.chromium.org/92053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14304 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 2126577b81b8ff457c067e7396eea0cf6c780250
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc
index 7e0a5e5..736b0b5 100644
--- a/base/file_util_unittest.cc
+++ b/base/file_util_unittest.cc
@@ -19,6 +19,7 @@
#include "base/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
+#include "base/platform_thread.h"
#include "base/string_util.h"
#include "base/time.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -320,11 +321,11 @@
// Age to perfection
#if defined(OS_WIN)
- Sleep(100);
+ PlatformThread::Sleep(100);
#elif defined(OS_POSIX)
// We need to wait at least one second here because the precision of
// file creation time is one second.
- sleep(1);
+ PlatformThread::Sleep(1500);
#endif
// Establish our cutoff time