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

Unified Diff: webkit/browser/fileapi/sandbox_origin_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/fileapi/sandbox_origin_database_unittest.cc
diff --git a/webkit/browser/fileapi/sandbox_origin_database_unittest.cc b/webkit/browser/fileapi/sandbox_origin_database_unittest.cc
index 49e50459c1798e564880580238d663920bd668de..867dc273aada75b7d033820e242785db4ceeca10 100644
--- a/webkit/browser/fileapi/sandbox_origin_database_unittest.cc
+++ b/webkit/browser/fileapi/sandbox_origin_database_unittest.cc
@@ -32,7 +32,7 @@ TEST(SandboxOriginDatabaseTest, BasicTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
- EXPECT_FALSE(file_util::PathExists(kFSDir));
+ EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(file_util::CreateDirectory(kFSDir));
SandboxOriginDatabase database(kFSDir);
@@ -55,14 +55,14 @@ TEST(SandboxOriginDatabaseTest, BasicTest) {
EXPECT_FALSE(path1.empty());
EXPECT_EQ(path0, path1);
- EXPECT_TRUE(file_util::PathExists(kFSDir.Append(kOriginDatabaseName)));
+ EXPECT_TRUE(base::PathExists(kFSDir.Append(kOriginDatabaseName)));
}
TEST(SandboxOriginDatabaseTest, TwoPathTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
- EXPECT_FALSE(file_util::PathExists(kFSDir));
+ EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(file_util::CreateDirectory(kFSDir));
SandboxOriginDatabase database(kFSDir);
@@ -83,14 +83,14 @@ TEST(SandboxOriginDatabaseTest, TwoPathTest) {
EXPECT_FALSE(path1.empty());
EXPECT_NE(path0, path1);
- EXPECT_TRUE(file_util::PathExists(kFSDir.Append(kOriginDatabaseName)));
+ EXPECT_TRUE(base::PathExists(kFSDir.Append(kOriginDatabaseName)));
}
TEST(SandboxOriginDatabaseTest, DropDatabaseTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
- EXPECT_FALSE(file_util::PathExists(kFSDir));
+ EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(file_util::CreateDirectory(kFSDir));
SandboxOriginDatabase database(kFSDir);
@@ -103,7 +103,7 @@ TEST(SandboxOriginDatabaseTest, DropDatabaseTest) {
EXPECT_TRUE(database.HasOriginPath(origin));
EXPECT_FALSE(path0.empty());
- EXPECT_TRUE(file_util::PathExists(kFSDir.Append(kOriginDatabaseName)));
+ EXPECT_TRUE(base::PathExists(kFSDir.Append(kOriginDatabaseName)));
database.DropDatabase();
@@ -118,7 +118,7 @@ TEST(SandboxOriginDatabaseTest, DeleteOriginTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
- EXPECT_FALSE(file_util::PathExists(kFSDir));
+ EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(file_util::CreateDirectory(kFSDir));
SandboxOriginDatabase database(kFSDir);
@@ -145,7 +145,7 @@ TEST(SandboxOriginDatabaseTest, ListOriginsTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
- EXPECT_FALSE(file_util::PathExists(kFSDir));
+ EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(file_util::CreateDirectory(kFSDir));
std::vector<SandboxOriginDatabase::OriginRecord> origins;
@@ -195,7 +195,7 @@ TEST(SandboxOriginDatabaseTest, DatabaseRecoveryTest) {
ASSERT_TRUE(dir.CreateUniqueTempDir());
const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
const base::FilePath kDBDir = kFSDir.Append(kOriginDatabaseName);
- EXPECT_FALSE(file_util::PathExists(kFSDir));
+ EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(file_util::CreateDirectory(kFSDir));
const std::string kOrigins[] = {
@@ -255,8 +255,8 @@ TEST(SandboxOriginDatabaseTest, DatabaseRecoveryTest) {
EXPECT_FALSE(path.empty());
EXPECT_TRUE(database->HasOriginPath(kOrigin));
- EXPECT_FALSE(file_util::PathExists(kGarbageFile));
- EXPECT_FALSE(file_util::PathExists(kGarbageDir));
+ EXPECT_FALSE(base::PathExists(kGarbageFile));
+ EXPECT_FALSE(base::PathExists(kGarbageDir));
}
TEST(SandboxOriginDatabaseTest, DatabaseRecoveryForMissingDBFileTest) {
@@ -275,7 +275,7 @@ TEST(SandboxOriginDatabaseTest, DatabaseRecoveryForMissingDBFileTest) {
ASSERT_TRUE(dir.CreateUniqueTempDir());
const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
const base::FilePath kDBDir = kFSDir.Append(kOriginDatabaseName);
- EXPECT_FALSE(file_util::PathExists(kFSDir));
+ EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(file_util::CreateDirectory(kFSDir));
const std::string kOrigin = "foo.example.com";
« no previous file with comments | « webkit/browser/fileapi/sandbox_origin_database.cc ('k') | webkit/browser/fileapi/transient_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698