proxygen
|
#include <gtest.h>
Static Public Member Functions | |
static UnitTest * | GetInstance () |
static UnitTest * | GetInstance () |
static UnitTest * | GetInstance () |
Private Attributes | |
internal::Mutex | mutex_ |
internal::UnitTestImpl * | impl_ |
Friends | |
class | Test |
class | internal::AssertHelper |
class | internal::ScopedTrace |
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) |
Environment * | AddGlobalTestEnvironment (Environment *env) |
internal::UnitTestImpl * | internal::GetUnitTestImpl () |
void | internal::ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message) |
Environment * | AddGlobalTestEnvironment (Environment *env) |
internal::UnitTestImpl * | internal::GetUnitTestImpl () |
void | internal::ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message) |
|
private |
Definition at line 4299 of file gtest.cc.
Referenced by testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
|
privatevirtual |
Definition at line 4304 of file gtest.cc.
Referenced by testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
|
private |
|
privatevirtual |
|
private |
|
privatevirtual |
const TestResult & testing::UnitTest::ad_hoc_test_result | ( | ) | const |
Definition at line 4069 of file gtest.cc.
Referenced by testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PortableLocaltime(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
const TestResult& testing::UnitTest::ad_hoc_test_result | ( | ) | const |
const TestResult& testing::UnitTest::ad_hoc_test_result | ( | ) | const |
|
private |
|
private |
Definition at line 4095 of file gtest.cc.
Referenced by testing::AddGlobalTestEnvironment(), impl(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
|
private |
|
private |
|
private |
Definition at line 4108 of file gtest.cc.
References testing::internal::TraceInfo::file, testing::internal::FormatFileLocation(), testing::Message::GetString(), GTEST_FLAG, GTEST_NAME_, i, testing::internal::kStackTraceMarker, testing::TestPartResult::kSuccess, testing::internal::TraceInfo::line, folly::detail::lock(), message, testing::internal::TraceInfo::message, and mutex_.
Referenced by testing::internal::ReportFailureInUnknownLocation(), testing::TestPartNonfatallyFailed(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
|
private |
const TestCase* testing::UnitTest::current_test_case | ( | ) | const |
const TestCase* testing::UnitTest::current_test_case | ( | ) | const |
const TestCase * testing::UnitTest::current_test_case | ( | ) | const |
Definition at line 4271 of file gtest.cc.
References folly::detail::lock().
Referenced by testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
const TestInfo* testing::UnitTest::current_test_info | ( | ) | const |
const TestInfo* testing::UnitTest::current_test_info | ( | ) | const |
const TestInfo * testing::UnitTest::current_test_info | ( | ) | const |
Definition at line 4279 of file gtest.cc.
References folly::detail::lock().
Referenced by testing::CurrentTestInfoTest::SetUpTestCase(), CommonTest< T >::TearDown(), testing::CurrentTestInfoTest::TearDownTestCase(), testing::TEST_F(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::disabled_test_count | ( | ) | const |
int testing::UnitTest::disabled_test_count | ( | ) | const |
int testing::UnitTest::disabled_test_count | ( | ) | const |
Definition at line 4028 of file gtest.cc.
Referenced by testing::internal::UnitTestHelper::GetSortedTests(), testing::internal::TEST(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
internal::TimeInMillis testing::UnitTest::elapsed_time | ( | ) | const |
Definition at line 4050 of file gtest.cc.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PortableLocaltime(), testing::internal::TestResultAccessor::test_part_results(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
TimeInMillis testing::UnitTest::elapsed_time | ( | ) | const |
TimeInMillis testing::UnitTest::elapsed_time | ( | ) | const |
bool testing::UnitTest::Failed | ( | ) | const |
bool testing::UnitTest::Failed | ( | ) | const |
Definition at line 4059 of file gtest.cc.
Referenced by testing::internal::FinalSuccessChecker::TearDown(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
bool testing::UnitTest::Failed | ( | ) | const |
int testing::UnitTest::failed_test_case_count | ( | ) | const |
Definition at line 3999 of file gtest.cc.
Referenced by testing::internal::FinalSuccessChecker::TearDown(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::failed_test_case_count | ( | ) | const |
int testing::UnitTest::failed_test_case_count | ( | ) | const |
int testing::UnitTest::failed_test_count | ( | ) | const |
int testing::UnitTest::failed_test_count | ( | ) | const |
int testing::UnitTest::failed_test_count | ( | ) | const |
Definition at line 4020 of file gtest.cc.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PortableLocaltime(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), testing::internal::FinalSuccessChecker::TearDown(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
|
static |
|
static |
|
static |
Definition at line 3972 of file gtest.cc.
Referenced by testing::AddGlobalTestEnvironment(), testing::internal::UnitTestHelper::FindTestCase(), testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), testing::internal::UnitTestHelper::GetSortedTestCases(), testing::internal::UnitTestHelper::GetSortedTests(), testing::internal::GetUnitTestImpl(), impl(), testing::internal::Log(), main(), testing::internal::AssertHelper::operator=(), testing::internal::PortableLocaltime(), testing::Test::RecordProperty(), testing::internal::GoogleTestFailureReporter::ReportFailure(), testing::internal::ReportFailureInUnknownLocation(), testing::TestInfo::Run(), testing::TestCase::Run(), testing::internal::ScopedTrace::ScopedTrace(), testing::internal::UnitTestImpl::set_catch_exceptions(), testing::CurrentTestInfoTest::SetUpTestCase(), testing::internal::ShouldRunTestCase(), CommonTest< T >::TearDown(), testing::internal::FinalSuccessChecker::TearDown(), testing::CurrentTestInfoTest::TearDownTestCase(), testing::internal::TEST(), TEST(), testing::TEST_F(), testing::TestPartNonfatallyFailed(), testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile(), and testing::internal::ScopedTrace::~ScopedTrace().
|
private |
|
private |
Definition at line 4075 of file gtest.cc.
Referenced by testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
|
private |
const TestCase * testing::UnitTest::GetTestCase | ( | int | i | ) | const |
Definition at line 4063 of file gtest.cc.
Referenced by testing::internal::UnitTestHelper::FindTestCase(), testing::internal::UnitTestHelper::GetSortedTestCases(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PortableLocaltime(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
const TestCase* testing::UnitTest::GetTestCase | ( | int | i | ) | const |
const TestCase* testing::UnitTest::GetTestCase | ( | int | i | ) | const |
|
private |
|
private |
|
private |
|
inlineprivate |
|
inlineprivate |
Definition at line 1287 of file gtest.h.
Referenced by testing::internal::GetUnitTestImpl(), testing::internal::AssertHelper::operator=(), testing::internal::UnitTestImpl::set_catch_exceptions(), and testing::internal::ShouldRunTestCase().
|
inlineprivate |
|
inlineprivate |
Definition at line 1288 of file gtest.h.
References AddEnvironment(), testing::AddGlobalTestEnvironment(), argv, testing::AssertionSuccess(), testing::internal::CmpHelperEQ(), testing::internal::CmpHelperEQFailure(), testing::internal::EqFailure(), testing::internal::FormatForComparisonFailureMessage(), GetInstance(), testing::internal::GetUnitTestImpl(), GTEST_API_, GTEST_DISABLE_MSC_WARNINGS_POP_, GTEST_DISABLE_MSC_WARNINGS_PUSH_, GTEST_DISALLOW_COPY_AND_ASSIGN_, GTEST_LOCK_EXCLUDED_, testing::InitGoogleTest(), mutex_, testing::internal::ReportFailureInUnknownLocation(), folly::detail::rhs, and string.
|
inlineprivate |
|
inlineprivate |
Definition at line 1288 of file gtest.h.
References AddEnvironment(), testing::AddGlobalTestEnvironment(), argv, testing::AssertionSuccess(), testing::internal::CmpHelperEQ(), testing::internal::CmpHelperEQFailure(), testing::internal::EqFailure(), testing::internal::FormatForComparisonFailureMessage(), GetInstance(), testing::internal::GetUnitTestImpl(), GTEST_API_, GTEST_DISABLE_MSC_WARNINGS_POP_, GTEST_DISABLE_MSC_WARNINGS_PUSH_, GTEST_DISALLOW_COPY_AND_ASSIGN_, GTEST_LOCK_EXCLUDED_, testing::InitGoogleTest(), mutex_, testing::internal::ReportFailureInUnknownLocation(), folly::detail::rhs, and string.
TestEventListeners& testing::UnitTest::listeners | ( | ) |
TestEventListeners & testing::UnitTest::listeners | ( | ) |
Definition at line 4081 of file gtest.cc.
Referenced by main(), testing::TestInfo::Run(), testing::TestCase::Run(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
TestEventListeners& testing::UnitTest::listeners | ( | ) |
const char* testing::UnitTest::original_working_dir | ( | ) | const |
const char* testing::UnitTest::original_working_dir | ( | ) | const |
const char * testing::UnitTest::original_working_dir | ( | ) | const |
Definition at line 4265 of file gtest.cc.
Referenced by testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
bool testing::UnitTest::Passed | ( | ) | const |
Definition at line 4055 of file gtest.cc.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::FinalSuccessChecker::TearDown(), testing::internal::TestResultAccessor::test_part_results(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
bool testing::UnitTest::Passed | ( | ) | const |
bool testing::UnitTest::Passed | ( | ) | const |
|
private |
|
private |
Definition at line 4317 of file gtest.cc.
References folly::detail::lock().
Referenced by testing::internal::PortableLocaltime(), testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile(), and testing::internal::ScopedTrace::~ScopedTrace().
|
private |
|
private |
|
private |
|
private |
Definition at line 4310 of file gtest.cc.
References folly::detail::lock(), and mutex_.
Referenced by testing::internal::PortableLocaltime(), testing::internal::ScopedTrace::ScopedTrace(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::random_seed | ( | ) | const |
Definition at line 4286 of file gtest.cc.
References GTEST_LOCK_EXCLUDED_, and mutex_.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PortableLocaltime(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::random_seed | ( | ) | const |
int testing::UnitTest::random_seed | ( | ) | const |
|
private |
|
private |
Definition at line 4175 of file gtest.cc.
Referenced by testing::Test::RecordProperty(), testing::TestPartNonfatallyFailed(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
|
private |
int testing::UnitTest::reportable_disabled_test_count | ( | ) | const |
Definition at line 4023 of file gtest.cc.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PortableLocaltime(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::reportable_disabled_test_count | ( | ) | const |
int testing::UnitTest::reportable_disabled_test_count | ( | ) | const |
int testing::UnitTest::reportable_test_count | ( | ) | const |
int testing::UnitTest::reportable_test_count | ( | ) | const |
Definition at line 4033 of file gtest.cc.
Referenced by testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PortableLocaltime(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::reportable_test_count | ( | ) | const |
int testing::UnitTest::Run | ( | ) |
int testing::UnitTest::Run | ( | ) |
int testing::UnitTest::Run | ( | ) |
Definition at line 4185 of file gtest.cc.
References testing::internal::posix::GetEnv(), GTEST_FLAG, testing::internal::HandleExceptionsInMethodIfSupported(), and testing::internal::UnitTestImpl::RunAllTests().
Referenced by testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
internal::TimeInMillis testing::UnitTest::start_timestamp | ( | ) | const |
Definition at line 4045 of file gtest.cc.
Referenced by testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PortableLocaltime(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
TimeInMillis testing::UnitTest::start_timestamp | ( | ) | const |
TimeInMillis testing::UnitTest::start_timestamp | ( | ) | const |
int testing::UnitTest::successful_test_case_count | ( | ) | const |
int testing::UnitTest::successful_test_case_count | ( | ) | const |
int testing::UnitTest::successful_test_case_count | ( | ) | const |
Definition at line 3994 of file gtest.cc.
Referenced by testing::internal::FinalSuccessChecker::TearDown(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::successful_test_count | ( | ) | const |
int testing::UnitTest::successful_test_count | ( | ) | const |
int testing::UnitTest::successful_test_count | ( | ) | const |
Definition at line 4015 of file gtest.cc.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::FinalSuccessChecker::TearDown(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::test_case_to_run_count | ( | ) | const |
int testing::UnitTest::test_case_to_run_count | ( | ) | const |
int testing::UnitTest::test_case_to_run_count | ( | ) | const |
Definition at line 4010 of file gtest.cc.
Referenced by testing::internal::UnitTestHelper::GetSortedTests(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::TEST(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::test_to_run_count | ( | ) | const |
Definition at line 4041 of file gtest.cc.
Referenced by testing::internal::UnitTestHelper::GetSortedTests(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::TEST(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::test_to_run_count | ( | ) | const |
int testing::UnitTest::test_to_run_count | ( | ) | const |
int testing::UnitTest::total_test_case_count | ( | ) | const |
Definition at line 4004 of file gtest.cc.
Referenced by testing::internal::UnitTestHelper::FindTestCase(), testing::internal::UnitTestHelper::GetSortedTestCases(), testing::internal::UnitTestHelper::GetSortedTests(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::PortableLocaltime(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), testing::internal::FinalSuccessChecker::TearDown(), testing::internal::TEST(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::total_test_case_count | ( | ) | const |
int testing::UnitTest::total_test_case_count | ( | ) | const |
int testing::UnitTest::total_test_count | ( | ) | const |
int testing::UnitTest::total_test_count | ( | ) | const |
Definition at line 4038 of file gtest.cc.
Referenced by testing::internal::UnitTestHelper::GetSortedTests(), testing::internal::TEST(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
int testing::UnitTest::total_test_count | ( | ) | const |
|
friend |
Definition at line 1350 of file gtest.h.
|
friend |
Definition at line 1350 of file gtest.h.
|
friend |
Definition at line 1350 of file gtest.h.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
mutableprivate |
Definition at line 1320 of file gtest.h.
Referenced by testing::internal::PortableLocaltime().