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

Unified Diff: chrome/installer/util/create_dir_work_item_unittest.cc

Issue 2321573002: //chrome misc: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Fix Win compilation 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: chrome/installer/util/create_dir_work_item_unittest.cc
diff --git a/chrome/installer/util/create_dir_work_item_unittest.cc b/chrome/installer/util/create_dir_work_item_unittest.cc
index dca22367570c41fcbff31aa211efe534b554472e..00328da99b5292201dd3961dbbc5ce461cd86394 100644
--- a/chrome/installer/util/create_dir_work_item_unittest.cc
+++ b/chrome/installer/util/create_dir_work_item_unittest.cc
@@ -25,7 +25,7 @@ namespace {
};
TEST_F(CreateDirWorkItemTest, CreatePath) {
- base::FilePath parent_dir(temp_dir_.path());
+ base::FilePath parent_dir(temp_dir_.GetPath());
parent_dir = parent_dir.AppendASCII("a");
base::CreateDirectory(parent_dir);
ASSERT_TRUE(base::PathExists(parent_dir));
@@ -52,7 +52,7 @@ TEST_F(CreateDirWorkItemTest, CreatePath) {
}
TEST_F(CreateDirWorkItemTest, CreateExistingPath) {
- base::FilePath dir_to_create(temp_dir_.path());
+ base::FilePath dir_to_create(temp_dir_.GetPath());
dir_to_create = dir_to_create.AppendASCII("aa");
base::CreateDirectory(dir_to_create);
ASSERT_TRUE(base::PathExists(dir_to_create));
@@ -72,7 +72,7 @@ TEST_F(CreateDirWorkItemTest, CreateExistingPath) {
}
TEST_F(CreateDirWorkItemTest, CreateSharedPath) {
- base::FilePath dir_to_create_1(temp_dir_.path());
+ base::FilePath dir_to_create_1(temp_dir_.GetPath());
dir_to_create_1 = dir_to_create_1.AppendASCII("aaa");
base::FilePath dir_to_create_2(dir_to_create_1);
@@ -105,7 +105,7 @@ TEST_F(CreateDirWorkItemTest, CreateSharedPath) {
}
TEST_F(CreateDirWorkItemTest, RollbackWithMissingDir) {
- base::FilePath dir_to_create_1(temp_dir_.path());
+ base::FilePath dir_to_create_1(temp_dir_.GetPath());
dir_to_create_1 = dir_to_create_1.AppendASCII("aaaa");
base::FilePath dir_to_create_2(dir_to_create_1);
« no previous file with comments | « chrome/installer/util/copy_tree_work_item_unittest.cc ('k') | chrome/installer/util/delete_old_versions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698