Index: tools/gn/label_unittest.cc |
diff --git a/tools/gn/label_unittest.cc b/tools/gn/label_unittest.cc |
index eb1e16c21cc78709ce58dee3533d1c05e1d0732b..02c658ae869a0b073faa8df5d3a74b79da6c213f 100644 |
--- a/tools/gn/label_unittest.cc |
+++ b/tools/gn/label_unittest.cc |
@@ -30,10 +30,9 @@ TEST(Label, Resolve) { |
{ "//chrome/", "/:", false, "", "", "", "" }, |
{ "//chrome/", "blah", true, "//chrome/blah/", "blah", "//t/", "d" }, |
{ "//chrome/", "blah:bar", true, "//chrome/blah/", "bar", "//t/", "d" }, |
- // No single-leading slash. |
- { "//chrome/", "/chrome:bar", false, "", "", "", "" }, |
- // No trailing slash. |
- { "//chrome/", "/chrome/:bar", false, "", "", "", "" }, |
+ // Absolute paths. |
+ { "//chrome/", "/chrome:bar", true , "/chrome/", "bar", "//t/", "d" }, |
+ { "//chrome/", "/chrome/:bar", true, "/chrome/", "bar", "//t/", "d" }, |
// Refers to root dir. |
{ "//chrome/", "//:bar", true, "//", "bar", "//t/", "d" }, |
// Implicit directory |
@@ -57,7 +56,7 @@ TEST(Label, Resolve) { |
{ "//chrome/", "//chrome:bar(()", false, "", "", "", "" }, |
{ "//chrome/", "(t:b)", false, "", "", "", "" }, |
{ "//chrome/", ":bar(//t/b)", true, "//chrome/", "bar", "//t/b/", "b" }, |
- { "//chrome/", ":bar(/t/b)", false, "", "", "", "" }, |
+ { "//chrome/", ":bar(/t/b)", true, "//chrome/", "bar", "/t/b/", "b" }, |
{ "//chrome/", ":bar(t/b)", true, "//chrome/", "bar", "//chrome/t/b/", "b" }, |
}; |