- 3.0.1 core module.
|
#include <ctype.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory>
#include <type_traits>
#include <sys/types.h>
#include <sys/stat.h>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "gtest/internal/gtest-port-arch.h"
#include "gtest/internal/custom/gtest-port.h"
#include <unistd.h>
#include <strings.h>
#include <regex.h>
#include <typeinfo>
Go to the source code of this file.
Namespaces | |
testing | |
testing::internal | |
testing::internal::posix | |
Typedefs | |
typedef GTestMutexLock | testing::internal::MutexLock |
typedef bool_constant< false > | testing::internal::false_type |
typedef bool_constant< true > | testing::internal::true_type |
typedef long long | testing::internal::BiggestInt |
typedef struct stat | testing::internal::posix::StatStruct |
typedef TypeWithSize< 4 >::Int | testing::internal::Int32 |
typedef TypeWithSize< 4 >::UInt | testing::internal::UInt32 |
typedef TypeWithSize< 8 >::Int | testing::internal::Int64 |
typedef TypeWithSize< 8 >::UInt | testing::internal::UInt64 |
typedef TypeWithSize< 8 >::Int | testing::internal::TimeInMillis |
Enumerations |
Variables | |
const BiggestInt | testing::internal::kMaxBiggestInt |
#define GTEST_DEV_EMAIL_ "googletestframework@@googlegroups.com" |
Referenced by testing::internal::ParseInt32Flag().
#define GTEST_FLAG_PREFIX_ "gtest_" |
#define GTEST_FLAG_PREFIX_DASH_ "gtest-" |
Referenced by testing::internal::ParseInt32Flag().
#define GTEST_FLAG_PREFIX_UPPER_ "GTEST_" |
Referenced by testing::internal::ParseInt32Flag().
#define GTEST_NAME_ "Google Test" |
Referenced by testing::ArrayAsVector(), testing::UnitTest::listeners(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), testing::internal::TestSuiteNameIs::operator()(), testing::internal::ParseInt32Flag(), and testing::internal::JsonUnitTestResultPrinter::PrintJsonTestList().
#define GTEST_PROJECT_URL_ "https://github.com/google/googletest/" |
Referenced by testing::internal::ParseInt32Flag().
#define GTEST_INIT_GOOGLE_TEST_NAME_ "testing::InitGoogleTest" |
Referenced by testing::internal::TestSuiteNameIs::operator()().
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_ | ( | warnings | ) |
#define GTEST_DISABLE_MSC_WARNINGS_POP_ | ( | ) |
Referenced by testing::internal::SuiteApiResolver< T >::GetTearDownCaseOrSuite(), GTEST_DISABLE_MSC_WARNINGS_PUSH_(), testing::internal::IgnoredValue::IgnoredValue(), main(), operator<<(), testing::UnitTest::parameterized_test_registry(), testing::internal::UniversalPrinter< T >::Print(), testing::internal::UniversalPrinter< T & >::Print(), RUN_ALL_TESTS(), testing::internal::StreamableToString(), and TEST().
#define GTEST_DISABLE_MSC_DEPRECATED_PUSH_ | ( | ) | GTEST_DISABLE_MSC_WARNINGS_PUSH_(4996) |
#define GTEST_DISABLE_MSC_DEPRECATED_POP_ | ( | ) | GTEST_DISABLE_MSC_WARNINGS_POP_() |
#define GTEST_HAS_POSIX_RE (!GTEST_OS_WINDOWS) |
#define GTEST_USES_POSIX_RE 1 |
Referenced by testing::internal::TEST().
#define GTEST_HAS_EXCEPTIONS 0 |
#define GTEST_HAS_STD_STRING 1 |
#define GTEST_HAS_STD_WSTRING |
#define GTEST_HAS_RTTI 1 |
#define GTEST_HAS_PTHREAD |
Referenced by if().
#define GTEST_HAS_CLONE 0 |
#define GTEST_HAS_STREAM_REDIRECTION 1 |
#define GTEST_WIDE_STRING_USES_UTF16_ (GTEST_OS_WINDOWS || GTEST_OS_CYGWIN || GTEST_OS_AIX || GTEST_OS_OS2) |
#define GTEST_AMBIGUOUS_ELSE_BLOCKER_ switch (0) case 0: default: |
static bool dummy2 GTEST_ATTRIBUTE_UNUSED_ |
Referenced by GTEST_DISABLE_MSC_WARNINGS_PUSH_(), and testing::ScopedTrace::ScopedTrace().
#define GTEST_ATTRIBUTE_PRINTF_ | ( | string_index, | |
first_to_check | |||
) |
#define GTEST_DISALLOW_ASSIGN_ | ( | type | ) | void operator=(type const &) = delete |
Referenced by GTEST_DISABLE_MSC_WARNINGS_PUSH_(), testing::PolymorphicAction< Impl >::operator Action< F >(), testing::internal::ReturnAction< R >::operator Action< F >(), testing::internal::ReturnRefAction< T >::operator Action< F >(), testing::internal::ReturnRefOfCopyAction< T >::operator Action< F >(), testing::internal::IgnoreResultAction< A >::operator Action< F >(), testing::internal::NativeArray< Element >::operator==(), testing::internal::RE::PartialMatch(), testing::internal::AssignAction< T1, T2 >::Perform(), testing::internal::SetErrnoAndReturnAction< T >::Perform(), and testing::internal::TEST().
#define GTEST_DISALLOW_COPY_AND_ASSIGN_ | ( | type | ) |
Referenced by testing::internal::CheckedDowncastToActualType(), testing::internal::ParameterizedTestFactory< TestClass >::CreateTest(), testing::internal::TestMetaFactory< TestSuite >::CreateTestFactory(), testing::gmock_nice_strict_test::MockFoo::Delete(), testing::DefaultValue< T >::Get(), testing::internal::GTestLog::GetStream(), testing::internal::ParameterizedTestSuiteRegistry::GetTestCasePatternHolder(), testing::internal::GetThreadCount(), GTEST_DISABLE_MSC_WARNINGS_PUSH_(), testing::Test::HasFailure(), Mock::Mock(), testing::gmock_function_mocker_test::MockB::MockB(), testing::gmock_generated_function_mockers_test::MockB::MockB(), MockFoo::MockFoo(), testing::gmock_function_mocker_test::MockFoo::MockFoo(), testing::gmock_generated_function_mockers_test::MockFoo::MockFoo(), testing::gmock_function_mocker_test::MockStack< T >::MockStack(), testing::gmock_generated_function_mockers_test::MockStack< T >::MockStack(), SequenceTestingListener::OnTestIterationEnd(), testing::internal::ReturnAction< R >::operator Action< F >(), testing::internal::ParameterizedTestSuiteInfoBase::ParameterizedTestSuiteInfoBase(), testing::internal::ParameterizedTestSuiteInfo< TestSuite >::RegisterTests(), testing::internal::Random::Reseed(), testing::ScopedTrace::ScopedTrace(), testing::internal::TestEventRepeater::set_forwarding_enabled(), testing::internal::ExpectationTester::SetCallCount(), testing::gmock_nice_strict_test::MockBar::str(), TestGenerationEnvironment< kExpectedCalls >::TearDown(), testing::gmock_function_mocker_test::TEST(), testing::gmock_generated_function_mockers_test::TEST(), TEST(), testing::internal::TEST(), testing::internal::TestFactoryBase::TestFactoryBase(), testing::ActionInterface< F >::~ActionInterface(), testing::internal::GTestLog::~GTestLog(), testing::NaggyMock< MockFoo >::~NaggyMock(), testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile(), and testing::StrictMock< MockClass >::~StrictMock().
#define GTEST_MUST_USE_RESULT_ |
Referenced by testing::RegisterTest().
#define GTEST_INTENTIONAL_CONST_COND_PUSH_ | ( | ) | GTEST_DISABLE_MSC_WARNINGS_PUSH_(4127) |
#define GTEST_INTENTIONAL_CONST_COND_POP_ | ( | ) | GTEST_DISABLE_MSC_WARNINGS_POP_() |
#define GTEST_HAS_SEH 0 |
#define GTEST_IS_THREADSAFE |
#define GTEST_API_ |
Referenced by testing::AddGlobalTestEnvironment(), testing::internal::CheckedDowncastToActualType(), testing::internal::CmpHelperEQ(), testing::internal::CmpHelperFloatingPointEQ(), testing::internal::TestFactoryImpl< TestClass >::CreateTest(), testing::internal::SuiteApiResolver< T >::GetTearDownCaseOrSuite(), testing::internal::GetTypeId(), GTEST_DISABLE_MSC_WARNINGS_PUSH_(), testing::internal::IgnoredValue::IgnoredValue(), testing::PrintToStringParamName::operator()(), testing::internal::PrintRawArrayTo(), testing::internal::PrintTo(), testing::internal::ThreadLocal< T >::set(), testing::Environment::TearDown(), and testing::internal::UniversalPrintArray().
#define GTEST_DEFAULT_DEATH_TEST_STYLE "fast" |
#define GTEST_NO_INLINE_ |
Referenced by GTEST_DISABLE_MSC_WARNINGS_PUSH_().
#define GTEST_HAS_CXXABI_H_ 0 |
#define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ |
Referenced by testing::internal::PrintTo().
#define GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ |
Referenced by testing::internal::PrintTo().
#define GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_ |
Referenced by testing::internal::PrintTo().
#define GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ |
Referenced by testing::internal::PrintTo().
#define GTEST_COMPILE_ASSERT_ | ( | expr, | |
msg | |||
) | static_assert(expr, #msg) |
#define GTEST_ARRAY_SIZE_ | ( | array | ) | (sizeof(array) / sizeof(array[0])) |
#define GTEST_LOG_ | ( | severity | ) |
Referenced by GTEST_DISABLE_MSC_WARNINGS_PUSH_(), testing::internal::JsonUnitTestResultPrinter::JsonUnitTestResultPrinter(), testing::UnitTest::parameterized_test_registry(), testing::internal::ParseInt32Flag(), testing::internal::JsonUnitTestResultPrinter::PrintJsonTestList(), testing::internal::ReportInvalidTestSuiteType(), testing::internal::XmlUnitTestResultPrinter::XmlUnitTestResultPrinter(), testing::internal::GTestLog::~GTestLog(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
#define GTEST_CHECK_ | ( | condition | ) |
Referenced by testing::ArrayAsVector(), testing::internal::CheckedDowncastToActualType(), testing::internal::MaxBipartiteMatchState::Compute(), testing::internal::DownCast_(), testing::internal::RangeGenerator< T, IncrementT >::End(), testing::internal::ValuesInIteratorRangeGenerator< T >::End(), testing::internal::CartesianProductGenerator< T >::End(), testing::internal::FormatEpochTimeInMillisAsIso8601(), testing::internal::Random::Generate(), testing::WithParamInterface< MyEnums >::GetParam(), testing::internal::SuiteApiResolver< T >::GetSetUpCaseOrSuite(), testing::internal::SuiteApiResolver< T >::GetTearDownCaseOrSuite(), testing::internal::GetThreadCount(), GTEST_DISABLE_MSC_WARNINGS_PUSH_(), main(), testing::internal::JsonUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::ReturnAction< R >::operator Action< F >(), testing::internal::JsonUnitTestResultPrinter::PrintJsonTestList(), testing::internal::ParameterizedTestSuiteInfo< TestSuite >::RegisterTests(), testing::internal::TEST(), TEST(), and testing::internal::GTestLog::~GTestLog().
#define GTEST_CHECK_POSIX_SUCCESS_ | ( | posix_call | ) |
Referenced by testing::internal::CheckedDowncastToActualType(), and testing::internal::TEST().
#define GTEST_ADD_REFERENCE_ | ( | T | ) | typename ::testing::internal::AddReference<T>::type |
#define GTEST_REFERENCE_TO_CONST_ | ( | T | ) | typename ::testing::internal::ConstRef<T>::type |
#define GTEST_DECLARE_STATIC_MUTEX_ | ( | mutex | ) | extern ::testing::internal::Mutex mutex |
Referenced by GTEST_DISABLE_MSC_WARNINGS_PUSH_().
#define GTEST_DEFINE_STATIC_MUTEX_ | ( | mutex | ) | ::testing::internal::Mutex mutex |
Referenced by testing::internal::GetFailureReporter().
#define GTEST_PATH_SEP_ "/" |
Referenced by testing::internal::ParseInt32Flag().
#define GTEST_HAS_ALT_PATH_SEP_ 0 |
#define GTEST_SNPRINTF_ snprintf |
#define GTEST_FLAG | ( | name | ) | FLAGS_gtest_##name |
Referenced by testing::ParseFlagsTest::CheckFlags(), testing::internal::FormatEpochTimeInMillisAsIso8601(), testing::internal::GetCurrentExecutableName(), testing::internal::GetTestTypeId(), GTEST_DISABLE_MSC_WARNINGS_PUSH_(), testing::UnitTest::listeners(), main(), testing::internal::PrettyUnitTestResultPrinter::OnTestCaseEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::JsonUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), testing::internal::TestSuiteNameIs::operator()(), testing::UnitTest::parameterized_test_registry(), testing::internal::ParseGoogleTestFlagsOnlyImpl(), testing::internal::ParseInt32Flag(), testing::PrintFlag(), testing::internal::JsonUnitTestResultPrinter::PrintJsonTestList(), testing::internal::PrintStringTo(), testing::UnitTest::Run(), testing::ParseFlagsTest::SetUp(), testing::internal::ShouldRunTestOnShard(), testing::internal::ShouldUseColor(), TEST(), and TestFailureThrowsRuntimeError().
#define GTEST_USE_OWN_FLAGFILE_FLAG_ 1 |
#define GTEST_FLAG_SAVER_ ::testing::internal::GTestFlagSaver |
#define GTEST_DECLARE_bool_ | ( | name | ) | GTEST_API_ extern bool GTEST_FLAG(name) |
Referenced by GTEST_DISABLE_MSC_WARNINGS_PUSH_().
#define GTEST_DECLARE_int32_ | ( | name | ) | GTEST_API_ extern ::testing::internal::Int32 GTEST_FLAG(name) |
Referenced by GTEST_DISABLE_MSC_WARNINGS_PUSH_().
#define GTEST_DECLARE_string_ | ( | name | ) | GTEST_API_ extern ::std::string GTEST_FLAG(name) |
Referenced by GTEST_DISABLE_MSC_WARNINGS_PUSH_().
#define GTEST_DEFINE_bool_ | ( | name, | |
default_val, | |||
doc | |||
) | GTEST_API_ bool GTEST_FLAG(name) = (default_val) |
#define GTEST_DEFINE_int32_ | ( | name, | |
default_val, | |||
doc | |||
) | GTEST_API_ ::testing::internal::Int32 GTEST_FLAG(name) = (default_val) |
#define GTEST_DEFINE_string_ | ( | name, | |
default_val, | |||
doc | |||
) | GTEST_API_ ::std::string GTEST_FLAG(name) = (default_val) |
#define GTEST_EXCLUSIVE_LOCK_REQUIRED_ | ( | locks | ) |
#define GTEST_LOCK_EXCLUDED_ | ( | locks | ) |
#define GTEST_INTERNAL_DEPRECATED | ( | message | ) |