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

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

Issue 2379543002: installer and some misc files: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Fix compilation failure 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/copy_tree_work_item_unittest.cc
diff --git a/chrome/installer/util/copy_tree_work_item_unittest.cc b/chrome/installer/util/copy_tree_work_item_unittest.cc
index e34c2ed7718f1e09e8467ac25c42497f6a400934..9daf6cd2267e60320ab985af16314140e4dc28e9 100644
--- a/chrome/installer/util/copy_tree_work_item_unittest.cc
+++ b/chrome/installer/util/copy_tree_work_item_unittest.cc
@@ -201,7 +201,7 @@ TEST_F(CopyTreeWorkItemTest, CopyFileSameContent) {
EXPECT_TRUE(work_item->Do());
// Get the path of backup file
- base::FilePath backup_file(work_item->backup_path_.path());
+ base::FilePath backup_file(work_item->backup_path_);
EXPECT_FALSE(backup_file.empty());
backup_file = backup_file.AppendASCII("File_To.txt");
@@ -280,7 +280,7 @@ TEST_F(CopyTreeWorkItemTest, CopyFileAndCleanup) {
EXPECT_TRUE(work_item->Do());
// Get the path of backup file
- backup_file = work_item->backup_path_.path();
+ backup_file = work_item->backup_path_;
EXPECT_FALSE(backup_file.empty());
backup_file = backup_file.AppendASCII("File_To.txt");
@@ -341,7 +341,7 @@ TEST_F(CopyTreeWorkItemTest, CopyFileInUse) {
EXPECT_TRUE(work_item->Do());
// Get the path of backup file
- base::FilePath backup_file(work_item->backup_path_.path());
+ base::FilePath backup_file(work_item->backup_path_);
EXPECT_FALSE(backup_file.empty());
backup_file = backup_file.AppendASCII("File_To");
@@ -422,7 +422,7 @@ TEST_F(CopyTreeWorkItemTest, NewNameAndCopyTest) {
EXPECT_EQ(0, ReadTextFile(file_name_from.value()).compare(text_content_1));
EXPECT_TRUE(base::ContentsEqual(exe_full_path, file_name_to));
// verify that the backup path does not exist
- EXPECT_TRUE(work_item->backup_path_.path().empty());
+ EXPECT_TRUE(work_item->backup_path_.empty());
EXPECT_TRUE(base::ContentsEqual(file_name_from, alternate_to));
// test rollback()
@@ -432,7 +432,7 @@ TEST_F(CopyTreeWorkItemTest, NewNameAndCopyTest) {
EXPECT_TRUE(base::PathExists(file_name_to));
EXPECT_EQ(0, ReadTextFile(file_name_from.value()).compare(text_content_1));
EXPECT_TRUE(base::ContentsEqual(exe_full_path, file_name_to));
- EXPECT_TRUE(work_item->backup_path_.path().empty());
+ EXPECT_TRUE(work_item->backup_path_.empty());
// the alternate file should be gone after rollback
EXPECT_FALSE(base::PathExists(alternate_to));
@@ -453,7 +453,7 @@ TEST_F(CopyTreeWorkItemTest, NewNameAndCopyTest) {
EXPECT_TRUE(work_item->Do());
// Get the path of backup file
- base::FilePath backup_file(work_item->backup_path_.path());
+ base::FilePath backup_file(work_item->backup_path_);
EXPECT_FALSE(backup_file.empty());
backup_file = backup_file.AppendASCII("File_To");
@@ -606,7 +606,7 @@ TEST_F(CopyTreeWorkItemTest, DISABLED_CopyFileInUseAndCleanup) {
EXPECT_TRUE(work_item->Do());
// Get the path of backup file
- backup_file = work_item->backup_path_.path();
+ backup_file = work_item->backup_path_;
EXPECT_FALSE(backup_file.empty());
backup_file = backup_file.AppendASCII("File_To");

Powered by Google App Engine
This is Rietveld 408576698