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

Unified Diff: chrome/installer/util/logging_installer_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/logging_installer_unittest.cc
diff --git a/chrome/installer/util/logging_installer_unittest.cc b/chrome/installer/util/logging_installer_unittest.cc
index 13b71f5204e51dd5ea89980680a41a66f89d87f6..495ba69f4dcde0a12485d8656c1b310904685fbd 100644
--- a/chrome/installer/util/logging_installer_unittest.cc
+++ b/chrome/installer/util/logging_installer_unittest.cc
@@ -20,7 +20,7 @@ TEST(LoggingInstallerTest, TestTruncate) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath temp_file = temp_dir.path().Append(L"temp");
+ base::FilePath temp_file = temp_dir.GetPath().Append(L"temp");
EXPECT_EQ(static_cast<int>(test_data.size()),
base::WriteFile(temp_file, &test_data[0],
static_cast<int>(test_data.size())));
@@ -46,7 +46,7 @@ TEST(LoggingInstallerTest, TestTruncationNotNeeded) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath temp_file = temp_dir.path().Append(L"temp");
+ base::FilePath temp_file = temp_dir.GetPath().Append(L"temp");
EXPECT_EQ(static_cast<int>(test_data.size()),
base::WriteFile(temp_file, &test_data[0],
static_cast<int>(test_data.size())));
@@ -69,7 +69,7 @@ TEST(LoggingInstallerTest, TestInUseNeedsTruncation) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath temp_file = temp_dir.path().Append(L"temp");
+ base::FilePath temp_file = temp_dir.GetPath().Append(L"temp");
EXPECT_EQ(static_cast<int>(test_data.size()),
base::WriteFile(temp_file, &test_data[0],
static_cast<int>(test_data.size())));
@@ -97,7 +97,7 @@ TEST(LoggingInstallerTest, TestMoveFailsNeedsTruncation) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath temp_file = temp_dir.path().Append(L"temp");
+ base::FilePath temp_file = temp_dir.GetPath().Append(L"temp");
EXPECT_EQ(static_cast<int>(test_data.size()),
base::WriteFile(temp_file, &test_data[0],
static_cast<int>(test_data.size())));
« no previous file with comments | « chrome/installer/util/installer_state_unittest.cc ('k') | chrome/installer/util/lzma_file_allocator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698