Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: net/disk_cache/cache_util_unittest.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/cache_util.cc ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/cache_util_unittest.cc
diff --git a/net/disk_cache/cache_util_unittest.cc b/net/disk_cache/cache_util_unittest.cc
index 74ae365db4cfce08e0ae4d752897760d4bc40aeb..aebd26860d168d11fc3865e04d0f1bdf46a4ef92 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
« no previous file with comments | « net/disk_cache/cache_util.cc ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698