Ninja
Public Member Functions | Public Attributes | List of all members
ParserTest Struct Referenceabstract
Inheritance diagram for ParserTest:
Inheritance graph
[legend]

Public Member Functions

void AddAssertionFailure ()
 
int AssertionFailures () const
 
void AssertParse (const char *input)
 
bool Check (bool condition, const char *file, int line, const char *error)
 
bool Failed () const
 
virtual bool ReadFile (const string &path, string *content, string *err)
 
virtual void Run ()=0
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Public Attributes

map< string, string > files_
 
vector< string > files_read_
 
State state
 

Detailed Description

Definition at line 24 of file manifest_parser_test.cc.

Member Function Documentation

void testing::Test::AddAssertionFailure ( )
inlineinherited

Definition at line 41 of file test.h.

References testing::Test::assertion_failures_.

int testing::Test::AssertionFailures ( ) const
inlineinherited

Definition at line 40 of file test.h.

References testing::Test::assertion_failures_.

void ParserTest::AssertParse ( const char *  input)
inline

Definition at line 26 of file manifest_parser_test.cc.

References ASSERT_EQ, EXPECT_TRUE, ManifestParser::ParseTest(), and state.

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

Definition at line 115 of file ninja_test.cc.

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

bool testing::Test::Failed ( ) const
inlineinherited

Definition at line 39 of file test.h.

References testing::Test::failed_.

Referenced by main().

virtual bool ParserTest::ReadFile ( const string &  path,
string *  content,
string *  err 
)
inlinevirtual

Implements ManifestParser::FileReader.

Definition at line 33 of file manifest_parser_test.cc.

References files_, and files_read_.

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

Referenced by main().

virtual void testing::Test::SetUp ( )
inlinevirtualinherited

Reimplemented in BuildWithDepsLogTest, BuildTest, and CleanTest.

Definition at line 35 of file test.h.

Referenced by main(), and BuildTest::SetUp().

virtual void testing::Test::TearDown ( )
inlinevirtualinherited

Reimplemented in BuildWithDepsLogTest.

Definition at line 36 of file test.h.

Referenced by main().

Member Data Documentation

map<string, string> ParserTest::files_

Definition at line 45 of file manifest_parser_test.cc.

Referenced by ReadFile().

vector<string> ParserTest::files_read_

Definition at line 46 of file manifest_parser_test.cc.

Referenced by ReadFile().

State ParserTest::state

Definition at line 44 of file manifest_parser_test.cc.

Referenced by AssertParse().


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