Ninja
|
Public Member Functions | |
void | AddCatRule (State *state) |
Add a "cat" rule to state. More... | |
BuildTest () | |
void | Dirty (const string &path) |
Node * | GetNode (const string &path) |
Short way to get a Node by its path from state_. More... | |
BuildConfig | MakeConfig () |
virtual void | SetUp () |
~BuildTest () | |
Public Attributes | |
Builder | builder_ |
FakeCommandRunner | command_runner_ |
BuildConfig | config_ |
VirtualFileSystem | fs_ |
State | state_ |
BuildStatus | status_ |
Definition at line 415 of file build_test.cc.
|
inline |
Definition at line 416 of file build_test.cc.
|
inline |
Definition at line 434 of file build_test.cc.
References builder_, and Builder::command_runner_.
|
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 StateTestWithBuiltinRules::StateTestWithBuiltinRules().
void BuildTest::Dirty | ( | const string & | path | ) |
Definition at line 517 of file build_test.cc.
References StateTestWithBuiltinRules::GetNode(), Node::in_edge(), Node::MarkDirty(), and Node::MarkMissing().
|
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 Dirty().
|
inline |
Definition at line 441 of file build_test.cc.
References BuildConfig::QUIET, and BuildConfig::verbosity.
|
inlinevirtual |
Reimplemented in BuildWithDepsLogTest.
Definition at line 421 of file build_test.cc.
References AssertParse(), builder_, Builder::command_runner_, command_runner_, VirtualFileSystem::Create(), fs_, and StateTestWithBuiltinRules::state_.
Referenced by BuildWithDepsLogTest::SetUp().
Builder BuildTest::builder_ |
Definition at line 450 of file build_test.cc.
Referenced by BuildWithLogTest::BuildWithLogTest(), SetUp(), and ~BuildTest().
FakeCommandRunner BuildTest::command_runner_ |
Definition at line 448 of file build_test.cc.
Referenced by SetUp().
BuildConfig BuildTest::config_ |
Definition at line 447 of file build_test.cc.
Referenced by BuildDryRun::BuildDryRun().
VirtualFileSystem BuildTest::fs_ |
Definition at line 449 of file build_test.cc.
Referenced by SetUp().
|
inherited |
Definition at line 40 of file test.h.
Referenced by StateTestWithBuiltinRules::GetNode(), SetUp(), and StateTestWithBuiltinRules::StateTestWithBuiltinRules().
BuildStatus BuildTest::status_ |
Definition at line 452 of file build_test.cc.