| Index: tools/gn/path_output_unittest.cc
|
| diff --git a/tools/gn/path_output_unittest.cc b/tools/gn/path_output_unittest.cc
|
| index 131f55ec5faa2245caac72992709e121fbfbabbc..65dae8dda08a798b0a134021410b53868046d25a 100644
|
| --- a/tools/gn/path_output_unittest.cc
|
| +++ b/tools/gn/path_output_unittest.cc
|
| @@ -84,8 +84,8 @@ TEST(PathOutput, NinjaEscaping) {
|
| {
|
| // Not other weird stuff
|
| std::ostringstream out;
|
| - writer.WriteFile(out, SourceFile("//foo/\"foo\\bar\".cc"));
|
| - EXPECT_EQ("../../foo/\"foo\\bar\".cc", out.str());
|
| + writer.WriteFile(out, SourceFile("//foo/\"foo\".cc"));
|
| + EXPECT_EQ("../../foo/\"foo\".cc", out.str());
|
| }
|
| }
|
|
|
| @@ -127,19 +127,18 @@ TEST(PathOutput, NinjaForkEscaping) {
|
| EXPECT_EQ("../../foo/\\\"foobar\\\".cc", out.str());
|
| }
|
|
|
| -
|
| // Backslashes should get escaped on non-Windows and preserved on Windows.
|
| writer.set_escape_platform(ESCAPE_PLATFORM_WIN);
|
| {
|
| std::ostringstream out;
|
| - writer.WriteFile(out, SourceFile("//foo\\bar.cc"));
|
| - EXPECT_EQ("../../foo\\bar.cc", out.str());
|
| + writer.WriteFile(out, OutputFile("foo\\bar.cc"));
|
| + EXPECT_EQ("foo\\bar.cc", out.str());
|
| }
|
| writer.set_escape_platform(ESCAPE_PLATFORM_POSIX);
|
| {
|
| std::ostringstream out;
|
| - writer.WriteFile(out, SourceFile("//foo\\bar.cc"));
|
| - EXPECT_EQ("../../foo\\\\bar.cc", out.str());
|
| + writer.WriteFile(out, OutputFile("foo\\bar.cc"));
|
| + EXPECT_EQ("foo\\\\bar.cc", out.str());
|
| }
|
| }
|
|
|
|
|