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

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

Member Function Documentation

void testing::Test::AddAssertionFailure ( )

Definition at line 41 of file test.h.

References testing::Test::assertion_failures_.

int testing::Test::AssertionFailures ( ) const

Definition at line 40 of file test.h.

References testing::Test::assertion_failures_.

void ParserTest::AssertParse ( const char *  input)
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().

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

Implements ManifestParser::FileReader.

Definition at line 34 of file

References files_, and files_read_.

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

Referenced by main().

virtual void testing::Test::SetUp ( )

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 ( )

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 46 of file

Referenced by ReadFile().

vector<string> ParserTest::files_read_

Definition at line 47 of file

Referenced by ReadFile().

State ParserTest::state

Definition at line 45 of file

Referenced by AssertParse().

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