|
Ninja
|
Fixture for tests involving Plan. More...

Public Member Functions | |
| void | AddAssertionFailure () |
| void | AddCatRule (State *state) |
| Add a "cat" rule to state. More... | |
| int | AssertionFailures () const |
| bool | Check (bool condition, const char *file, int line, const char *error) |
| bool | Failed () const |
| void | FindWorkSorted (deque< Edge *> *ret, int count) |
| Because FindWork does not return Edges in any sort of predictable order,. More... | |
| Node * | GetNode (const std::string &path) |
| Short way to get a Node by its path from state_. More... | |
| virtual void | Run ()=0 |
| virtual void | SetUp () |
| virtual void | TearDown () |
| void | TestPoolWithDepthOne (const char *test_case) |
Public Attributes | |
| Plan | plan_ |
| State | state_ |
Fixture for tests involving Plan.
Definition at line 35 of file build_test.cc.
|
inlineinherited |
Definition at line 42 of file test.h.
References testing::Test::assertion_failures_.
|
inherited |
Add a "cat" rule to state.
Used by some tests; it's otherwise done by the ctor to state_.
Definition at line 89 of file test.cc.
References AssertParse().
|
inlineinherited |
Definition at line 41 of file test.h.
References testing::Test::assertion_failures_.
|
inherited |
Definition at line 121 of file ninja_test.cc.
References printer, and LinePrinter::PrintOnNewLine().
|
inlineinherited |
|
inline |
Because FindWork does not return Edges in any sort of predictable order,.
Definition at line 41 of file build_test.cc.
References ASSERT_FALSE, ASSERT_TRUE, CompareEdgesByOutput::cmp(), Plan::FindWork(), and Plan::more_to_do().
|
inherited |
Short way to get a Node by its path from state_.
Definition at line 95 of file test.cc.
References EXPECT_FALSE.
|
pure virtualinherited |
Referenced by main().
|
inlinevirtualinherited |
Reimplemented in BuildWithDepsLogTest, BuildWithQueryDepsLogTest, BuildTest, and DyndepParserTest.
Definition at line 36 of file test.h.
Referenced by main(), and BuildTest::SetUp().
|
inlinevirtualinherited |
| void PlanTest::TestPoolWithDepthOne | ( | const char * | test_case | ) |
Definition at line 202 of file build_test.cc.
References ASSERT_EQ, ASSERT_FALSE, ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), EXPECT_TRUE, and Plan::kEdgeSucceeded.
| Plan PlanTest::plan_ |
Definition at line 36 of file build_test.cc.
1.8.14