benchtest
Benchmark and testing framework for C++
Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
testing::Test Class Referenceabstract

Abstract class to be inherited by test fixtures. More...

#include <benchtest.hpp>

Public Member Functions

bool HasFatalFailure ()
 True if a fatal failure (ASSERT) happened in this test.
 
bool HasNonfatalFailure ()
 True if a non-fatal failure (EXPECT) happened in this test.
 
bool HasFailure ()
 True if either kind of failure was encountered.
 

Protected Member Functions

virtual void SetUp ()
 Called at the start of every test using this fixture.
 
virtual void TearDown ()
 Called at the end of every test using this fixture.
 
bool Benchmark (unsigned int max=100)
 Controls execution of a benchmarked section. More...
 

Static Protected Member Functions

static void SetUpTestCase ()
 Called once before any tests in this case are run.
 
static void TearDownTestCase ()
 Called once when all tests in this case are finished.
 

Detailed Description

Abstract class to be inherited by test fixtures.

See benchtest module documentation for more usage information.

class MyCase : public testing::Test {
protected:
void MyTest() {
}
}
TEST_F(MyCase, MyTest)