Monero
Loading...
Searching...
No Matches
testing::UnitTest Class Reference

#include <gtest.h>

Collaboration diagram for testing::UnitTest:

Public Member Functions

int Run () GTEST_MUST_USE_RESULT_
const char * original_working_dir () const
const TestCasecurrent_test_case () const GTEST_LOCK_EXCLUDED_(mutex_)
const TestInfocurrent_test_info () const GTEST_LOCK_EXCLUDED_(mutex_)
int random_seed () const
int successful_test_case_count () const
int failed_test_case_count () const
int total_test_case_count () const
int test_case_to_run_count () const
int successful_test_count () const
int failed_test_count () const
int reportable_disabled_test_count () const
int disabled_test_count () const
int reportable_test_count () const
int total_test_count () const
int test_to_run_count () const
TimeInMillis start_timestamp () const
TimeInMillis elapsed_time () const
bool Passed () const
bool Failed () const
const TestCaseGetTestCase (int i) const
const TestResultad_hoc_test_result () const
TestEventListenerslisteners ()
int Run () GTEST_MUST_USE_RESULT_
const char * original_working_dir () const
const TestCasecurrent_test_case () const GTEST_LOCK_EXCLUDED_(mutex_)
const TestInfocurrent_test_info () const GTEST_LOCK_EXCLUDED_(mutex_)
int random_seed () const
int successful_test_case_count () const
int failed_test_case_count () const
int total_test_case_count () const
int test_case_to_run_count () const
int successful_test_count () const
int failed_test_count () const
int reportable_disabled_test_count () const
int disabled_test_count () const
int reportable_test_count () const
int total_test_count () const
int test_to_run_count () const
TimeInMillis start_timestamp () const
TimeInMillis elapsed_time () const
bool Passed () const
bool Failed () const
const TestCaseGetTestCase (int i) const
const TestResultad_hoc_test_result () const
TestEventListenerslisteners ()

Static Public Member Functions

static UnitTestGetInstance ()
static UnitTestGetInstance ()

Private Member Functions

EnvironmentAddEnvironment (Environment *env)
void AddTestPartResult (TestPartResult::Type result_type, const char *file_name, int line_number, const std::string &message, const std::string &os_stack_trace) GTEST_LOCK_EXCLUDED_(mutex_)
void RecordProperty (const std::string &key, const std::string &value)
TestCaseGetMutableTestCase (int i)
internal::UnitTestImplimpl ()
const internal::UnitTestImplimpl () const
 UnitTest ()
virtual ~UnitTest ()
void PushGTestTrace (const internal::TraceInfo &trace) GTEST_LOCK_EXCLUDED_(mutex_)
void PopGTestTrace () GTEST_LOCK_EXCLUDED_(mutex_)
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (UnitTest)
EnvironmentAddEnvironment (Environment *env)
void AddTestPartResult (TestPartResult::Type result_type, const char *file_name, int line_number, const std::string &message, const std::string &os_stack_trace) GTEST_LOCK_EXCLUDED_(mutex_)
void RecordProperty (const std::string &key, const std::string &value)
TestCaseGetMutableTestCase (int i)
internal::UnitTestImplimpl ()
const internal::UnitTestImplimpl () const
 UnitTest ()
virtual ~UnitTest ()
void PushGTestTrace (const internal::TraceInfo &trace) GTEST_LOCK_EXCLUDED_(mutex_)
void PopGTestTrace () GTEST_LOCK_EXCLUDED_(mutex_)
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (UnitTest)

Private Attributes

internal::Mutex mutex_
internal::UnitTestImplimpl_

Friends

class Test
class internal::AssertHelper
class internal::ScopedTrace
class internal::StreamingListenerTest
class internal::UnitTestRecordPropertyTestHelper
EnvironmentAddGlobalTestEnvironment (Environment *env)
internal::UnitTestImplinternal::GetUnitTestImpl ()
void internal::ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message)
EnvironmentAddGlobalTestEnvironment (Environment *env)
internal::UnitTestImplinternal::GetUnitTestImpl ()
void internal::ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message)

Constructor & Destructor Documentation

◆ UnitTest() [1/2]

testing::UnitTest::UnitTest ( )
private

◆ ~UnitTest() [1/2]

testing::UnitTest::~UnitTest ( )
privatevirtual

◆ UnitTest() [2/2]

testing::UnitTest::UnitTest ( )
private

◆ ~UnitTest() [2/2]

virtual testing::UnitTest::~UnitTest ( )
privatevirtual

Member Function Documentation

◆ ad_hoc_test_result() [1/2]

const TestResult & testing::UnitTest::ad_hoc_test_result ( ) const

◆ ad_hoc_test_result() [2/2]

const TestResult & testing::UnitTest::ad_hoc_test_result ( ) const

◆ AddEnvironment() [1/2]

Environment * testing::UnitTest::AddEnvironment ( Environment * env)
private

◆ AddEnvironment() [2/2]

Environment * testing::UnitTest::AddEnvironment ( Environment * env)
private

◆ AddTestPartResult() [1/2]

void testing::UnitTest::AddTestPartResult ( TestPartResult::Type result_type,
const char * file_name,
int line_number,
const std::string & message,
const std::string & os_stack_trace )
private

◆ AddTestPartResult() [2/2]

void testing::UnitTest::AddTestPartResult ( TestPartResult::Type result_type,
const char * file_name,
int line_number,
const std::string & message,
const std::string & os_stack_trace )
private

◆ current_test_case() [1/2]

const TestCase * testing::UnitTest::current_test_case ( ) const

◆ current_test_case() [2/2]

const TestCase * testing::UnitTest::current_test_case ( ) const

◆ current_test_info() [1/2]

const TestInfo * testing::UnitTest::current_test_info ( ) const

◆ current_test_info() [2/2]

const TestInfo * testing::UnitTest::current_test_info ( ) const

◆ disabled_test_count() [1/2]

int testing::UnitTest::disabled_test_count ( ) const

◆ disabled_test_count() [2/2]

int testing::UnitTest::disabled_test_count ( ) const

◆ elapsed_time() [1/2]

internal::TimeInMillis testing::UnitTest::elapsed_time ( ) const

◆ elapsed_time() [2/2]

TimeInMillis testing::UnitTest::elapsed_time ( ) const

◆ Failed() [1/2]

bool testing::UnitTest::Failed ( ) const

◆ Failed() [2/2]

bool testing::UnitTest::Failed ( ) const

◆ failed_test_case_count() [1/2]

int testing::UnitTest::failed_test_case_count ( ) const

◆ failed_test_case_count() [2/2]

int testing::UnitTest::failed_test_case_count ( ) const

◆ failed_test_count() [1/2]

int testing::UnitTest::failed_test_count ( ) const

◆ failed_test_count() [2/2]

int testing::UnitTest::failed_test_count ( ) const

◆ GetInstance() [1/2]

UnitTest * testing::UnitTest::GetInstance ( )
static

◆ GetInstance() [2/2]

UnitTest * testing::UnitTest::GetInstance ( )
static

◆ GetMutableTestCase() [1/2]

TestCase * testing::UnitTest::GetMutableTestCase ( int i)
private

◆ GetMutableTestCase() [2/2]

TestCase * testing::UnitTest::GetMutableTestCase ( int i)
private

◆ GetTestCase() [1/2]

const TestCase * testing::UnitTest::GetTestCase ( int i) const

◆ GetTestCase() [2/2]

const TestCase * testing::UnitTest::GetTestCase ( int i) const

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [1/2]

testing::UnitTest::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( UnitTest )
private

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [2/2]

testing::UnitTest::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( UnitTest )
private

◆ impl() [1/4]

internal::UnitTestImpl * testing::UnitTest::impl ( )
inlineprivate

◆ impl() [2/4]

internal::UnitTestImpl * testing::UnitTest::impl ( )
inlineprivate

◆ impl() [3/4]

const internal::UnitTestImpl * testing::UnitTest::impl ( ) const
inlineprivate

◆ impl() [4/4]

const internal::UnitTestImpl * testing::UnitTest::impl ( ) const
inlineprivate

◆ listeners() [1/2]

TestEventListeners & testing::UnitTest::listeners ( )

◆ listeners() [2/2]

TestEventListeners & testing::UnitTest::listeners ( )

◆ original_working_dir() [1/2]

const char * testing::UnitTest::original_working_dir ( ) const

◆ original_working_dir() [2/2]

const char * testing::UnitTest::original_working_dir ( ) const

◆ Passed() [1/2]

bool testing::UnitTest::Passed ( ) const

◆ Passed() [2/2]

bool testing::UnitTest::Passed ( ) const

◆ PopGTestTrace() [1/2]

void testing::UnitTest::PopGTestTrace ( )
private

◆ PopGTestTrace() [2/2]

void testing::UnitTest::PopGTestTrace ( )
private

◆ PushGTestTrace() [1/2]

void testing::UnitTest::PushGTestTrace ( const internal::TraceInfo & trace)
private

◆ PushGTestTrace() [2/2]

void testing::UnitTest::PushGTestTrace ( const internal::TraceInfo & trace)
private

◆ random_seed() [1/2]

int testing::UnitTest::random_seed ( ) const

◆ random_seed() [2/2]

int testing::UnitTest::random_seed ( ) const

◆ RecordProperty() [1/2]

void testing::UnitTest::RecordProperty ( const std::string & key,
const std::string & value )
private

◆ RecordProperty() [2/2]

void testing::UnitTest::RecordProperty ( const std::string & key,
const std::string & value )
private

◆ reportable_disabled_test_count() [1/2]

int testing::UnitTest::reportable_disabled_test_count ( ) const

◆ reportable_disabled_test_count() [2/2]

int testing::UnitTest::reportable_disabled_test_count ( ) const

◆ reportable_test_count() [1/2]

int testing::UnitTest::reportable_test_count ( ) const

◆ reportable_test_count() [2/2]

int testing::UnitTest::reportable_test_count ( ) const

◆ Run() [1/2]

int testing::UnitTest::Run ( )

◆ Run() [2/2]

int testing::UnitTest::Run ( )

◆ start_timestamp() [1/2]

internal::TimeInMillis testing::UnitTest::start_timestamp ( ) const

◆ start_timestamp() [2/2]

TimeInMillis testing::UnitTest::start_timestamp ( ) const

◆ successful_test_case_count() [1/2]

int testing::UnitTest::successful_test_case_count ( ) const

◆ successful_test_case_count() [2/2]

int testing::UnitTest::successful_test_case_count ( ) const

◆ successful_test_count() [1/2]

int testing::UnitTest::successful_test_count ( ) const

◆ successful_test_count() [2/2]

int testing::UnitTest::successful_test_count ( ) const

◆ test_case_to_run_count() [1/2]

int testing::UnitTest::test_case_to_run_count ( ) const

◆ test_case_to_run_count() [2/2]

int testing::UnitTest::test_case_to_run_count ( ) const

◆ test_to_run_count() [1/2]

int testing::UnitTest::test_to_run_count ( ) const

◆ test_to_run_count() [2/2]

int testing::UnitTest::test_to_run_count ( ) const

◆ total_test_case_count() [1/2]

int testing::UnitTest::total_test_case_count ( ) const

◆ total_test_case_count() [2/2]

int testing::UnitTest::total_test_case_count ( ) const

◆ total_test_count() [1/2]

int testing::UnitTest::total_test_count ( ) const

◆ total_test_count() [2/2]

int testing::UnitTest::total_test_count ( ) const

◆ AddGlobalTestEnvironment [1/2]

Environment * AddGlobalTestEnvironment ( Environment * env)
friend

◆ AddGlobalTestEnvironment [2/2]

Environment * AddGlobalTestEnvironment ( Environment * env)
friend

◆ internal::AssertHelper

◆ internal::GetUnitTestImpl [1/2]

◆ internal::GetUnitTestImpl [2/2]

◆ internal::ReportFailureInUnknownLocation [1/2]

void internal::ReportFailureInUnknownLocation ( TestPartResult::Type result_type,
const std::string & message )
friend

◆ internal::ReportFailureInUnknownLocation [2/2]

void internal::ReportFailureInUnknownLocation ( TestPartResult::Type result_type,
const std::string & message )
friend

◆ internal::ScopedTrace

◆ internal::StreamingListenerTest

internal::StreamingListenerTest
friend

◆ internal::UnitTestRecordPropertyTestHelper

◆ Test

Test
friend

Member Data Documentation

◆ impl_

internal::UnitTestImpl * testing::UnitTest::impl_
private

◆ mutex_

internal::Mutex testing::UnitTest::mutex_
mutableprivate

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