diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 17:36:07 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 17:36:07 +0000 |
commit | 7567484144da059e2c2c2a818b06660a5459052f (patch) | |
tree | a4ceafc7e890051c25dbdd54b170d0f5794dd229 /net/disk_cache/cache_util_unittest.cc | |
parent | 8a25d54d6eb190a8b82479b5309a892c1080a372 (diff) | |
download | chromium_src-7567484144da059e2c2c2a818b06660a5459052f.zip chromium_src-7567484144da059e2c2c2a818b06660a5459052f.tar.gz chromium_src-7567484144da059e2c2c2a818b06660a5459052f.tar.bz2 |
Move PathExists to base namespace.
BUG=
TBR=jam@chromium.org
Review URL: https://codereview.chromium.org/18286004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211147 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/cache_util_unittest.cc')
-rw-r--r-- | net/disk_cache/cache_util_unittest.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/net/disk_cache/cache_util_unittest.cc b/net/disk_cache/cache_util_unittest.cc index 74ae365..aebd268 100644 --- a/net/disk_cache/cache_util_unittest.cc +++ b/net/disk_cache/cache_util_unittest.cc @@ -48,18 +48,18 @@ class CacheUtilTest : public PlatformTest { TEST_F(CacheUtilTest, MoveCache) { EXPECT_TRUE(disk_cache::MoveCache(cache_dir_, dest_dir_)); - EXPECT_TRUE(file_util::PathExists(dest_dir_)); - EXPECT_TRUE(file_util::PathExists(dest_file1_)); - EXPECT_TRUE(file_util::PathExists(dest_file2_)); - EXPECT_TRUE(file_util::PathExists(dest_dir1_)); + EXPECT_TRUE(base::PathExists(dest_dir_)); + EXPECT_TRUE(base::PathExists(dest_file1_)); + EXPECT_TRUE(base::PathExists(dest_file2_)); + EXPECT_TRUE(base::PathExists(dest_dir1_)); #if defined(OS_CHROMEOS) - EXPECT_TRUE(file_util::PathExists(cache_dir_)); // old cache dir stays + EXPECT_TRUE(base::PathExists(cache_dir_)); // old cache dir stays #else - EXPECT_FALSE(file_util::PathExists(cache_dir_)); // old cache is gone + EXPECT_FALSE(base::PathExists(cache_dir_)); // old cache is gone #endif - EXPECT_FALSE(file_util::PathExists(file1_)); - EXPECT_FALSE(file_util::PathExists(file2_)); - EXPECT_FALSE(file_util::PathExists(dir1_)); + EXPECT_FALSE(base::PathExists(file1_)); + EXPECT_FALSE(base::PathExists(file2_)); + EXPECT_FALSE(base::PathExists(dir1_)); } TEST_F(CacheUtilTest, DeleteCache) { @@ -67,9 +67,9 @@ TEST_F(CacheUtilTest, DeleteCache) { // one around. base::Delete(dir1_, false); disk_cache::DeleteCache(cache_dir_, false); - EXPECT_TRUE(file_util::PathExists(cache_dir_)); // cache dir stays - EXPECT_FALSE(file_util::PathExists(file1_)); - EXPECT_FALSE(file_util::PathExists(file2_)); + EXPECT_TRUE(base::PathExists(cache_dir_)); // cache dir stays + EXPECT_FALSE(base::PathExists(file1_)); + EXPECT_FALSE(base::PathExists(file2_)); } TEST_F(CacheUtilTest, DeleteCacheAndDir) { @@ -77,15 +77,15 @@ TEST_F(CacheUtilTest, DeleteCacheAndDir) { // one around. base::Delete(dir1_, false); disk_cache::DeleteCache(cache_dir_, true); - EXPECT_FALSE(file_util::PathExists(cache_dir_)); // cache dir is gone - EXPECT_FALSE(file_util::PathExists(file1_)); - EXPECT_FALSE(file_util::PathExists(file2_)); + EXPECT_FALSE(base::PathExists(cache_dir_)); // cache dir is gone + EXPECT_FALSE(base::PathExists(file1_)); + EXPECT_FALSE(base::PathExists(file2_)); } TEST_F(CacheUtilTest, DeleteCacheFile) { EXPECT_TRUE(disk_cache::DeleteCacheFile(file1_)); - EXPECT_FALSE(file_util::PathExists(file1_)); - EXPECT_TRUE(file_util::PathExists(cache_dir_)); // cache dir stays + EXPECT_FALSE(base::PathExists(file1_)); + EXPECT_TRUE(base::PathExists(cache_dir_)); // cache dir stays } } // namespace disk_cache |