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

Unified Diff: webkit/browser/dom_storage/dom_storage_database_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
Index: webkit/browser/dom_storage/dom_storage_database_unittest.cc
diff --git a/webkit/browser/dom_storage/dom_storage_database_unittest.cc b/webkit/browser/dom_storage/dom_storage_database_unittest.cc
index 4d8db911a2aff3f449a667a4d2734f1069803afb..d3d4ae22f0657fef1df0f06f520b030f95f17fad 100644
--- a/webkit/browser/dom_storage/dom_storage_database_unittest.cc
+++ b/webkit/browser/dom_storage/dom_storage_database_unittest.cc
@@ -122,7 +122,7 @@ TEST(DomStorageDatabaseTest, CloseEmptyDatabaseDeletesFile) {
EXPECT_EQ(file_name, db.file_path());
ASSERT_TRUE(db.CommitChanges(false, storage));
}
- EXPECT_TRUE(file_util::PathExists(file_name));
+ EXPECT_TRUE(base::PathExists(file_name));
{
// Check that reading an existing db with data in it
@@ -133,14 +133,14 @@ TEST(DomStorageDatabaseTest, CloseEmptyDatabaseDeletesFile) {
EXPECT_EQ(storage.size(), values.size());
}
- EXPECT_TRUE(file_util::PathExists(file_name));
+ EXPECT_TRUE(base::PathExists(file_name));
storage.clear();
{
DomStorageDatabase db(file_name);
ASSERT_TRUE(db.CommitChanges(true, storage));
}
- EXPECT_FALSE(file_util::PathExists(file_name));
+ EXPECT_FALSE(base::PathExists(file_name));
// Now ensure that a series of updates and removals whose net effect
// is an empty database also triggers deletion.
@@ -150,7 +150,7 @@ TEST(DomStorageDatabaseTest, CloseEmptyDatabaseDeletesFile) {
ASSERT_TRUE(db.CommitChanges(false, storage));
}
- EXPECT_TRUE(file_util::PathExists(file_name));
+ EXPECT_TRUE(base::PathExists(file_name));
{
DomStorageDatabase db(file_name);
@@ -160,7 +160,7 @@ TEST(DomStorageDatabaseTest, CloseEmptyDatabaseDeletesFile) {
it->second = base::NullableString16();
ASSERT_TRUE(db.CommitChanges(false, storage));
}
- EXPECT_FALSE(file_util::PathExists(file_name));
+ EXPECT_FALSE(base::PathExists(file_name));
}
TEST(DomStorageDatabaseTest, TestLazyOpenIsLazy) {
@@ -313,7 +313,7 @@ TEST(DomStorageDatabaseTest, TestCanOpenAndReadWebCoreDatabase) {
webcore_database =
webcore_database.AppendASCII("webcore_test_database.localstorage");
- ASSERT_TRUE(file_util::PathExists(webcore_database));
+ ASSERT_TRUE(base::PathExists(webcore_database));
DomStorageDatabase db(webcore_database);
ValuesMap values;
@@ -374,7 +374,7 @@ TEST(DomStorageDatabaseTest, TestCanOpenFileThatIsNotADatabase) {
EXPECT_EQ(0u, values.size());
EXPECT_FALSE(db.IsOpen());
- EXPECT_TRUE(file_util::PathExists(temp_dir.path()));
+ EXPECT_TRUE(base::PathExists(temp_dir.path()));
}
}
« no previous file with comments | « webkit/browser/dom_storage/dom_storage_database.cc ('k') | webkit/browser/dom_storage/session_storage_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698