Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::Test Class Referenceabstract

#include <gtest.h>

Inheritance diagram for testing::Test:

Public Types

typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 

Public Member Functions

virtual ~Test ()
 

Static Public Member Functions

static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Protected Member Functions

 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Friends

class TestInfo
 

Detailed Description

Definition at line 397 of file gtest.h.

Member Typedef Documentation

◆ SetUpTestCaseFunc

internal::SetUpTestCaseFunc testing::Test::SetUpTestCaseFunc

Definition at line 403 of file gtest.h.

◆ TearDownTestCaseFunc

internal::TearDownTestCaseFunc testing::Test::TearDownTestCaseFunc

Definition at line 404 of file gtest.h.

Constructor & Destructor Documentation

◆ ~Test()

Test::~Test ( )
virtual

Definition at line 2237 of file gtest.cc.

2237 {
2238}

◆ Test()

Test::Test ( )
protected

Definition at line 2230 of file gtest.cc.

2231 : gtest_flag_saver_(new GTEST_FLAG_SAVER_) {
2232}
#define GTEST_FLAG_SAVER_

Member Function Documentation

◆ HasFailure()

static bool testing::Test::HasFailure ( )
inlinestatic

Definition at line 433 of file gtest.h.

433{ return HasFatalFailure() || HasNonfatalFailure(); }
static bool HasFatalFailure()
Definition gtest.cc:2505
static bool HasNonfatalFailure()
Definition gtest.cc:2510

◆ HasFatalFailure()

bool Test::HasFatalFailure ( )
static

Definition at line 2505 of file gtest.cc.

2505 {
2507}
bool HasFatalFailure() const
Definition gtest.cc:2200
TestResult * current_test_result()
Definition gtest.cc:5345
class UnitTestImpl * GetUnitTestImpl()
Here is the caller graph for this function:

◆ HasNonfatalFailure()

bool Test::HasNonfatalFailure ( )
static

Definition at line 2510 of file gtest.cc.

2510 {
2513}

◆ RecordProperty() [1/2]

void Test::RecordProperty ( const std::string & key,
const std::string & value )
static

Definition at line 2253 of file gtest.cc.

2253 {
2254 UnitTest::GetInstance()->RecordProperty(key, value);
2255}
static UnitTest * GetInstance()
Definition gtest.cc:4374
#define value
Definition pkcs11.h:157
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RecordProperty() [2/2]

void Test::RecordProperty ( const std::string & key,
int value )
static

Definition at line 2258 of file gtest.cc.

2258 {
2259 Message value_message;
2260 value_message << value;
2261 RecordProperty(key, value_message.GetString().c_str());
2262}
static void RecordProperty(const std::string &key, const std::string &value)
Definition gtest.cc:2253
Here is the call graph for this function:

◆ SetUp()

◆ SetUpTestCase()

static void testing::Test::SetUpTestCase ( )
inlinestatic

Definition at line 415 of file gtest.h.

415{}

◆ TearDown()

◆ TearDownTestCase()

static void testing::Test::TearDownTestCase ( )
inlinestatic

Definition at line 423 of file gtest.h.

423{}

Friends And Related Symbol Documentation

◆ TestInfo

friend class TestInfo
friend

Definition at line 399 of file gtest.h.


The documentation for this class was generated from the following files: