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

Unified Diff: tools/gn/filesystem_utils_unittest.cc

Issue 1155713006: GN: Make file/dir resolving return errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/filesystem_utils_unittest.cc
diff --git a/tools/gn/filesystem_utils_unittest.cc b/tools/gn/filesystem_utils_unittest.cc
index 9f874ebd4f58a8840d5b7bc5e67b5dced66b31e5..14bc9515307e3767a108ff2f358a7789b68eb7a5 100644
--- a/tools/gn/filesystem_utils_unittest.cc
+++ b/tools/gn/filesystem_utils_unittest.cc
@@ -236,6 +236,11 @@ TEST(FilesystemUtils, NormalizePath) {
input = "foo\\..\\..\\bar";
NormalizePath(&input);
EXPECT_EQ("../bar", input);
+
+ // Trailing slashes should get preserved.
+ input = "//foo/bar/";
+ NormalizePath(&input);
+ EXPECT_EQ("//foo/bar/", input);
}
TEST(FilesystemUtils, RebasePath) {

Powered by Google App Engine
This is Rietveld 408576698