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

Unified Diff: tools/gn/ninja_action_target_writer_unittest.cc

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: 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
Index: tools/gn/ninja_action_target_writer_unittest.cc
diff --git a/tools/gn/ninja_action_target_writer_unittest.cc b/tools/gn/ninja_action_target_writer_unittest.cc
index ab871d106783eebb7aeb9c8278e57410d3183a6a..b5c745d57705b1d58f9e84f47a8170c2de88969b 100644
--- a/tools/gn/ninja_action_target_writer_unittest.cc
+++ b/tools/gn/ninja_action_target_writer_unittest.cc
@@ -16,7 +16,7 @@ TEST(NinjaActionTargetWriter, WriteOutputFilesForBuildLine) {
Err err;
TestWithScope setup;
- Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"));
+ Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"), {});
target.set_output_type(Target::ACTION_FOREACH);
target.action_values().outputs() = SubstitutionList::MakeForTest(
"//out/Debug/gen/a b{{source_name_part}}.h",
@@ -40,7 +40,7 @@ TEST(NinjaActionTargetWriter, ActionNoSources) {
Err err;
TestWithScope setup;
- Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"));
+ Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"), {});
target.set_output_type(Target::ACTION);
target.action_values().set_script(SourceFile("//foo/script.py"));
@@ -79,7 +79,7 @@ TEST(NinjaActionTargetWriter, ActionNoSourcesConsole) {
Err err;
TestWithScope setup;
- Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"));
+ Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"), {});
target.set_output_type(Target::ACTION);
target.action_values().set_script(SourceFile("//foo/script.py"));
@@ -120,7 +120,7 @@ TEST(NinjaActionTargetWriter, ActionWithSources) {
Err err;
TestWithScope setup;
- Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"));
+ Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"), {});
target.set_output_type(Target::ACTION);
target.action_values().set_script(SourceFile("//foo/script.py"));
@@ -163,19 +163,19 @@ TEST(NinjaActionTargetWriter, ForEach) {
// so they have a nice platform-independent stamp file that can appear in the
// output (rather than having to worry about how the current platform names
// binaries).
- Target dep(setup.settings(), Label(SourceDir("//foo/"), "dep"));
+ Target dep(setup.settings(), Label(SourceDir("//foo/"), "dep"), {});
dep.set_output_type(Target::ACTION);
dep.visibility().SetPublic();
dep.SetToolchain(setup.toolchain());
ASSERT_TRUE(dep.OnResolved(&err));
- Target datadep(setup.settings(), Label(SourceDir("//foo/"), "datadep"));
+ Target datadep(setup.settings(), Label(SourceDir("//foo/"), "datadep"), {});
datadep.set_output_type(Target::ACTION);
datadep.visibility().SetPublic();
datadep.SetToolchain(setup.toolchain());
ASSERT_TRUE(datadep.OnResolved(&err));
- Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"));
+ Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"), {});
target.set_output_type(Target::ACTION_FOREACH);
target.private_deps().push_back(LabelTargetPair(&dep));
target.data_deps().push_back(LabelTargetPair(&datadep));
@@ -239,7 +239,7 @@ TEST(NinjaActionTargetWriter, ForEachWithDepfile) {
Err err;
TestWithScope setup;
- Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"));
+ Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"), {});
target.set_output_type(Target::ACTION_FOREACH);
target.sources().push_back(SourceFile("//foo/input1.txt"));
@@ -301,7 +301,7 @@ TEST(NinjaActionTargetWriter, ForEachWithResponseFile) {
Err err;
TestWithScope setup;
- Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"));
+ Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"), {});
target.set_output_type(Target::ACTION_FOREACH);
target.sources().push_back(SourceFile("//foo/input1.txt"));

Powered by Google App Engine
This is Rietveld 408576698