Index: tools/gn/substitution_writer_unittest.cc |
diff --git a/tools/gn/substitution_writer_unittest.cc b/tools/gn/substitution_writer_unittest.cc |
index b59475b8cfaa1829f79641230398bc9f65b5dfee..f5dcb78ff0f256e10083e410b968193327b89cb2 100644 |
--- a/tools/gn/substitution_writer_unittest.cc |
+++ b/tools/gn/substitution_writer_unittest.cc |
@@ -161,7 +161,12 @@ TEST(SubstitutionWriter, SourceSubstitutions) { |
EXPECT_EQ("/baz.txt", GetRelSubst("/baz.txt", SUBSTITUTION_SOURCE)); |
EXPECT_EQ("/.", GetRelSubst("/baz.txt", SUBSTITUTION_SOURCE_DIR)); |
EXPECT_EQ("gen", GetRelSubst("/baz.txt", SUBSTITUTION_SOURCE_GEN_DIR)); |
- EXPECT_EQ("obj", GetRelSubst("/baz.txt", SUBSTITUTION_SOURCE_OUT_DIR)); |
+ EXPECT_EQ("obj/ABS_PATH", |
+ GetRelSubst("/baz.txt", SUBSTITUTION_SOURCE_OUT_DIR)); |
+#if defined(OS_WIN) |
+ EXPECT_EQ("obj/ABS_PATH/C", |
+ GetRelSubst("/C:/baz.txt", SUBSTITUTION_SOURCE_OUT_DIR)); |
+#endif |
EXPECT_EQ(".", |
GetRelSubst("//baz.txt", SUBSTITUTION_SOURCE_ROOT_RELATIVE_DIR)); |