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

Unified Diff: chrome/browser/platform_util_unittest.cc

Issue 2317123002: c/browser, c/common, components O-P: 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
« no previous file with comments | « no previous file | chrome/browser/policy/cloud/cloud_policy_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/platform_util_unittest.cc
diff --git a/chrome/browser/platform_util_unittest.cc b/chrome/browser/platform_util_unittest.cc
index 2b48709530269d6b31f7c5f732835fbc8fe7984d..12480a7dbca5f318f32c189d4a58ebcac3a491d2 100644
--- a/chrome/browser/platform_util_unittest.cc
+++ b/chrome/browser/platform_util_unittest.cc
@@ -157,19 +157,19 @@ class PlatformUtilTest : public PlatformUtilTestBase {
ASSERT_TRUE(directory_.CreateUniqueTempDir());
// A valid file.
- existing_file_ = directory_.path().AppendASCII("test_file.txt");
+ existing_file_ = directory_.GetPath().AppendASCII("test_file.txt");
ASSERT_EQ(
kTestFileDataLength,
base::WriteFile(existing_file_, kTestFileData, kTestFileDataLength));
// A valid folder.
- existing_folder_ = directory_.path().AppendASCII("test_folder");
+ existing_folder_ = directory_.GetPath().AppendASCII("test_folder");
ASSERT_TRUE(base::CreateDirectory(existing_folder_));
// A non-existent path.
- nowhere_ = directory_.path().AppendASCII("nowhere");
+ nowhere_ = directory_.GetPath().AppendASCII("nowhere");
- SetUpPlatformFixture(directory_.path());
+ SetUpPlatformFixture(directory_.GetPath());
}
OpenOperationResult CallOpenItem(const base::FilePath& path,
@@ -225,11 +225,11 @@ class PlatformUtilPosixTest : public PlatformUtilTest {
void SetUp() override {
ASSERT_NO_FATAL_FAILURE(PlatformUtilTest::SetUp());
- symlink_to_file_ = directory_.path().AppendASCII("l_file.txt");
+ symlink_to_file_ = directory_.GetPath().AppendASCII("l_file.txt");
ASSERT_TRUE(base::CreateSymbolicLink(existing_file_, symlink_to_file_));
- symlink_to_folder_ = directory_.path().AppendASCII("l_folder");
+ symlink_to_folder_ = directory_.GetPath().AppendASCII("l_folder");
ASSERT_TRUE(base::CreateSymbolicLink(existing_folder_, symlink_to_folder_));
- symlink_to_nowhere_ = directory_.path().AppendASCII("l_nowhere");
+ symlink_to_nowhere_ = directory_.GetPath().AppendASCII("l_nowhere");
ASSERT_TRUE(base::CreateSymbolicLink(nowhere_, symlink_to_nowhere_));
}
@@ -264,7 +264,7 @@ TEST_F(PlatformUtilPosixTest, OpenFolderWithPosixSymlinksChromeOS) {
TEST_F(PlatformUtilTest, OpenFileWithUnhandledFileType) {
base::FilePath unhandled_file =
- directory_.path().AppendASCII("myfile.filetype");
+ directory_.GetPath().AppendASCII("myfile.filetype");
ASSERT_EQ(3, base::WriteFile(unhandled_file, "cat", 3));
EXPECT_EQ(OPEN_FAILED_NO_HANLDER_FOR_FILE_TYPE,
CallOpenItem(unhandled_file, OPEN_FILE));
« no previous file with comments | « no previous file | chrome/browser/policy/cloud/cloud_policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698