diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-01 01:27:48 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-01 01:27:48 +0000 |
commit | 3962be8a09a4b7bc0b092dfe10567f4c72d25ced (patch) | |
tree | 9db33828cbebbbe3c6865a5714103df144d42968 /net/base/cookie_monster_unittest.cc | |
parent | a1c78c4c2440cef276b0f69a192deac5730220fc (diff) | |
download | chromium_src-3962be8a09a4b7bc0b092dfe10567f4c72d25ced.zip chromium_src-3962be8a09a4b7bc0b092dfe10567f4c72d25ced.tar.gz chromium_src-3962be8a09a4b7bc0b092dfe10567f4c72d25ced.tar.bz2 |
Try to fix Mac and Linux compiles.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4357 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_monster_unittest.cc')
-rw-r--r-- | net/base/cookie_monster_unittest.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/base/cookie_monster_unittest.cc b/net/base/cookie_monster_unittest.cc index 7b6f0ad..c3c64f3 100644 --- a/net/base/cookie_monster_unittest.cc +++ b/net/base/cookie_monster_unittest.cc @@ -6,9 +6,10 @@ #include <string> +#include "base/basictypes.h" +#include "base/platform_thread.h" #include "base/string_util.h" #include "base/time.h" -#include "base/basictypes.h" #include "googleurl/src/gurl.h" #include "net/base/cookie_monster.h" #include "testing/gtest/include/gtest/gtest.h" @@ -738,7 +739,7 @@ TEST(CookieMonsterTest, TestLastAccess) { EXPECT_TRUE(last_access_date == GetFirstCookieAccessDate(&cm)); // Reading after a short wait should update the access date. - Sleep(1500); + PlatformThread::Sleep(1500); EXPECT_EQ("A=B", cm.GetCookies(url_google)); EXPECT_FALSE(last_access_date == GetFirstCookieAccessDate(&cm)); } @@ -780,7 +781,8 @@ TEST(CookieMonsterTest, TestTotalGarbageCollection) { // Keep touching the first cookie to ensure it's not purged (since it will // always have the most recent access time). if (!(i % 500)) { - Sleep(1500); // Ensure the timestamps will be different enough to update. + PlatformThread::Sleep(1500); // Ensure the timestamps will be different + // enough to update. EXPECT_EQ("a=b", cm.GetCookies(sticky_cookie)); } } |