Classes | 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>

Inherited by AdHocTestResultTest, bar::MixedUpTestSuiteTest, bar::MixedUpTestSuiteWithSameTestNameTest, CommonTest< T >, DynamicFixture, DynamicUnitTestFixture, ExpectFailureTest, FatalFailureInFixtureConstructorTest, FatalFailureInSetUpTest, foo::MixedUpTestSuiteTest, foo::MixedUpTestSuiteWithSameTestNameTest, FooTest, FooTest, GMockOutputTest, google::protobuf::descriptor_unittest::CopySourceCodeInfoToTest, google::protobuf::descriptor_unittest::DatabaseBackedPoolTest, google::protobuf::descriptor_unittest::DescriptorTest, google::protobuf::descriptor_unittest::EnumDescriptorTest, google::protobuf::descriptor_unittest::ExtensionDescriptorTest, google::protobuf::descriptor_unittest::FileDescriptorTest, google::protobuf::descriptor_unittest::LazilyBuildDependenciesTest, google::protobuf::descriptor_unittest::MiscTest, google::protobuf::descriptor_unittest::NestedDescriptorTest, google::protobuf::descriptor_unittest::OneofDescriptorTest, google::protobuf::descriptor_unittest::ReservedDescriptorTest, google::protobuf::descriptor_unittest::ReservedEnumDescriptorTest, google::protobuf::descriptor_unittest::ServiceDescriptorTest, google::protobuf::descriptor_unittest::SourceLocationTest, google::protobuf::descriptor_unittest::StylizedFieldNamesTest, google::protobuf::descriptor_unittest::ValidationErrorTest, google::protobuf.internal::MapFieldBasePrimitiveTest, google::protobuf.internal::MapFieldInDynamicMessageTest, google::protobuf.internal::MapFieldReflectionTest, google::protobuf.internal::MapImplTest, google::protobuf::text_format_unittest::TextFormatExtensionsTest, google::protobuf::text_format_unittest::TextFormatMessageSetTest, google::protobuf::text_format_unittest::TextFormatParserTest, google::protobuf::text_format_unittest::TextFormatTest, google::protobuf::UnknownFieldSetTest, google::protobuf::util::converter::JsonObjectWriterTest, google::protobuf::util::converter::JsonStreamParserTest, google::protobuf::util::SnakeCaseCamelCaseTest, MacroNamingTestNonParametrized, NonFatalFailureInFixtureConstructorTest, NonFatalFailureInSetUpTest, NonParameterizedBaseTest, Predicate1Test, Predicate2Test, Predicate3Test, Predicate4Test, Predicate5Test, PropertyOne, PropertyTwo, ProtectedFixtureMethodsTest, TEST_before_TEST_F_in_same_test_case, TEST_F_before_TEST_in_same_test_case, testing::CodeLocationForTESTF, testing::CodeLocationForTYPEDTEST< T >, testing::CodeLocationForTYPEDTESTP< T >, testing::CurrentTestInfoTest, testing::gmock_function_mocker_test::MockMethodFunctionMockerTest, testing::gmock_generated_function_mockers_test::FunctionMockerTest, testing::internal::ListenerTest, testing::internal::UnitTestRecordPropertyTestHelper, testing::ParseFlagsTest, testing::SetUpTestCaseTest, testing::SetUpTestSuiteTest, testing::TestInfoTest, testing::TestWithParam< T >, testing::TestWithParam< bool >, testing::TestWithParam< DescriptorPoolMode >, testing::TestWithParam< int >, testing::TestWithParam< MyEnums >, testing::TestWithParam< MyType >, testing::TestWithParam< State >, testing::TestWithParam< std::string >, testing::TestWithParam< testing::TypeInfoSource >, TypedTest< T >, and TypeParamTest< T >.

Classes

struct  Setup_should_be_spelled_SetUp
 

Public Member Functions

virtual ~Test ()
 

Static Public Member Functions

static bool HasFailure ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool IsSkipped ()
 
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 SetUpTestSuite ()
 
static void TearDownTestCase ()
 
static void TearDownTestSuite ()
 

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 std::unique_ptr< GTEST_FLAG_SAVER_gtest_flag_saver_
 

Friends

class TestInfo
 

Detailed Description

Definition at line 415 of file gtest.h.

Constructor & Destructor Documentation

◆ ~Test()

testing::Test::~Test ( )
virtual

Definition at line 2243 of file gtest.cc.

◆ Test()

testing::Test::Test ( )
protected

Definition at line 2236 of file gtest.cc.

Member Function Documentation

◆ DeleteSelf_()

void testing::Test::DeleteSelf_ ( )
inlineprivate

Definition at line 501 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 455 of file gtest.h.

◆ HasFatalFailure()

bool testing::Test::HasFatalFailure ( )
static

Definition at line 2512 of file gtest.cc.

◆ HasNonfatalFailure()

bool testing::Test::HasNonfatalFailure ( )
static

Definition at line 2517 of file gtest.cc.

◆ HasSameFixtureClass()

bool testing::Test::HasSameFixtureClass ( )
staticprivate

Definition at line 2291 of file gtest.cc.

◆ IsSkipped()

bool testing::Test::IsSkipped ( )
static

Definition at line 2523 of file gtest.cc.

◆ RecordProperty() [1/2]

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

Definition at line 2259 of file gtest.cc.

◆ RecordProperty() [2/2]

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

Definition at line 2264 of file gtest.cc.

◆ Run()

void testing::Test::Run ( )
private

Definition at line 2489 of file gtest.cc.

◆ SetUp()

void testing::Test::SetUp ( )
protectedvirtual

◆ Setup()

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

Definition at line 522 of file gtest.h.

◆ SetUpTestCase()

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

Definition at line 441 of file gtest.h.

◆ SetUpTestSuite()

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

Definition at line 428 of file gtest.h.

◆ TearDown()

void testing::Test::TearDown ( )
protectedvirtual

◆ TearDownTestCase()

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

Definition at line 440 of file gtest.h.

◆ TearDownTestSuite()

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

Definition at line 436 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 417 of file gtest.h.

Member Data Documentation

◆ gtest_flag_saver_

const std::unique_ptr<GTEST_FLAG_SAVER_> testing::Test::gtest_flag_saver_
private

Definition at line 503 of file gtest.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:11