|
Ninja
|

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 |
| Node * | GetNode (const string &path) |
| Short way to get a Node by its path from state_. More... | |
| virtual void | Run ()=0 |
| virtual void | SetUp () |
| virtual void | TearDown () |
Public Attributes | |
| BuildConfig | config_ |
| VirtualFileSystem | fs_ |
| State | state_ |
Definition at line 20 of file clean_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 87 of file test.cc.
References AssertParse().
Referenced by BuildTest::RebuildTarget(), and StateTestWithBuiltinRules::StateTestWithBuiltinRules().
|
inlineinherited |
Definition at line 41 of file test.h.
References testing::Test::assertion_failures_.
|
inherited |
Definition at line 119 of file ninja_test.cc.
References testing::Test::failed_, printer, and LinePrinter::PrintOnNewLine().
|
inlineinherited |
|
inherited |
Short way to get a Node by its path from state_.
Definition at line 93 of file test.cc.
References EXPECT_FALSE, State::GetNode(), and StateTestWithBuiltinRules::state_.
Referenced by BuildTest::Dirty(), and PlanTest::TestPoolWithDepthOne().
|
pure virtualinherited |
Referenced by main().
|
inlinevirtual |
Reimplemented from testing::Test.
Definition at line 23 of file clean_test.cc.
References config_, BuildConfig::QUIET, and BuildConfig::verbosity.
|
inlinevirtualinherited |
| BuildConfig CleanTest::config_ |
Definition at line 22 of file clean_test.cc.
Referenced by SetUp().
| VirtualFileSystem CleanTest::fs_ |
Definition at line 21 of file clean_test.cc.
|
inherited |
Definition at line 123 of file test.h.
Referenced by StateTestWithBuiltinRules::GetNode(), BuildTest::SetUp(), StateTestWithBuiltinRules::StateTestWithBuiltinRules(), and PlanTest::TestPoolWithDepthOne().
1.8.14