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

Unified Diff: tools/gn/substitution_writer_unittest.cc

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Fix compilation after rebase. Created 3 years, 6 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/string_utils_unittest.cc ('k') | tools/gn/target.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/substitution_writer_unittest.cc
diff --git a/tools/gn/substitution_writer_unittest.cc b/tools/gn/substitution_writer_unittest.cc
index d98d4cee5f5ef18060d2c28e437f081c72e042e9..0bf27e86b7771f5b019c1207550b8636abea1f21 100644
--- a/tools/gn/substitution_writer_unittest.cc
+++ b/tools/gn/substitution_writer_unittest.cc
@@ -106,7 +106,7 @@ TEST(SubstitutionWriter, SourceSubstitutions) {
TestWithScope setup;
Err err;
- Target target(setup.settings(), Label(SourceDir("//foo/bar/"), "baz"));
+ Target target(setup.settings(), Label(SourceDir("//foo/bar/"), "baz"), {});
target.set_output_type(Target::STATIC_LIBRARY);
target.SetToolchain(setup.toolchain());
ASSERT_TRUE(target.OnResolved(&err));
@@ -197,7 +197,7 @@ TEST(SubstitutionWriter, TargetSubstitutions) {
TestWithScope setup;
Err err;
- Target target(setup.settings(), Label(SourceDir("//foo/bar/"), "baz"));
+ Target target(setup.settings(), Label(SourceDir("//foo/bar/"), "baz"), {});
target.set_output_type(Target::STATIC_LIBRARY);
target.SetToolchain(setup.toolchain());
ASSERT_TRUE(target.OnResolved(&err));
@@ -236,7 +236,7 @@ TEST(SubstitutionWriter, CompilerSubstitutions) {
TestWithScope setup;
Err err;
- Target target(setup.settings(), Label(SourceDir("//foo/bar/"), "baz"));
+ Target target(setup.settings(), Label(SourceDir("//foo/bar/"), "baz"), {});
target.set_output_type(Target::STATIC_LIBRARY);
target.SetToolchain(setup.toolchain());
ASSERT_TRUE(target.OnResolved(&err));
@@ -257,7 +257,7 @@ TEST(SubstitutionWriter, LinkerSubstitutions) {
TestWithScope setup;
Err err;
- Target target(setup.settings(), Label(SourceDir("//foo/bar/"), "baz"));
+ Target target(setup.settings(), Label(SourceDir("//foo/bar/"), "baz"), {});
target.set_output_type(Target::SHARED_LIBRARY);
target.SetToolchain(setup.toolchain());
ASSERT_TRUE(target.OnResolved(&err));
@@ -310,7 +310,7 @@ TEST(SubstitutionWriter, OutputDir) {
tool.SetComplete();
// Default target with no output dir overrides.
- Target target(setup.settings(), Label(SourceDir("//foo/"), "baz"));
+ Target target(setup.settings(), Label(SourceDir("//foo/"), "baz"), {});
target.set_output_type(Target::EXECUTABLE);
target.SetToolchain(setup.toolchain());
ASSERT_TRUE(target.OnResolved(&err));
« no previous file with comments | « tools/gn/string_utils_unittest.cc ('k') | tools/gn/target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698