| Index: tools/gn/function_write_file_unittest.cc
|
| diff --git a/tools/gn/function_write_file_unittest.cc b/tools/gn/function_write_file_unittest.cc
|
| index 50a0f43ec0ba807da45effb1d56ce6d1dfef9dda..8f2b42a5004f81eb80d3bda9eb04ea0f759676f2 100644
|
| --- a/tools/gn/function_write_file_unittest.cc
|
| +++ b/tools/gn/function_write_file_unittest.cc
|
| @@ -40,7 +40,7 @@ TEST(WriteFile, WithData) {
|
| // Make a real directory for writing the files.
|
| base::ScopedTempDir temp_dir;
|
| ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
|
| - setup.build_settings()->SetRootPath(temp_dir.path());
|
| + setup.build_settings()->SetRootPath(temp_dir.GetPath());
|
| setup.build_settings()->SetBuildDir(SourceDir("//out/"));
|
|
|
| Value some_string(nullptr, "some string contents");
|
| @@ -52,8 +52,9 @@ TEST(WriteFile, WithData) {
|
|
|
| // Should be able to write to a new dir inside the out dir.
|
| EXPECT_TRUE(CallWriteFile(setup.scope(), "//out/foo.txt", some_string));
|
| - base::FilePath foo_name = temp_dir.path().Append(FILE_PATH_LITERAL("out"))
|
| - .Append(FILE_PATH_LITERAL("foo.txt"));
|
| + base::FilePath foo_name = temp_dir.GetPath()
|
| + .Append(FILE_PATH_LITERAL("out"))
|
| + .Append(FILE_PATH_LITERAL("foo.txt"));
|
| std::string result_contents;
|
| EXPECT_TRUE(base::ReadFileToString(foo_name, &result_contents));
|
| EXPECT_EQ(some_string.string_value(), result_contents);
|
|
|