#include <gtest.h>
Public Member Functions | |
const TestResult & | ad_hoc_test_result () const |
const TestCase * | current_test_case () const GTEST_LOCK_EXCLUDED_(mutex_) |
const TestInfo * | current_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 TestCase * | GetTestCase (int i) const |
TestEventListeners & | listeners () |
const char * | original_working_dir () const |
internal::ParameterizedTestCaseRegistry & | parameterized_test_registry () GTEST_LOCK_EXCLUDED_(mutex_) |
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 UnitTest * | GetInstance () |
Private Member Functions | |
Environment * | AddEnvironment (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_) |
TestCase * | GetMutableTestCase (int i) |
GTEST_DISALLOW_COPY_AND_ASSIGN_ (UnitTest) | |
internal::UnitTestImpl * | impl () |
const internal::UnitTestImpl * | impl () 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::UnitTestImpl * | impl_ |
internal::Mutex | mutex_ |
Friends | |
Environment * | AddGlobalTestEnvironment (Environment *env) |
class | internal::AssertHelper |
internal::UnitTestImpl * | internal::GetUnitTestImpl () |
void | internal::ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message) |
class | internal::ScopedTrace |
class | internal::StreamingListenerTest |
class | internal::UnitTestRecordPropertyTestHelper |
class | Test |
|
private |
Definition at line 5452 of file gtest-all.cc.
|
privatevirtual |
Definition at line 5457 of file gtest-all.cc.
const TestResult & testing::UnitTest::ad_hoc_test_result | ( | ) | const |
Definition at line 5222 of file gtest-all.cc.
|
private |
Definition at line 5248 of file gtest-all.cc.
|
private |
Definition at line 5261 of file gtest-all.cc.
const TestCase * testing::UnitTest::current_test_case | ( | ) | const |
Definition at line 5424 of file gtest-all.cc.
const TestInfo * testing::UnitTest::current_test_info | ( | ) | const |
Definition at line 5432 of file gtest-all.cc.
int testing::UnitTest::disabled_test_count | ( | ) | const |
Definition at line 5181 of file gtest-all.cc.
internal::TimeInMillis testing::UnitTest::elapsed_time | ( | ) | const |
Definition at line 5203 of file gtest-all.cc.
bool testing::UnitTest::Failed | ( | ) | const |
Definition at line 5212 of file gtest-all.cc.
int testing::UnitTest::failed_test_case_count | ( | ) | const |
Definition at line 5152 of file gtest-all.cc.
int testing::UnitTest::failed_test_count | ( | ) | const |
Definition at line 5173 of file gtest-all.cc.
|
static |
Definition at line 5125 of file gtest-all.cc.
|
private |
Definition at line 5228 of file gtest-all.cc.
const TestCase * testing::UnitTest::GetTestCase | ( | int | i | ) | const |
Definition at line 5216 of file gtest-all.cc.
|
private |
|
inlineprivate |
|
inlineprivate |
TestEventListeners & testing::UnitTest::listeners | ( | ) |
Definition at line 5234 of file gtest-all.cc.
const char * testing::UnitTest::original_working_dir | ( | ) | const |
Definition at line 5418 of file gtest-all.cc.
internal::ParameterizedTestCaseRegistry& testing::UnitTest::parameterized_test_registry | ( | ) |
bool testing::UnitTest::Passed | ( | ) | const |
Definition at line 5208 of file gtest-all.cc.
|
private |
Definition at line 5470 of file gtest-all.cc.
|
private |
Definition at line 5463 of file gtest-all.cc.
int testing::UnitTest::random_seed | ( | ) | const |
Definition at line 5439 of file gtest-all.cc.
|
private |
Definition at line 5328 of file gtest-all.cc.
int testing::UnitTest::reportable_disabled_test_count | ( | ) | const |
Definition at line 5176 of file gtest-all.cc.
int testing::UnitTest::reportable_test_count | ( | ) | const |
Definition at line 5186 of file gtest-all.cc.
int testing::UnitTest::Run | ( | ) |
Definition at line 5338 of file gtest-all.cc.
internal::TimeInMillis testing::UnitTest::start_timestamp | ( | ) | const |
Definition at line 5198 of file gtest-all.cc.
int testing::UnitTest::successful_test_case_count | ( | ) | const |
Definition at line 5147 of file gtest-all.cc.
int testing::UnitTest::successful_test_count | ( | ) | const |
Definition at line 5168 of file gtest-all.cc.
int testing::UnitTest::test_case_to_run_count | ( | ) | const |
Definition at line 5163 of file gtest-all.cc.
int testing::UnitTest::test_to_run_count | ( | ) | const |
Definition at line 5194 of file gtest-all.cc.
int testing::UnitTest::total_test_case_count | ( | ) | const |
Definition at line 5157 of file gtest-all.cc.
int testing::UnitTest::total_test_count | ( | ) | const |
Definition at line 5191 of file gtest-all.cc.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
mutableprivate |