Public Member Functions | Public Attributes | List of all members
CleanTest Struct Referenceabstract
Inheritance diagram for CleanTest:
Inheritance graph

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
NodeGetNode (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_

Detailed Description

Definition at line 20 of file

Member Function Documentation

void testing::Test::AddAssertionFailure ( )

Definition at line 41 of file test.h.

References testing::Test::assertion_failures_.

void StateTestWithBuiltinRules::AddCatRule ( State state)

Add a "cat" rule to state.

Used by some tests; it's otherwise done by the ctor to state_.

Definition at line 86 of file

References AssertParse().

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

int testing::Test::AssertionFailures ( ) const

Definition at line 40 of file test.h.

References testing::Test::assertion_failures_.

bool testing::Test::Check ( bool  condition,
const char *  file,
int  line,
const char *  error 

Definition at line 115 of file

References testing::Test::failed_, and LinePrinter::PrintOnNewLine().

bool testing::Test::Failed ( ) const

Definition at line 39 of file test.h.

References testing::Test::failed_.

Referenced by main().

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

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

Definition at line 92 of file

References EXPECT_FALSE, State::GetNode(), and StateTestWithBuiltinRules::state_.

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

virtual void testing::Test::Run ( )
pure virtualinherited

Referenced by main().

virtual void CleanTest::SetUp ( )

Reimplemented from testing::Test.

Definition at line 23 of file

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

virtual void testing::Test::TearDown ( )

Reimplemented in BuildWithDepsLogTest.

Definition at line 36 of file test.h.

Referenced by main().

Member Data Documentation

BuildConfig CleanTest::config_

Definition at line 22 of file

Referenced by SetUp().

VirtualFileSystem CleanTest::fs_

Definition at line 21 of file

State StateTestWithBuiltinRules::state_

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