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

Unified Diff: tools/gn/substitution_pattern.cc

Issue 583363003: GN: Fix dependency output file handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « tools/gn/substitution_pattern.h ('k') | tools/gn/target.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/substitution_pattern.cc
diff --git a/tools/gn/substitution_pattern.cc b/tools/gn/substitution_pattern.cc
index 6a4d0c59158130f174d4d468290f4f0384ff9219..cb1bd24ef082d1103364e60f291b6419eb521979 100644
--- a/tools/gn/substitution_pattern.cc
+++ b/tools/gn/substitution_pattern.cc
@@ -91,6 +91,14 @@ bool SubstitutionPattern::Parse(const std::string& str,
return true;
}
+// static
+SubstitutionPattern SubstitutionPattern::MakeForTest(const char* str) {
+ Err err;
+ SubstitutionPattern pattern;
+ CHECK(pattern.Parse(str, NULL, &err)) << err.message();
+ return pattern;
+}
+
std::string SubstitutionPattern::AsString() const {
std::string result;
for (size_t i = 0; i < ranges_.size(); i++) {
« no previous file with comments | « tools/gn/substitution_pattern.h ('k') | tools/gn/target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698