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

Unified Diff: chrome/installer/util/self_cleaning_temp_dir_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
« no previous file with comments | « chrome/installer/util/move_tree_work_item_unittest.cc ('k') | chrome/installer/util/shell_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/self_cleaning_temp_dir_unittest.cc
diff --git a/chrome/installer/util/self_cleaning_temp_dir_unittest.cc b/chrome/installer/util/self_cleaning_temp_dir_unittest.cc
index 66125660d8f12136600e38c9624a87982f7b0ea5..b807fbff5a0061684aaefbea1be2e7335b5a9f62 100644
--- a/chrome/installer/util/self_cleaning_temp_dir_unittest.cc
+++ b/chrome/installer/util/self_cleaning_temp_dir_unittest.cc
@@ -71,7 +71,8 @@ TEST_F(SelfCleaningTempDirTest, RemoveUnusedOnDelete) {
EXPECT_TRUE(work_dir.CreateUniqueTempDir());
// Make up some path under the temp dir.
- base::FilePath parent_temp_dir(work_dir.path().Append(L"One").Append(L"Two"));
+ base::FilePath parent_temp_dir(
+ work_dir.GetPath().Append(L"One").Append(L"Two"));
SelfCleaningTempDir temp_dir;
EXPECT_TRUE(temp_dir.Initialize(parent_temp_dir, L"Three"));
EXPECT_EQ(parent_temp_dir.Append(L"Three"), temp_dir.path());
@@ -92,7 +93,8 @@ TEST_F(SelfCleaningTempDirTest, TwoClients) {
EXPECT_TRUE(work_dir.CreateUniqueTempDir());
// Make up some path under the temp dir.
- base::FilePath parent_temp_dir(work_dir.path().Append(L"One").Append(L"Two"));
+ base::FilePath parent_temp_dir(
+ work_dir.GetPath().Append(L"One").Append(L"Two"));
SelfCleaningTempDir temp_dir1;
SelfCleaningTempDir temp_dir2;
// First client is created.
@@ -129,7 +131,8 @@ TEST_F(SelfCleaningTempDirTest, RemoveUnusedOnDestroy) {
EXPECT_TRUE(work_dir.CreateUniqueTempDir());
// Make up some path under the temp dir.
- base::FilePath parent_temp_dir(work_dir.path().Append(L"One").Append(L"Two"));
+ base::FilePath parent_temp_dir(
+ work_dir.GetPath().Append(L"One").Append(L"Two"));
{
SelfCleaningTempDir temp_dir;
EXPECT_TRUE(temp_dir.Initialize(parent_temp_dir, L"Three"));
@@ -154,7 +157,8 @@ TEST_F(SelfCleaningTempDirTest, LeaveUsedOnDestroy) {
EXPECT_TRUE(work_dir.CreateUniqueTempDir());
// Make up some path under the temp dir.
- base::FilePath parent_temp_dir(work_dir.path().Append(L"One").Append(L"Two"));
+ base::FilePath parent_temp_dir(
+ work_dir.GetPath().Append(L"One").Append(L"Two"));
{
SelfCleaningTempDir temp_dir;
EXPECT_TRUE(temp_dir.Initialize(parent_temp_dir, L"Three"));
« no previous file with comments | « chrome/installer/util/move_tree_work_item_unittest.cc ('k') | chrome/installer/util/shell_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698