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

Unified Diff: tools/gn/test_with_scope.h

Issue 1263053003: Add forward_variables_from() and target() to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 5 years, 4 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/test_with_scope.h
diff --git a/tools/gn/test_with_scope.h b/tools/gn/test_with_scope.h
index e390df84a59735d9433e8983d9b52a6a575fafad..ba9515d56022cc45e563a28cef04848c7b982e6c 100644
--- a/tools/gn/test_with_scope.h
+++ b/tools/gn/test_with_scope.h
@@ -13,6 +13,7 @@
#include "tools/gn/input_file.h"
#include "tools/gn/parse_tree.h"
#include "tools/gn/scope.h"
+#include "tools/gn/scope_per_file_provider.h"
#include "tools/gn/settings.h"
#include "tools/gn/target.h"
#include "tools/gn/token.h"
@@ -59,6 +60,9 @@ class TestWithScope {
Toolchain toolchain_;
Scope scope_;
+ // Supplies the scope with built-in variables like root_out_dir.
+ ScopePerFileProvider scope_progammatic_provider_;
Dirk Pranke 2015/08/03 21:12:24 typo: "programmatic" (missing an 'r').
+
std::string print_output_;
DISALLOW_COPY_AND_ASSIGN(TestWithScope);

Powered by Google App Engine
This is Rietveld 408576698