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

Unified Diff: tools/gn/filesystem_utils_unittest.cc

Issue 2317123003: misc files R-U: 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 | « tools/gn/exec_process_unittest.cc ('k') | tools/gn/function_write_file_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/filesystem_utils_unittest.cc
diff --git a/tools/gn/filesystem_utils_unittest.cc b/tools/gn/filesystem_utils_unittest.cc
index 240ed61f7ab136b91b69ad2a38acb4e5d0b04f0e..f5724c43de83539928115737284028087ffb310c 100644
--- a/tools/gn/filesystem_utils_unittest.cc
+++ b/tools/gn/filesystem_utils_unittest.cc
@@ -581,7 +581,7 @@ TEST(FilesystemUtils, ContentsEqual) {
std::string data = "foo";
- base::FilePath file_path = temp_dir.path().AppendASCII("foo.txt");
+ base::FilePath file_path = temp_dir.GetPath().AppendASCII("foo.txt");
base::WriteFile(file_path, data.c_str(), static_cast<int>(data.size()));
EXPECT_TRUE(ContentsEqual(file_path, data));
@@ -602,7 +602,7 @@ TEST(FilesystemUtils, WriteFileIfChanged) {
// Write if file doesn't exist. Create also directory.
base::FilePath file_path =
- temp_dir.path().AppendASCII("bar").AppendASCII("foo.txt");
+ temp_dir.GetPath().AppendASCII("bar").AppendASCII("foo.txt");
EXPECT_TRUE(WriteFileIfChanged(file_path, data, nullptr));
base::File::Info file_info;
« no previous file with comments | « tools/gn/exec_process_unittest.cc ('k') | tools/gn/function_write_file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698