testing::UnitTest Class Reference

`#include <gtest.h>`

## Public Member Functions

int | Run () GTEST_MUST_USE_RESULT_
const char * | original_working_dir () const
const TestSuite * | current_test_suite () const GTEST_LOCK_EXCLUDED_(mutex_)
const TestCase * | current_test_case () const GTEST_LOCK_EXCLUDED_(mutex_)
const TestInfo * | current_test_info () const GTEST_LOCK_EXCLUDED_(mutex_)
int | random_seed () const
internal::ParameterizedTestSuiteRegistry & | parameterized_test_registry () GTEST_LOCK_EXCLUDED_(mutex_)
int | successful_test_suite_count () const
int | failed_test_suite_count () const
int | total_test_suite_count () const
int | test_suite_to_run_count () 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 | skipped_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 TestSuite * | GetTestSuite (int i) const
const TestCase * | GetTestCase (int i) const
const TestResult & | ad_hoc_test_result () const
TestEventListeners & | listeners ()

## Static Public Member Functions

static UnitTest * | GetInstance ()

## Friends

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

## Detailed Description

Definition at line 15850 of file gtest.h.

## Member Function Documentation

## ad_hoc_test_result()

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

## current_test_case()

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

## current_test_info()

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

## current_test_suite()

const TestSuite* testing::UnitTest::current_test_suite | ( |  | ) | const

## disabled_test_count()

int testing::UnitTest::disabled_test_count | ( |  | ) | const

## elapsed_time()

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

## Failed()

bool testing::UnitTest::Failed | ( |  | ) | const

## failed_test_case_count()

int testing::UnitTest::failed_test_case_count | ( |  | ) | const

## failed_test_count()

int testing::UnitTest::failed_test_count | ( |  | ) | const

## failed_test_suite_count()

int testing::UnitTest::failed_test_suite_count | ( |  | ) | const

## GetInstance()

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

static

## GetTestCase()

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

## GetTestSuite()

const TestSuite* testing::UnitTest::GetTestSuite | ( | int | i | ) | const

## listeners()

TestEventListeners& testing::UnitTest::listeners | ( |  | ) |

## original_working_dir()

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

## parameterized_test_registry()

internal::ParameterizedTestSuiteRegistry& testing::UnitTest::parameterized_test_registry | ( |  | ) |

## Passed()

bool testing::UnitTest::Passed | ( |  | ) | const

## random_seed()

int testing::UnitTest::random_seed | ( |  | ) | const

## reportable_disabled_test_count()

int testing::UnitTest::reportable_disabled_test_count | ( |  | ) | const

## reportable_test_count()

int testing::UnitTest::reportable_test_count | ( |  | ) | const

## Run()

int testing::UnitTest::Run | ( |  | ) |

## skipped_test_count()

int testing::UnitTest::skipped_test_count | ( |  | ) | const

## start_timestamp()

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

## successful_test_case_count()

int testing::UnitTest::successful_test_case_count | ( |  | ) | const

## successful_test_count()

int testing::UnitTest::successful_test_count | ( |  | ) | const

## successful_test_suite_count()

int testing::UnitTest::successful_test_suite_count | ( |  | ) | const

## test_case_to_run_count()

int testing::UnitTest::test_case_to_run_count | ( |  | ) | const

## test_suite_to_run_count()

int testing::UnitTest::test_suite_to_run_count | ( |  | ) | const

## test_to_run_count()

int testing::UnitTest::test_to_run_count | ( |  | ) | const

## total_test_case_count()

int testing::UnitTest::total_test_case_count | ( |  | ) | const

## total_test_count()

int testing::UnitTest::total_test_count | ( |  | ) | const

## total_test_suite_count()

int testing::UnitTest::total_test_suite_count | ( |  | ) | const

## Friends And Related Function Documentation

## AddGlobalTestEnvironment

Environment* AddGlobalTestEnvironment | ( | Environment * | env | ) |

friend

Definition at line 16067 of file gtest.h.

## internal::AssertHelper

friend class internal::AssertHelper

friend

Definition at line 16011 of file gtest.h.

## internal::GetUnitTestImpl

internal::UnitTestImpl* internal::GetUnitTestImpl | ( |  | ) |

friend

## internal::ReportFailureInUnknownLocation

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

friend

## internal::StreamingListenerTest

friend class internal::StreamingListenerTest

friend

Definition at line 16012 of file gtest.h.

## internal::UnitTestRecordPropertyTestHelper

friend class internal::UnitTestRecordPropertyTestHelper

friend

Definition at line 16013 of file gtest.h.

## ScopedTrace

friend class ScopedTrace

friend

Definition at line 16009 of file gtest.h.

## Test

friend class Test

friend

Definition at line 16010 of file gtest.h.

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

- test/eclipse-cygwin/lib/gtest/gtest.h