Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
testing::Test Class Referenceabstract

#include <gtest.h>

Inheritance diagram for testing::Test:
Inheritance graph
[legend]

Classes

struct  Setup_should_be_spelled_SetUp
 

Public Types

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

Public Member Functions

virtual ~Test ()
 

Static Public Member Functions

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

Protected Member Functions

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

Private Member Functions

void DeleteSelf_ ()
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (Test)
 
void Run ()
 
virtual Setup_should_be_spelled_SetUpSetup ()
 
virtual void TestBody ()=0
 

Static Private Member Functions

static bool HasSameFixtureClass ()
 

Private Attributes

const internal::GTestFlagSaver *const gtest_flag_saver_
 

Friends

class TestInfo
 

Detailed Description

Definition at line 17760 of file gtest.h.

Member Typedef Documentation

◆ SetUpTestCaseFunc

typedef internal::SetUpTestCaseFunc testing::Test::SetUpTestCaseFunc

Definition at line 17766 of file gtest.h.

◆ TearDownTestCaseFunc

typedef internal::TearDownTestCaseFunc testing::Test::TearDownTestCaseFunc

Definition at line 17767 of file gtest.h.

Constructor & Destructor Documentation

◆ ~Test()

testing::Test::~Test ( )
virtual

Definition at line 3380 of file gtest-all.cc.

◆ Test()

testing::Test::Test ( )
protected

Definition at line 3375 of file gtest-all.cc.

Member Function Documentation

◆ DeleteSelf_()

void testing::Test::DeleteSelf_ ( )
inlineprivate

Definition at line 17842 of file gtest.h.

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_()

testing::Test::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( Test  )
private

◆ HasFailure()

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

Definition at line 17796 of file gtest.h.

◆ HasFatalFailure()

bool testing::Test::HasFatalFailure ( )
static

Definition at line 3647 of file gtest-all.cc.

◆ HasNonfatalFailure()

bool testing::Test::HasNonfatalFailure ( )
static

Definition at line 3652 of file gtest-all.cc.

◆ HasSameFixtureClass()

bool testing::Test::HasSameFixtureClass ( )
staticprivate

Definition at line 3429 of file gtest-all.cc.

◆ RecordProperty() [1/2]

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

Definition at line 3397 of file gtest-all.cc.

◆ RecordProperty() [2/2]

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

Definition at line 3402 of file gtest-all.cc.

◆ Run()

void testing::Test::Run ( )
private

Definition at line 3625 of file gtest-all.cc.

◆ SetUp()

void testing::Test::SetUp ( )
protectedvirtual

Definition at line 3387 of file gtest-all.cc.

◆ Setup()

virtual Setup_should_be_spelled_SetUp* testing::Test::Setup ( )
inlineprivatevirtual

Definition at line 17864 of file gtest.h.

◆ SetUpTestCase()

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

Definition at line 17778 of file gtest.h.

◆ TearDown()

void testing::Test::TearDown ( )
protectedvirtual

Definition at line 3393 of file gtest-all.cc.

◆ TearDownTestCase()

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

Definition at line 17786 of file gtest.h.

◆ TestBody()

virtual void testing::Test::TestBody ( )
privatepure virtual

Friends And Related Function Documentation

◆ TestInfo

friend class TestInfo
friend

Definition at line 17762 of file gtest.h.

Member Data Documentation

◆ gtest_flag_saver_

const internal::GTestFlagSaver* const testing::Test::gtest_flag_saver_
private

Definition at line 17845 of file gtest.h.


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


diagnostic_aggregator
Author(s): Kevin Watts, Brice Rebsamen
autogenerated on Mon Feb 28 2022 22:18:07