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

Unified Diff: tools/gn/function_get_target_outputs_unittest.cc

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Use base::flat_set instead of std::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/function_get_target_outputs_unittest.cc
diff --git a/tools/gn/function_get_target_outputs_unittest.cc b/tools/gn/function_get_target_outputs_unittest.cc
index c947709a2ed4f7a17d03b12921bd2cbc0820dd22..3bff2386c4d17c1705c246ee9efdc0f23532191f 100644
--- a/tools/gn/function_get_target_outputs_unittest.cc
+++ b/tools/gn/function_get_target_outputs_unittest.cc
@@ -57,7 +57,7 @@ class GetTargetOutputsTest : public testing::Test {
} // namespace
TEST_F(GetTargetOutputsTest, Copy) {
- Target* action = new Target(setup_.settings(), GetLabel("//foo/", "bar"));
+ Target* action = new Target(setup_.settings(), GetLabel("//foo/", "bar"), {});
action->set_output_type(Target::COPY_FILES);
action->sources().push_back(SourceFile("//file.txt"));
action->action_values().outputs() =
@@ -72,7 +72,7 @@ TEST_F(GetTargetOutputsTest, Copy) {
}
TEST_F(GetTargetOutputsTest, Action) {
- Target* action = new Target(setup_.settings(), GetLabel("//foo/", "bar"));
+ Target* action = new Target(setup_.settings(), GetLabel("//foo/", "bar"), {});
action->set_output_type(Target::ACTION);
action->action_values().outputs() = SubstitutionList::MakeForTest(
"//output1.txt",
@@ -87,7 +87,7 @@ TEST_F(GetTargetOutputsTest, Action) {
}
TEST_F(GetTargetOutputsTest, ActionForeach) {
- Target* action = new Target(setup_.settings(), GetLabel("//foo/", "bar"));
+ Target* action = new Target(setup_.settings(), GetLabel("//foo/", "bar"), {});
action->set_output_type(Target::ACTION_FOREACH);
action->sources().push_back(SourceFile("//file.txt"));
action->action_values().outputs() = SubstitutionList::MakeForTest(

Powered by Google App Engine
This is Rietveld 408576698