summaryrefslogtreecommitdiffstats
path: root/base/file_util_unittest.cc
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-23 15:05:19 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-23 15:05:19 +0000
commit2126577b81b8ff457c067e7396eea0cf6c780250 (patch)
tree1d6c812b2cff0fa9aab682d0dc534aa0ae7671c7 /base/file_util_unittest.cc
parent8cd1bc519a047465b0fb6018a75f1f9458c77af1 (diff)
downloadchromium_src-2126577b81b8ff457c067e7396eea0cf6c780250.zip
chromium_src-2126577b81b8ff457c067e7396eea0cf6c780250.tar.gz
chromium_src-2126577b81b8ff457c067e7396eea0cf6c780250.tar.bz2
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
Diffstat (limited to 'base/file_util_unittest.cc')
-rw-r--r--base/file_util_unittest.cc5
1 files changed, 3 insertions, 2 deletions
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 @@ TEST_F(FileUtilTest, CountFilesCreatedAfter) {
// 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