Ninja
|
Fixture for tests involving Plan. More...
Public Member Functions | |
void | AddCatRule (State *state) |
Add a "cat" rule to state. More... | |
void | FindWorkSorted (deque< Edge * > *ret, int count) |
Because FindWork does not return Edges in any sort of predictable order,. More... | |
Node * | GetNode (const string &path) |
Short way to get a Node by its path from state_. More... | |
void | TestPoolWithDepthOne (const char *test_case) |
Public Attributes | |
Plan | plan_ |
State | state_ |
Fixture for tests involving Plan.
Definition at line 25 of file build_test.cc.
|
inherited |
Add a "cat" rule to state.
Used by some tests; it's otherwise done by the ctor to state_.
Definition at line 80 of file test.cc.
References AssertParse().
Referenced by BuildTest::RebuildTarget(), StateTestWithBuiltinRules::StateTestWithBuiltinRules(), and TEST_F().
|
inline |
Because FindWork does not return Edges in any sort of predictable order,.
Definition at line 31 of file build_test.cc.
References Plan::FindWork(), Plan::more_to_do(), Edge::outputs_, and TestPoolWithDepthOne().
Referenced by TEST_F().
|
inherited |
Short way to get a Node by its path from state_.
Definition at line 86 of file test.cc.
References State::GetNode(), and StateTestWithBuiltinRules::state_.
Referenced by BuildTest::Dirty(), TEST_F(), and TestPoolWithDepthOne().
void PlanTest::TestPoolWithDepthOne | ( | const char * | test_case | ) |
Definition at line 202 of file build_test.cc.
References Plan::AddTarget(), AssertParse(), Plan::EdgeFinished(), Plan::FindWork(), StateTestWithBuiltinRules::GetNode(), Node::MarkDirty(), Plan::more_to_do(), plan_, and StateTestWithBuiltinRules::state_.
Referenced by FindWorkSorted(), and TEST_F().
Plan PlanTest::plan_ |
Definition at line 26 of file build_test.cc.
Referenced by TEST_F(), and TestPoolWithDepthOne().
|
inherited |
Definition at line 40 of file test.h.
Referenced by StateTestWithBuiltinRules::GetNode(), BuildTest::SetUp(), StateTestWithBuiltinRules::StateTestWithBuiltinRules(), TEST_F(), and TestPoolWithDepthOne().