Index: tools/gn/builder_unittest.cc |
diff --git a/tools/gn/builder_unittest.cc b/tools/gn/builder_unittest.cc |
index bac91926ac8851e903251abb94c05fc9c722f8a9..b9b7e5fb50b75b267ef208426a6c0a88d19eda32 100644 |
--- a/tools/gn/builder_unittest.cc |
+++ b/tools/gn/builder_unittest.cc |
@@ -99,7 +99,7 @@ TEST_F(BuilderTest, BasicDeps) { |
// The builder will take ownership of the pointers. |
Target* a = new Target(&settings_, a_label); |
- a->deps().push_back(LabelTargetPair(b_label)); |
+ a->public_deps().push_back(LabelTargetPair(b_label)); |
a->set_output_type(Target::EXECUTABLE); |
builder_->ItemDefined(scoped_ptr<Item>(a)); |
@@ -145,6 +145,7 @@ TEST_F(BuilderTest, BasicDeps) { |
// Add the C target. |
Target* c = new Target(&settings_, c_label); |
c->set_output_type(Target::STATIC_LIBRARY); |
+ c->visibility().SetPublic(); |
builder_->ItemDefined(scoped_ptr<Item>(c)); |
// C only depends on the already-loaded toolchain so we shouldn't have |
@@ -153,8 +154,9 @@ TEST_F(BuilderTest, BasicDeps) { |
// Add the B target. |
Target* b = new Target(&settings_, b_label); |
- a->deps().push_back(LabelTargetPair(c_label)); |
+ a->public_deps().push_back(LabelTargetPair(c_label)); |
b->set_output_type(Target::SHARED_LIBRARY); |
+ b->visibility().SetPublic(); |
builder_->ItemDefined(scoped_ptr<Item>(b)); |
// B depends only on the already-loaded C and toolchain so we shouldn't have |
@@ -197,6 +199,7 @@ TEST_F(BuilderTest, ShouldGenerate) { |
// First define B. |
Target* b = new Target(&settings2, b_label); |
+ b->visibility().SetPublic(); |
b->set_output_type(Target::EXECUTABLE); |
builder_->ItemDefined(scoped_ptr<Item>(b)); |
@@ -206,7 +209,7 @@ TEST_F(BuilderTest, ShouldGenerate) { |
// Define A with a dependency on B. |
Target* a = new Target(&settings_, a_label); |
- a->deps().push_back(LabelTargetPair(b_label)); |
+ a->public_deps().push_back(LabelTargetPair(b_label)); |
a->set_output_type(Target::EXECUTABLE); |
builder_->ItemDefined(scoped_ptr<Item>(a)); |