Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
testing::UnitTest Class Reference

#include <gtest.h>

List of all members.

Public Member Functions

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

Static Public Member Functions

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_)
TestCaseGetMutableTestCase (int i)
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (UnitTest)
internal::UnitTestImplimpl ()
const internal::UnitTestImplimpl () const
void PopGTestTrace () GTEST_LOCK_EXCLUDED_(mutex_)
void PushGTestTrace (const internal::TraceInfo &trace) GTEST_LOCK_EXCLUDED_(mutex_)
void RecordProperty (const std::string &key, const std::string &value)
 UnitTest ()
virtual ~UnitTest ()

Private Attributes

internal::UnitTestImplimpl_
internal::Mutex mutex_

Friends

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

Detailed Description

Definition at line 1143 of file gtest.h.


Constructor & Destructor Documentation

Definition at line 4262 of file gtest.cc.

testing::UnitTest::~UnitTest ( ) [private, virtual]

Definition at line 4267 of file gtest.cc.


Member Function Documentation

Definition at line 4032 of file gtest.cc.

Definition at line 4058 of file gtest.cc.

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]

Definition at line 4071 of file gtest.cc.

Definition at line 4234 of file gtest.cc.

Definition at line 4242 of file gtest.cc.

Definition at line 3991 of file gtest.cc.

Definition at line 4013 of file gtest.cc.

Definition at line 4022 of file gtest.cc.

Definition at line 3962 of file gtest.cc.

Definition at line 3983 of file gtest.cc.

Definition at line 3935 of file gtest.cc.

Definition at line 4038 of file gtest.cc.

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

Definition at line 4026 of file gtest.cc.

Definition at line 1279 of file gtest.h.

const internal::UnitTestImpl* testing::UnitTest::impl ( ) const [inline, private]

Definition at line 1280 of file gtest.h.

Definition at line 4044 of file gtest.cc.

Definition at line 4228 of file gtest.cc.

Definition at line 4018 of file gtest.cc.

Definition at line 4280 of file gtest.cc.

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

Definition at line 4273 of file gtest.cc.

Definition at line 4249 of file gtest.cc.

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

Definition at line 4138 of file gtest.cc.

Definition at line 3986 of file gtest.cc.

Definition at line 3996 of file gtest.cc.

Definition at line 4148 of file gtest.cc.

Definition at line 4008 of file gtest.cc.

Definition at line 3957 of file gtest.cc.

Definition at line 3978 of file gtest.cc.

Definition at line 3973 of file gtest.cc.

Definition at line 4004 of file gtest.cc.

Definition at line 3967 of file gtest.cc.

Definition at line 4001 of file gtest.cc.


Friends And Related Function Documentation

Definition at line 1342 of file gtest.h.

friend class internal::AssertHelper [friend]

Definition at line 1285 of file gtest.h.

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

Definition at line 1286 of file gtest.h.

friend class internal::StreamingListenerTest [friend]

Definition at line 1287 of file gtest.h.

Definition at line 1288 of file gtest.h.

friend class Test [friend]

Definition at line 1284 of file gtest.h.


Member Data Documentation

Definition at line 1318 of file gtest.h.

Definition at line 1312 of file gtest.h.


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


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:12