diff options
author | Evan Martin <martine@danga.com> | 2011-12-07 17:35:02 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-07 17:35:02 (GMT) |
commit | 48526b9c08f22ddcf7e36ca02fde0202312920fa (patch) | |
tree | e9c0890d2e5cb27b90ce117945d4babb069bac0e /src/disk_interface_test.cc | |
parent | d27d21a8c38debfd69c1deaa302cdb500511e0af (diff) | |
download | Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.zip Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.tar.gz Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.tar.bz2 |
make Node::in_edge_ private
Diffstat (limited to 'src/disk_interface_test.cc')
-rw-r--r-- | src/disk_interface_test.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/disk_interface_test.cc b/src/disk_interface_test.cc index a39c06a..0ca34ad 100644 --- a/src/disk_interface_test.cc +++ b/src/disk_interface_test.cc @@ -195,8 +195,7 @@ TEST_F(StatTest, Simple) { Node* out = GetNode("out"); out->Stat(this); ASSERT_EQ(1u, stats_.size()); - Edge* edge = out->in_edge_; - edge->RecomputeDirty(NULL, this, NULL); + out->in_edge()->RecomputeDirty(NULL, this, NULL); ASSERT_EQ(2u, stats_.size()); ASSERT_EQ("out", stats_[0]); ASSERT_EQ("in", stats_[1]); @@ -210,8 +209,7 @@ TEST_F(StatTest, TwoStep) { Node* out = GetNode("out"); out->Stat(this); ASSERT_EQ(1u, stats_.size()); - Edge* edge = out->in_edge_; - edge->RecomputeDirty(NULL, this, NULL); + out->in_edge()->RecomputeDirty(NULL, this, NULL); ASSERT_EQ(3u, stats_.size()); ASSERT_EQ("out", stats_[0]); ASSERT_TRUE(GetNode("out")->dirty()); @@ -229,8 +227,7 @@ TEST_F(StatTest, Tree) { Node* out = GetNode("out"); out->Stat(this); ASSERT_EQ(1u, stats_.size()); - Edge* edge = out->in_edge_; - edge->RecomputeDirty(NULL, this, NULL); + out->in_edge()->RecomputeDirty(NULL, this, NULL); ASSERT_EQ(1u + 6u, stats_.size()); ASSERT_EQ("mid1", stats_[1]); ASSERT_TRUE(GetNode("mid1")->dirty()); @@ -249,8 +246,7 @@ TEST_F(StatTest, Middle) { Node* out = GetNode("out"); out->Stat(this); ASSERT_EQ(1u, stats_.size()); - Edge* edge = out->in_edge_; - edge->RecomputeDirty(NULL, this, NULL); + out->in_edge()->RecomputeDirty(NULL, this, NULL); ASSERT_FALSE(GetNode("in")->dirty()); ASSERT_TRUE(GetNode("mid")->dirty()); ASSERT_TRUE(GetNode("out")->dirty()); |