Ninja
BuildWithQueryDepsLogTest Struct Reference
Inheritance diagram for BuildWithQueryDepsLogTest:

Public Member Functions

void AddCatRule (State *state)
 Add a "cat" rule to state.
 
 BuildWithQueryDepsLogTest ()
 
void Dirty (const string &path)
 
NodeGetNode (const std::string &path)
 Short way to get a Node by its path from state_.
 
virtual bool IsPathDead (StringPiece s) const
 Return if a given output is no longer part of the build manifest.
 
BuildConfig MakeConfig ()
 
void RebuildTarget (const string &target, const char *manifest, const char *log_path=NULL, const char *deps_path=NULL, State *state=NULL)
 Rebuild target in the 'working tree' (fs_).
 
virtual void SetUp ()
 
 ~BuildWithQueryDepsLogTest ()
 

Public Attributes

Builder builder_
 
FakeCommandRunner command_runner_
 
BuildConfig config_
 
ScopedFilePath deps_log_file_
 
VirtualFileSystem fs_
 
DepsLog log_
 
State state_
 
StatusPrinter status_
 
ScopedTempDir temp_dir_
 

Detailed Description

Definition at line 2332 of file build_test.cc.

Constructor & Destructor Documentation

◆ BuildWithQueryDepsLogTest()

BuildWithQueryDepsLogTest::BuildWithQueryDepsLogTest ( )
inline

Definition at line 2333 of file build_test.cc.

References BuildTest::BuildTest(), deps_log_file_, and log_.

◆ ~BuildWithQueryDepsLogTest()

BuildWithQueryDepsLogTest::~BuildWithQueryDepsLogTest ( )
inline

Definition at line 2336 of file build_test.cc.

References log_.

Member Function Documentation

◆ AddCatRule()

void StateTestWithBuiltinRules::AddCatRule ( State * state)
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().

Referenced by BuildTest::RebuildTarget(), and StateTestWithBuiltinRules().

◆ Dirty()

void BuildTest::Dirty ( const string & path)
inherited

◆ GetNode()

Node * StateTestWithBuiltinRules::GetNode ( const std::string & path)
inherited

Short way to get a Node by its path from state_.

Definition at line 95 of file test.cc.

References state_.

Referenced by BuildTest::Dirty(), PlanTest::PrepareForTarget(), TestPhonyUseCase(), and PlanTest::TestPoolWithDepthOne().

◆ IsPathDead()

virtual bool BuildTest::IsPathDead ( StringPiece s) const
inlinevirtualinherited

Return if a given output is no longer part of the build manifest.

This is only called during recompaction and doesn't have to be fast.

Implements BuildLogUser.

Definition at line 563 of file build_test.cc.

◆ MakeConfig()

BuildConfig BuildTest::MakeConfig ( )
inlineinherited

Definition at line 575 of file build_test.cc.

References BuildConfig::QUIET, and BuildConfig::verbosity.

Referenced by BuildTest(), and BuildTest().

◆ RebuildTarget()

void BuildTest::RebuildTarget ( const string & target,
const char * manifest,
const char * log_path = NULL,
const char * deps_path = NULL,
State * state = NULL )
inherited

Rebuild target in the 'working tree' (fs_).

State of command_runner_ and logs contents (if specified) ARE MODIFIED. Handy to check for NOOP builds, and higher-level rebuild tests.

Definition at line 588 of file build_test.cc.

References StateTestWithBuiltinRules::AddCatRule(), Builder::AddTarget(), Builder::AlreadyUpToDate(), AssertParse(), Builder::Build(), Builder::command_runner_, command_runner_, config_, ExitSuccess, fs_, BuildLog::Load(), DepsLog::Load(), BuildLog::OpenForWrite(), DepsLog::OpenForWrite(), and status_.

◆ SetUp()

virtual void BuildWithQueryDepsLogTest::SetUp ( )
inlinevirtual

Reimplemented from BuildTest.

Definition at line 2340 of file build_test.cc.

References deps_log_file_, log_, BuildTest::SetUp(), and temp_dir_.

Member Data Documentation

◆ builder_

Builder BuildTest::builder_
inherited

◆ command_runner_

FakeCommandRunner BuildTest::command_runner_
inherited

Definition at line 582 of file build_test.cc.

Referenced by BuildTest(), BuildTest(), RebuildTarget(), SetUp(), and TestPhonyUseCase().

◆ config_

BuildConfig BuildTest::config_
inherited

Definition at line 581 of file build_test.cc.

Referenced by BuildDryRun::BuildDryRun(), BuildTest(), BuildTest(), and RebuildTarget().

◆ deps_log_file_

ScopedFilePath BuildWithQueryDepsLogTest::deps_log_file_

Definition at line 2352 of file build_test.cc.

Referenced by BuildWithQueryDepsLogTest(), and SetUp().

◆ fs_

VirtualFileSystem BuildTest::fs_
inherited

Definition at line 583 of file build_test.cc.

Referenced by BuildTest(), BuildTest(), RebuildTarget(), SetUp(), and TestPhonyUseCase().

◆ log_

DepsLog BuildWithQueryDepsLogTest::log_

Definition at line 2353 of file build_test.cc.

Referenced by BuildWithQueryDepsLogTest(), SetUp(), and ~BuildWithQueryDepsLogTest().

◆ state_

◆ status_

StatusPrinter BuildTest::status_
inherited

Definition at line 584 of file build_test.cc.

Referenced by BuildTest(), BuildTest(), and RebuildTarget().

◆ temp_dir_

ScopedTempDir BuildWithQueryDepsLogTest::temp_dir_

Definition at line 2350 of file build_test.cc.

Referenced by SetUp().


The documentation for this struct was generated from the following file: