v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Public Member Functions | Static Public Member Functions | Friends | List of all members
testing::UnitTest Class Reference

#include <gtest.h>

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 ()
 

Static Public Member Functions

static UnitTestGetInstance ()
 

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)
 

Detailed Description

Definition at line 1151 of file gtest.h.

Member Function Documentation

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

Referenced by testing::AddGlobalTestEnvironment(), and testing::internal::GetUnitTestImpl().

Here is the caller graph for this function:

int testing::UnitTest::Run ( )
const char* testing::UnitTest::original_working_dir ( ) const
const TestCase* testing::UnitTest::current_test_case ( ) const
const TestInfo* testing::UnitTest::current_test_info ( ) const
int testing::UnitTest::random_seed ( ) const
int testing::UnitTest::successful_test_case_count ( ) const
int testing::UnitTest::failed_test_case_count ( ) const
int testing::UnitTest::total_test_case_count ( ) const
int testing::UnitTest::test_case_to_run_count ( ) const
int testing::UnitTest::successful_test_count ( ) const
int testing::UnitTest::failed_test_count ( ) const
int testing::UnitTest::reportable_disabled_test_count ( ) const
int testing::UnitTest::disabled_test_count ( ) const
int testing::UnitTest::reportable_test_count ( ) const
int testing::UnitTest::total_test_count ( ) const
int testing::UnitTest::test_to_run_count ( ) const
TimeInMillis testing::UnitTest::start_timestamp ( ) const
TimeInMillis testing::UnitTest::elapsed_time ( ) const

Referenced by testing::internal::TestResultAccessor::test_part_results().

Here is the caller graph for this function:

bool testing::UnitTest::Passed ( ) const

Referenced by testing::internal::TestResultAccessor::test_part_results().

Here is the caller graph for this function:

bool testing::UnitTest::Failed ( ) const
const TestCase* testing::UnitTest::GetTestCase ( int  i) const
const TestResult& testing::UnitTest::ad_hoc_test_result ( ) const
TestEventListeners& testing::UnitTest::listeners ( )

Friends And Related Function Documentation

friend class Test
friend

Definition at line 1292 of file gtest.h.

friend class internal::AssertHelper
friend

Definition at line 1293 of file gtest.h.

friend class internal::ScopedTrace
friend

Definition at line 1294 of file gtest.h.

friend class internal::StreamingListenerTest
friend

Definition at line 1295 of file gtest.h.

friend class internal::UnitTestRecordPropertyTestHelper
friend

Definition at line 1296 of file gtest.h.

Environment* AddGlobalTestEnvironment ( Environment env)
friend

Definition at line 1350 of file gtest.h.

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

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