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

Unified Diff: content/browser/fileapi/sandbox_origin_database_unittest.cc

Issue 2316043002: //content: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 3 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: content/browser/fileapi/sandbox_origin_database_unittest.cc
diff --git a/content/browser/fileapi/sandbox_origin_database_unittest.cc b/content/browser/fileapi/sandbox_origin_database_unittest.cc
index 79ebb28106b77107d3ffcff60ce97d304942f45d..8c92e4f7430946aba5aa81a4d246ad0c5a1b01e1 100644
--- a/content/browser/fileapi/sandbox_origin_database_unittest.cc
+++ b/content/browser/fileapi/sandbox_origin_database_unittest.cc
@@ -38,7 +38,7 @@ const base::FilePath::CharType kOriginDatabaseName[] =
TEST(SandboxOriginDatabaseTest, BasicTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
- const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
+ const base::FilePath kFSDir = dir.GetPath().Append(kFileSystemDirName);
EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(base::CreateDirectory(kFSDir));
@@ -68,7 +68,7 @@ TEST(SandboxOriginDatabaseTest, BasicTest) {
TEST(SandboxOriginDatabaseTest, TwoPathTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
- const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
+ const base::FilePath kFSDir = dir.GetPath().Append(kFileSystemDirName);
EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(base::CreateDirectory(kFSDir));
@@ -96,7 +96,7 @@ TEST(SandboxOriginDatabaseTest, TwoPathTest) {
TEST(SandboxOriginDatabaseTest, DropDatabaseTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
- const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
+ const base::FilePath kFSDir = dir.GetPath().Append(kFileSystemDirName);
EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(base::CreateDirectory(kFSDir));
@@ -124,7 +124,7 @@ TEST(SandboxOriginDatabaseTest, DropDatabaseTest) {
TEST(SandboxOriginDatabaseTest, DeleteOriginTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
- const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
+ const base::FilePath kFSDir = dir.GetPath().Append(kFileSystemDirName);
EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(base::CreateDirectory(kFSDir));
@@ -151,7 +151,7 @@ TEST(SandboxOriginDatabaseTest, DeleteOriginTest) {
TEST(SandboxOriginDatabaseTest, ListOriginsTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
- const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
+ const base::FilePath kFSDir = dir.GetPath().Append(kFileSystemDirName);
EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(base::CreateDirectory(kFSDir));
@@ -200,7 +200,7 @@ TEST(SandboxOriginDatabaseTest, DatabaseRecoveryTest) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
- const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
+ const base::FilePath kFSDir = dir.GetPath().Append(kFileSystemDirName);
const base::FilePath kDBDir = kFSDir.Append(kOriginDatabaseName);
EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(base::CreateDirectory(kFSDir));
@@ -275,7 +275,7 @@ TEST(SandboxOriginDatabaseTest, DatabaseRecoveryForMissingDBFileTest) {
for (size_t i = 0; i < arraysize(kLevelDBFileTypes); ++i) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
- const base::FilePath kFSDir = dir.path().Append(kFileSystemDirName);
+ const base::FilePath kFSDir = dir.GetPath().Append(kFileSystemDirName);
const base::FilePath kDBDir = kFSDir.Append(kOriginDatabaseName);
EXPECT_FALSE(base::PathExists(kFSDir));
EXPECT_TRUE(base::CreateDirectory(kFSDir));

Powered by Google App Engine
This is Rietveld 408576698