summaryrefslogtreecommitdiffstats
path: root/src/graph_test.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-07 16:45:16 (GMT)
committerEvan Martin <martine@danga.com>2011-12-07 16:47:38 (GMT)
commitc6144ccfe366b694bf034bdafa07e7c47ac8bf30 (patch)
treee373660d4da9ba0b55a05cf719e28d6dd91f5a68 /src/graph_test.cc
parent276f2b319188ea905ebfc39ebaab684a2255c012 (diff)
downloadNinja-c6144ccfe366b694bf034bdafa07e7c47ac8bf30.zip
Ninja-c6144ccfe366b694bf034bdafa07e7c47ac8bf30.tar.gz
Ninja-c6144ccfe366b694bf034bdafa07e7c47ac8bf30.tar.bz2
merge FileStat into Node
The two were always one-to-one anyway. I started adding accessors to FileStat and then realized most users wanted them on Node and that forwarding them through was silly.
Diffstat (limited to 'src/graph_test.cc')
-rw-r--r--src/graph_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph_test.cc b/src/graph_test.cc
index e221089..8ab921e 100644
--- a/src/graph_test.cc
+++ b/src/graph_test.cc
@@ -127,7 +127,7 @@ TEST_F(GraphTest, RootNodes) {
vector<Node*> root_nodes = state_.RootNodes(&err);
EXPECT_EQ(4u, root_nodes.size());
for (size_t i = 0; i < root_nodes.size(); ++i) {
- string name = root_nodes[i]->file_->path_;
+ string name = root_nodes[i]->path();
EXPECT_EQ("out", name.substr(0, 3));
}
}