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

Unified Diff: tools/gn/label_unittest.cc

Issue 857163002: Absolute path fixes for gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows fixes and additional tests Created 5 years, 11 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
Index: tools/gn/label_unittest.cc
diff --git a/tools/gn/label_unittest.cc b/tools/gn/label_unittest.cc
index 02c658ae869a0b073faa8df5d3a74b79da6c213f..9fea8125e2cc5a9879a277e7a349b325eec876ee 100644
--- a/tools/gn/label_unittest.cc
+++ b/tools/gn/label_unittest.cc
@@ -33,6 +33,11 @@ TEST(Label, Resolve) {
// Absolute paths.
{ "//chrome/", "/chrome:bar", true , "/chrome/", "bar", "//t/", "d" },
{ "//chrome/", "/chrome/:bar", true, "/chrome/", "bar", "//t/", "d" },
+#if defined(OS_WIN)
+ { "//chrome/", "/C:/chrome:bar", true , "/C:/chrome/", "bar", "//t/", "d" },
+ { "//chrome/", "/C:/chrome/:bar", true, "/C:/chrome/", "bar", "//t/", "d" },
+ { "//chrome/", "C:/chrome:bar", false, "", "", "", "" },
+#endif
// Refers to root dir.
{ "//chrome/", "//:bar", true, "//", "bar", "//t/", "d" },
// Implicit directory

Powered by Google App Engine
This is Rietveld 408576698