proxygen
gtest-port.h File Reference
#include <ctype.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#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>
#include "gtest/internal/gtest-tuple.h"

Go to the source code of this file.

Classes

struct  testing::internal::CompileAssert< bool >
 
struct  testing::internal::StaticAssertTypeEqHelper< T1, T2 >
 
struct  testing::internal::StaticAssertTypeEqHelper< T, T >
 
class  testing::internal::scoped_ptr< T >
 
class  testing::internal::RE
 
class  testing::internal::GTestLog
 
class  testing::internal::Mutex
 
class  testing::internal::GTestMutexLock
 
class  testing::internal::ThreadLocal< T >
 
struct  testing::internal::bool_constant< bool_value >
 
struct  testing::internal::is_pointer< T >
 
struct  testing::internal::is_pointer< T * >
 
struct  testing::internal::IteratorTraits< Iterator >
 
struct  testing::internal::IteratorTraits< T * >
 
struct  testing::internal::IteratorTraits< const T * >
 
class  testing::internal::TypeWithSize< size >
 
class  testing::internal::TypeWithSize< 4 >
 
class  testing::internal::TypeWithSize< 8 >
 

Namespaces

 testing
 
 testing::internal
 
 testing::internal::posix
 

Macros

#define GTEST_DEV_EMAIL_   "googletestframework@@googlegroups.com"
 
#define GTEST_FLAG_PREFIX_   "gtest_"
 
#define GTEST_FLAG_PREFIX_DASH_   "gtest-"
 
#define GTEST_FLAG_PREFIX_UPPER_   "GTEST_"
 
#define GTEST_NAME_   "Google Test"
 
#define GTEST_PROJECT_URL_   "https://github.com/google/googletest/"
 
#define GTEST_INIT_GOOGLE_TEST_NAME_   "testing::InitGoogleTest"
 
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
 
#define GTEST_DISABLE_MSC_WARNINGS_POP_()
 
#define GTEST_LANG_CXX11   0
 
#define GTEST_HAS_POSIX_RE   (!GTEST_OS_WINDOWS)
 
#define GTEST_USES_POSIX_RE   1
 
#define GTEST_HAS_EXCEPTIONS   0
 
#define GTEST_HAS_STD_STRING   1
 
#define GTEST_HAS_GLOBAL_STRING   0
 
#define GTEST_HAS_STD_WSTRING   (!(GTEST_OS_LINUX_ANDROID || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS))
 
#define GTEST_HAS_GLOBAL_WSTRING   (GTEST_HAS_STD_WSTRING && GTEST_HAS_GLOBAL_STRING)
 
#define GTEST_HAS_RTTI   1
 
#define GTEST_HAS_PTHREAD
 
#define GTEST_HAS_TR1_TUPLE   1
 
#define GTEST_USE_OWN_TR1_TUPLE   1
 
#define GTEST_TUPLE_NAMESPACE_   ::std::tr1
 
#define GTEST_HAS_CLONE   0
 
#define GTEST_HAS_STREAM_REDIRECTION   1
 
#define GTEST_HAS_PARAM_TEST   1
 
#define GTEST_HAS_COMBINE   1
 
#define GTEST_WIDE_STRING_USES_UTF16_   (GTEST_OS_WINDOWS || GTEST_OS_CYGWIN || GTEST_OS_SYMBIAN || GTEST_OS_AIX)
 
#define GTEST_AMBIGUOUS_ELSE_BLOCKER_   switch (0) case 0: default:
 
#define GTEST_ATTRIBUTE_UNUSED_
 
#define GTEST_DISALLOW_ASSIGN_(type)   void operator=(type const &)
 
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
 
#define GTEST_MUST_USE_RESULT_
 
#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_
 
#define GTEST_NO_INLINE_
 
#define GTEST_HAS_CXXABI_H_   0
 
#define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_
 
#define GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
 
#define GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_
 
#define GTEST_COMPILE_ASSERT_(expr, msg)
 
#define GTEST_ARRAY_SIZE_(array)   (sizeof(array) / sizeof(array[0]))
 
#define GTEST_LOG_(severity)
 
#define GTEST_CHECK_(condition)
 
#define GTEST_CHECK_POSIX_SUCCESS_(posix_call)
 
#define GTEST_DECLARE_STATIC_MUTEX_(mutex)   extern ::testing::internal::Mutex mutex
 
#define GTEST_DEFINE_STATIC_MUTEX_(mutex)   ::testing::internal::Mutex mutex
 
#define GTEST_CAN_COMPARE_NULL   1
 
#define GTEST_PATH_SEP_   "/"
 
#define GTEST_HAS_ALT_PATH_SEP_   0
 
#define GTEST_SNPRINTF_   snprintf
 
#define GTEST_FLAG(name)   FLAGS_gtest_##name
 
#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)
 
#define GTEST_DECLARE_int32_(name)   GTEST_API_ extern ::testing::internal::Int32 GTEST_FLAG(name)
 
#define GTEST_DECLARE_string_(name)   GTEST_API_ extern ::std::string GTEST_FLAG(name)
 
#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)
 

Typedefs

typedef ::std::string testing::internal::string
 
typedef ::std::wstring testing::internal::wstring
 
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

enum  testing::internal::GTestLogSeverity {
  testing::internal::GTEST_INFO, testing::internal::GTEST_WARNING, testing::internal::GTEST_ERROR, testing::internal::GTEST_FATAL,
  testing::internal::GTEST_INFO, testing::internal::GTEST_WARNING, testing::internal::GTEST_ERROR, testing::internal::GTEST_FATAL,
  testing::internal::GTEST_INFO, testing::internal::GTEST_WARNING, testing::internal::GTEST_ERROR, testing::internal::GTEST_FATAL
}
 

Functions

bool testing::internal::IsTrue (bool condition)
 
::std::string testing::internal::FormatFileLocation (const char *file, int line)
 
::std::string testing::internal::FormatCompilerIndependentFileLocation (const char *file, int line)
 
void testing::internal::LogToStderr ()
 
void testing::internal::FlushInfoLog ()
 
template<typename T >
const Ttesting::internal::move (const T &t)
 
template<typename To >
To testing::internal::ImplicitCast_ (To x)
 
template<typename To , typename From >
To testing::internal::DownCast_ (From *f)
 
template<class Derived , class Base >
Derivedtesting::internal::CheckedDowncastToActualType (Base *base)
 
void testing::internal::CaptureStdout ()
 
std::string testing::internal::GetCapturedStdout ()
 
void testing::internal::CaptureStderr ()
 
std::string testing::internal::GetCapturedStderr ()
 
std::string testing::internal::TempDir ()
 
size_t testing::internal::GetFileSize (FILE *file)
 
std::string testing::internal::ReadEntireFile (FILE *file)
 
const ::std::vector< testing::internal::string > & testing::internal::GetArgvs ()
 
size_t testing::internal::GetThreadCount ()
 
bool testing::internal::IsAlpha (char ch)
 
bool testing::internal::IsAlNum (char ch)
 
bool testing::internal::IsDigit (char ch)
 
bool testing::internal::IsLower (char ch)
 
bool testing::internal::IsSpace (char ch)
 
bool testing::internal::IsUpper (char ch)
 
bool testing::internal::IsXDigit (char ch)
 
bool testing::internal::IsXDigit (wchar_t ch)
 
char testing::internal::ToLower (char ch)
 
char testing::internal::ToUpper (char ch)
 
std::string testing::internal::StripTrailingSpaces (std::string str)
 
int testing::internal::posix::FileNo (FILE *file)
 
int testing::internal::posix::IsATTY (int fd)
 
int testing::internal::posix::Stat (const char *path, StatStruct *buf)
 
int testing::internal::posix::StrCaseCmp (const char *s1, const char *s2)
 
char * testing::internal::posix::StrDup (const char *src)
 
int testing::internal::posix::RmDir (const char *dir)
 
bool testing::internal::posix::IsDir (const StatStruct &st)
 
const char * testing::internal::posix::StrNCpy (char *dest, const char *src, size_t n)
 
int testing::internal::posix::ChDir (const char *dir)
 
FILEtesting::internal::posix::FOpen (const char *path, const char *mode)
 
FILEtesting::internal::posix::FReopen (const char *path, const char *mode, FILE *stream)
 
FILEtesting::internal::posix::FDOpen (int fd, const char *mode)
 
int testing::internal::posix::FClose (FILE *fp)
 
int testing::internal::posix::Read (int fd, void *buf, unsigned int count)
 
int testing::internal::posix::Write (int fd, const void *buf, unsigned int count)
 
int testing::internal::posix::Close (int fd)
 
const char * testing::internal::posix::StrError (int errnum)
 
const char * testing::internal::posix::GetEnv (const char *name)
 
void testing::internal::posix::Abort ()
 
bool testing::internal::ParseInt32 (const Message &src_text, const char *str, Int32 *value)
 
bool testing::internal::BoolFromGTestEnv (const char *flag, bool default_val)
 
Int32 testing::internal::Int32FromGTestEnv (const char *flag, Int32 default_val)
 
std::string testing::internal::StringFromGTestEnv (const char *flag, const char *default_val)
 

Variables

const BiggestInt testing::internal::kMaxBiggestInt
 

Macro Definition Documentation

#define GTEST_AMBIGUOUS_ELSE_BLOCKER_   switch (0) case 0: default:

Definition at line 842 of file gtest-port.h.

#define GTEST_API_

Definition at line 934 of file gtest-port.h.

Referenced by testing::AddGlobalTestEnvironment(), testing::AssertionResult::AppendMessage(), testing::internal::CheckedDowncastToActualType(), testing::TestInfo::ClearTestResult(), testing::internal::CmpHelperEQ(), testing::internal::CmpHelperFloatingPointEQ(), testing::internal::CodeLocation::CodeLocation(), testing::CardinalityInterface::ConservativeUpperBound(), testing::internal::ElementsAreMatcherImpl< Container >::count(), testing::internal::TestFactoryImpl< TestClass >::CreateTest(), testing::TestEventListeners::default_xml_generator(), testing::Cardinality::DescribeTo(), testing::ExpectationSet::end(), testing::TestPartResult::fatally_failed(), testing::internal::TypedExpectation< F >::GetActionForArguments(), testing::internal::GetTypeId(), testing::internal::GetUnitTestImpl(), testing::UnitTest::impl(), testing::TestResult::increment_death_test_count(), testing::internal::LogElementMatcherPairVec(), testing::internal::BoundSecondMatcher< Tuple2Matcher, Second >::Impl< T >::MatchAndExplain(), testing::Matcher< const FirstType & >::Matcher(), testing::Matcher< const internal::string & >::Matcher(), testing::Matcher< internal::string >::Matcher(), testing::internal::MatcherBindSecond(), testing::internal::FloatingPoint< RawType >::Max(), testing::EmptyTestEventListener::OnTestProgramEnd(), testing::internal::ConstCharPtr::operator bool(), testing::internal::TestPropertyKeyIs::operator()(), testing::internal::AssertHelper::operator=(), testing::internal::OsStackTraceGetter::OsStackTraceGetter(), testing::internal::ParseGoogleMockStringFlag(), testing::internal::UniversalPrinter< T >::Print(), testing::internal::PrintRawArrayTo(), testing::internal::PrintTo(), testing::internal::GoogleTestFailureReporter::ReportFailure(), testing::Sequence::Sequence(), testing::internal::UnitTestImpl::set_catch_exceptions(), testing::TestProperty::SetValue(), testing::internal::ShouldRunTestCase(), testing::internal::MatchMatrix::SpaceIndex(), testing::internal::TestResultAccessor::test_part_results(), testing::internal::MaxBipartiteMatchState::TryAugment(), testing::internal::UniversalPrintArray(), testing::internal::GTestFlagSaver::~GTestFlagSaver(), and testing::TestPartResultReporterInterface::~TestPartResultReporterInterface().

#define GTEST_ARRAY_SIZE_ (   array)    (sizeof(array) / sizeof(array[0]))
#define GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
#define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_
#define GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_
static bool dummy2 GTEST_ATTRIBUTE_UNUSED_
Value:
=
StaticAssertTypeEq<const int, const int>()

Definition at line 864 of file gtest-port.h.

#define GTEST_CAN_COMPARE_NULL   1

Definition at line 2191 of file gtest-port.h.

#define GTEST_CHECK_ (   condition)
Value:
; \
GTEST_LOG_(FATAL) << "Condition " #condition " failed. "
bool IsTrue(bool condition)
Definition: gtest.cc:4986
#define GTEST_LOG_(severity)
Definition: gtest-port.h:1271
if(FOLLY_USE_SYMBOLIZER) add_library(folly_exception_tracer_base ExceptionTracer.cpp StackTrace.cpp) apply_folly_compile_options_to_target(folly_exception_tracer_base) target_link_libraries(folly_exception_tracer_base PUBLIC folly) add_library(folly_exception_tracer ExceptionStackTraceLib.cpp ExceptionTracerLib.cpp) apply_folly_compile_options_to_target(folly_exception_tracer) target_link_libraries(folly_exception_tracer PUBLIC folly_exception_tracer_base) add_library(folly_exception_counter ExceptionCounterLib.cpp) apply_folly_compile_options_to_target(folly_exception_counter) target_link_libraries(folly_exception_counter PUBLIC folly_exception_tracer) install(FILES ExceptionAbi.h ExceptionCounterLib.h ExceptionTracer.h ExceptionTracerLib.h StackTrace.h DESTINATION $
Definition: CMakeLists.txt:1

Definition at line 1295 of file gtest-port.h.

Referenced by testing::internal::UnitTestImpl::AddTestInfo(), testing::internal::AssertHelper::AssertHelperData::AssertHelperData(), testing::internal::CheckedDowncastToActualType(), testing::internal::CallableTraits< ResType(*)(ArgType)>::CheckIsValid(), testing::internal::CodeLocation::CodeLocation(), testing::internal::MaxBipartiteMatchState::Compute(), testing::internal::DownCast_(), testing::internal::FloatingEqMatcher< FloatType >::FloatingEqMatcher(), testing::internal::Random::Generate(), testing::GetDefaultFilter(), testing::internal::GetNextRandomSeed(), testing::GetReservedAttributesForElement(), testing::internal::GetThreadCount(), testing::internal::GetUnitTestImpl(), main(), testing::internal::NoDefaultContructor::NoDefaultContructor(), testing::internal::XmlUnitTestResultPrinter::OutputXmlAttribute(), testing::internal::ReturnAction< R >::Impl< ByMoveWrapper< R_ >, F >::Perform(), testing::internal::PortableLocaltime(), testing::internal::UnitTestImpl::set_catch_exceptions(), testing::internal::ShuffleRange(), testing::internal::TEST(), TEST(), testing::internal::TestResultAccessor::test_part_results(), testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes(), testing::internal::To::To(), testing::internal::GTestFlagSaver::~GTestFlagSaver(), and testing::internal::GTestLog::~GTestLog().

#define GTEST_CHECK_POSIX_SUCCESS_ (   posix_call)
Value:
if (const int gtest_error = (posix_call)) \
GTEST_LOG_(FATAL) << #posix_call << "failed with error " \
<< gtest_error
#define GTEST_LOG_(severity)
Definition: gtest-port.h:1271

Definition at line 1308 of file gtest-port.h.

Referenced by testing::internal::CheckedDowncastToActualType(), testing::internal::NoDefaultContructor::NoDefaultContructor(), and testing::internal::TEST().

#define GTEST_DECLARE_bool_ (   name)    GTEST_API_ extern bool GTEST_FLAG(name)

Definition at line 2515 of file gtest-port.h.

#define GTEST_DECLARE_int32_ (   name)    GTEST_API_ extern ::testing::internal::Int32 GTEST_FLAG(name)

Definition at line 2516 of file gtest-port.h.

#define GTEST_DECLARE_STATIC_MUTEX_ (   mutex)    extern ::testing::internal::Mutex mutex

Definition at line 2144 of file gtest-port.h.

#define GTEST_DECLARE_string_ (   name)    GTEST_API_ extern ::std::string GTEST_FLAG(name)

Definition at line 2518 of file gtest-port.h.

#define GTEST_DEFINE_bool_ (   name,
  default_val,
  doc 
)    GTEST_API_ bool GTEST_FLAG(name) = (default_val)

Definition at line 2522 of file gtest-port.h.

#define GTEST_DEFINE_int32_ (   name,
  default_val,
  doc 
)    GTEST_API_ ::testing::internal::Int32 GTEST_FLAG(name) = (default_val)

Definition at line 2524 of file gtest-port.h.

#define GTEST_DEFINE_STATIC_MUTEX_ (   mutex)    ::testing::internal::Mutex mutex

Definition at line 2147 of file gtest-port.h.

#define GTEST_DEFINE_string_ (   name,
  default_val,
  doc 
)    GTEST_API_ ::std::string GTEST_FLAG(name) = (default_val)

Definition at line 2526 of file gtest-port.h.

#define GTEST_DEV_EMAIL_   "googletestframework@@googlegroups.com"

Definition at line 285 of file gtest-port.h.

#define GTEST_DISALLOW_ASSIGN_ (   type)    void operator=(type const &)

Definition at line 869 of file gtest-port.h.

Referenced by testing::internal::UnorderedElementsAreMatcherImpl< Container >::AnalyzeElements(), testing::gmock_matchers_test::AStruct::AStruct(), testing::internal::ElementsAreMatcherImpl< Container >::count(), testing::internal::MatcherCastImpl< T, Matcher< U > >::Impl::DescribeNegationTo(), testing::internal::ComparisonBase< D, Rhs, Op >::Impl< Lhs >::DescribeNegationTo(), testing::internal::RefMatcher< T & >::Impl< Super >::DescribeNegationTo(), testing::internal::HasSubstrMatcher< StringType >::DescribeNegationTo(), testing::internal::StartsWithMatcher< StringType >::DescribeNegationTo(), testing::internal::EndsWithMatcher< StringType >::DescribeNegationTo(), testing::internal::MatchesRegexMatcher::DescribeNegationTo(), testing::internal::NotMatcherImpl< T >::DescribeNegationTo(), testing::internal::TrulyMatcher< Predicate >::DescribeNegationTo(), testing::internal::KeyMatcherImpl< PairType >::DescribeNegationTo(), testing::internal::StrEqualityMatcher< StringType >::DescribeToHelper(), testing::internal::UnorderedElementsAreMatcherImplBase::Elements(), testing::internal::PairMatcherImpl< PairType >::ExplainSuccess(), testing::internal::WhenDynamicCastToMatcherBase< To & >::GetCastTypeDescription(), testing::internal::FloatingEqMatcher< FloatType >::Impl< T >::HasMaxAbsError(), testing::internal::NativeArray< Element >::InitRef(), testing::PolymorphicMatcher< Impl >::MonomorphicImpl< T >::MatchAndExplain(), testing::internal::BothOfMatcherImpl< T >::MatchAndExplain(), testing::internal::EitherOfMatcherImpl< T >::MatchAndExplain(), testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::MatchAndExplain(), testing::internal::ResultOfMatcher< Callable >::Impl< T >::MatchAndExplain(), testing::internal::SizeIsMatcher< SizeMatcher >::Impl< Container >::MatchAndExplain(), testing::internal::BeginEndDistanceIsMatcher< DistanceMatcher >::Impl< Container >::MatchAndExplain(), testing::internal::ContainerEqMatcher< Container >::MatchAndExplain(), testing::internal::WhenSortedByMatcher< Comparator, ContainerMatcher >::Impl< LhsContainer >::MatchAndExplain(), testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >::Impl< LhsContainer >::MatchAndExplain(), testing::internal::ContainsMatcherImpl< Container >::MatchAndExplain(), testing::internal::EachMatcherImpl< Container >::MatchAndExplain(), testing::internal::BoundSecondMatcher< Tuple2Matcher, Second >::Impl< T >::MatchAndExplain(), testing::internal::FieldMatcher< Class, FieldType >::MatchAndExplainImpl(), testing::internal::PropertyMatcher< Class, PropertyType >::MatchAndExplainImpl(), testing::internal::QuantifierMatcherImpl< Container >::MatchAndExplainImpl(), testing::internal::NoDefaultContructor::NoDefaultContructor(), testing::internal::ArgsMatcher< InnerMatcher, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::operator Matcher< ArgsTuple >(), testing::internal::ContainsMatcher< M >::operator Matcher< Container >(), testing::internal::EachMatcher< M >::operator Matcher< Container >(), testing::internal::UnorderedElementsAreMatcher< MatcherTuple >::operator Matcher< Container >(), testing::internal::ElementsAreMatcher< MatcherTuple >::operator Matcher< Container >(), testing::internal::UnorderedElementsAreArrayMatcher< T >::operator Matcher< Container >(), testing::internal::ElementsAreArrayMatcher< T >::operator Matcher< Container >(), testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< FloatType & >(), testing::internal::KeyMatcher< M >::operator Matcher< PairType >(), testing::internal::PairMatcher< FirstMatcher, SecondMatcher >::operator Matcher< PairType >(), testing::internal::NotMatcher< InnerMatcher >::operator Matcher< T >(), testing::internal::BothOfMatcher< Matcher1, Matcher2 >::operator Matcher< T >(), testing::internal::EitherOfMatcher< Matcher1, Matcher2 >::operator Matcher< T >(), testing::internal::MatcherAsPredicate< M >::operator()(), testing::internal::PredicateFormatterFromMatcher< M >::operator()(), testing::PolymorphicAction< Impl >::MonomorphicImpl< F >::Perform(), testing::internal::ActionAdaptor< F1, F2 >::Perform(), testing::internal::ReturnAction< R >::Impl< ByMoveWrapper< R_ >, F >::Perform(), testing::internal::ReturnRefAction< T >::Impl< F >::Perform(), testing::internal::ReturnRefOfCopyAction< T >::Impl< F >::Perform(), testing::internal::AssignAction< T1, T2 >::Perform(), testing::internal::SetErrnoAndReturnAction< T >::Perform(), testing::internal::SetArgumentPointeeAction< N, A, kIsProto >::Perform(), testing::internal::SetArgumentPointeeAction< N, Proto, true >::Perform(), testing::internal::InvokeWithoutArgsAction< FunctionImpl >::Perform(), testing::internal::InvokeMethodWithoutArgsAction< Class, MethodPtr >::Perform(), testing::internal::DoBothAction< Action1, Action2 >::Impl< F >::Perform(), testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::PrintIndices(), testing::internal::MockSpec< R(A1, A2, A3, A4, A5, A6, A7, A8, A9) >::SetMatchers(), testing::internal::TEST(), and testing::internal::MaxBipartiteMatchState::TryAugment().

#define GTEST_DISALLOW_COPY_AND_ASSIGN_ (   type)
Value:
type(type const &);\
PskType type
#define GTEST_DISALLOW_ASSIGN_(type)
Definition: gtest-port.h:869

Definition at line 874 of file gtest-port.h.

Referenced by testing::internal::ActionResultHolder< T >::ActionResultHolder(), testing::internal::ActionResultHolder< void >::ActionResultHolder(), testing::gmock_matchers_test::AllArgsHelper::AllArgsHelper(), testing::internal::AssertHelper::AssertHelperData::AssertHelperData(), testing::gmock_matchers_test::Base::Base(), testing::internal::CheckedDowncastToActualType(), testing::TestInfo::ClearTestResult(), testing::TestEventListeners::default_xml_generator(), testing::internal::XmlUnitTestResultPrinter::EscapeXmlText(), testing::internal::TypedExpectation< F >::GetActionForArguments(), SequenceTestingListener::GetEventDescription(), testing::internal::GetThreadCount(), testing::internal::HasNewFatalFailureHelper::has_new_fatal_failure(), testing::UnitTest::impl(), testing::TestResult::increment_death_test_count(), Mock::Mock(), testing::gmock_generated_function_mockers_test::MockB::MockB(), MockFoo::MockFoo(), testing::gmock_generated_function_mockers_test::MockFoo::MockFoo(), testing::gmock_generated_function_mockers_test::MockOverloadedOnArgNumber::MockOverloadedOnArgNumber(), testing::gmock_generated_function_mockers_test::MockOverloadedOnConstness::MockOverloadedOnConstness(), testing::gmock_generated_function_mockers_test::MockStack< T >::MockStack(), testing::internal::NoDefaultContructor::NoDefaultContructor(), testing::gmock_matchers_test::NotCopyable::operator>=(), testing::internal::OsStackTraceGetter::OsStackTraceGetter(), testing::internal::ReturnAction< R >::Impl< R_, F >::Perform(), testing::internal::FunctionMockerBase< R(A1, A2)>::PrintTriedExpectationsLocked(), testing::DefaultValue< T >::FixedValueProducer::Produce(), testing::DefaultValue< T >::FactoryValueProducer::Produce(), testing::internal::Random::Reseed(), testing::Sequence::Sequence(), testing::internal::UnitTestImpl::set_catch_exceptions(), testing::internal::TestEventRepeater::set_forwarding_enabled(), testing::gmock_matchers_test::Uncopyable::set_value(), testing::internal::ExpectationTester::SetCallCount(), testing::Test::Setup(), testing::TestCase::ShouldRunTest(), testing::gmock_generated_function_mockers_test::TEST(), TEST(), testing::internal::TEST(), testing::internal::TestResultAccessor::test_part_results(), testing::internal::TestFactoryBase::TestFactoryBase(), testing::TestPartResultArray::TestPartResultArray(), testing::ActionInterface< F2 >::~ActionInterface(), testing::internal::GTestLog::~GTestLog(), testing::internal::OsStackTraceGetterInterface::~OsStackTraceGetterInterface(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().

#define GTEST_FLAG (   name)    FLAGS_gtest_##name

Definition at line 2504 of file gtest-port.h.

Referenced by testing::UnitTest::AddTestPartResult(), testing::InitGoogleTestTest::CheckFlags(), testing::internal::UnitTestImpl::ConfigureXmlOutput(), testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(), testing::internal::UnitTestOptions::FilterMatchesTest(), testing::internal::UnitTestImpl::FilterTests(), testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), testing::internal::UnitTestOptions::GetOutputFormat(), testing::internal::GTestFlagSaver::GTestFlagSaver(), main(), testing::internal::PrettyUnitTestResultPrinter::OnTestCaseEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::ParseGoogleTestFlag(), testing::internal::ParseGoogleTestFlagsOnlyImpl(), testing::internal::PortableLocaltime(), testing::PrintFlag(), testing::UnitTest::Run(), testing::internal::UnitTestImpl::RunAllTests(), testing::InitGoogleTestTest::SetUp(), testing::internal::ShouldRunTestCase(), testing::internal::ShouldUseColor(), testing::internal::TearDownEnvironment(), TEST(), testing::gmock_matchers_test::TEST_P(), TestFailureThrowsRuntimeError(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), testing::internal::GTestFlagSaver::~GTestFlagSaver(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().

#define GTEST_FLAG_PREFIX_DASH_   "gtest-"

Definition at line 287 of file gtest-port.h.

Referenced by testing::internal::HasGoogleTestFlagPrefix().

#define GTEST_FLAG_PREFIX_UPPER_   "GTEST_"

Definition at line 288 of file gtest-port.h.

#define GTEST_FLAG_SAVER_   ::testing::internal::GTestFlagSaver

Definition at line 2512 of file gtest-port.h.

Referenced by testing::TestPartNonfatallyFailed().

#define GTEST_HAS_ALT_PATH_SEP_   0

Definition at line 2240 of file gtest-port.h.

#define GTEST_HAS_CLONE   0

Definition at line 767 of file gtest-port.h.

#define GTEST_HAS_COMBINE   1

Definition at line 817 of file gtest-port.h.

#define GTEST_HAS_CXXABI_H_   0

Definition at line 948 of file gtest-port.h.

#define GTEST_HAS_EXCEPTIONS   0

Definition at line 491 of file gtest-port.h.

#define GTEST_HAS_GLOBAL_STRING   0

Definition at line 508 of file gtest-port.h.

#define GTEST_HAS_GLOBAL_WSTRING   (GTEST_HAS_STD_WSTRING && GTEST_HAS_GLOBAL_STRING)

Definition at line 529 of file gtest-port.h.

#define GTEST_HAS_PARAM_TEST   1

Definition at line 800 of file gtest-port.h.

#define GTEST_HAS_POSIX_RE   (!GTEST_OS_WINDOWS)

Definition at line 422 of file gtest-port.h.

#define GTEST_HAS_PTHREAD
Value:
(GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_HPUX \
|| GTEST_OS_QNX || GTEST_OS_FREEBSD || GTEST_OS_NACL)

Definition at line 603 of file gtest-port.h.

#define GTEST_HAS_RTTI   1

Definition at line 584 of file gtest-port.h.

#define GTEST_HAS_SEH   0

Definition at line 913 of file gtest-port.h.

#define GTEST_HAS_STD_STRING   1

Definition at line 498 of file gtest-port.h.

#define GTEST_HAS_STD_WSTRING   (!(GTEST_OS_LINUX_ANDROID || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS))

Definition at line 521 of file gtest-port.h.

#define GTEST_HAS_STREAM_REDIRECTION   1

Definition at line 781 of file gtest-port.h.

#define GTEST_HAS_TR1_TUPLE   1

Definition at line 634 of file gtest-port.h.

#define GTEST_INIT_GOOGLE_TEST_NAME_   "testing::InitGoogleTest"

Definition at line 294 of file gtest-port.h.

#define GTEST_IS_THREADSAFE
Value:
(GTEST_HAS_MUTEX_AND_THREAD_LOCAL_ \
|| (GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT) \
#define GTEST_HAS_PTHREAD
Definition: gtest-port.h:603

Definition at line 916 of file gtest-port.h.

#define GTEST_LANG_CXX11   0

Definition at line 330 of file gtest-port.h.

#define GTEST_MUST_USE_RESULT_

Definition at line 886 of file gtest-port.h.

Referenced by testing::TestEventListeners::default_xml_generator().

#define GTEST_NO_INLINE_

Definition at line 941 of file gtest-port.h.

Referenced by testing::internal::UnitTestImpl::ad_hoc_test_result().

#define GTEST_PATH_SEP_   "/"

Definition at line 2239 of file gtest-port.h.

#define GTEST_PROJECT_URL_   "https://github.com/google/googletest/"

Definition at line 290 of file gtest-port.h.

#define GTEST_SNPRINTF_   snprintf

Definition at line 2429 of file gtest-port.h.

#define GTEST_TUPLE_NAMESPACE_   ::std::tr1

Definition at line 685 of file gtest-port.h.

#define GTEST_USE_OWN_FLAGFILE_FLAG_   1

Definition at line 2508 of file gtest-port.h.

#define GTEST_USE_OWN_TR1_TUPLE   1

Definition at line 668 of file gtest-port.h.

#define GTEST_USES_POSIX_RE   1

Definition at line 437 of file gtest-port.h.

Referenced by testing::internal::TEST(), and testing::internal::To::To().

#define GTEST_WIDE_STRING_USES_UTF16_   (GTEST_OS_WINDOWS || GTEST_OS_CYGWIN || GTEST_OS_SYMBIAN || GTEST_OS_AIX)

Definition at line 821 of file gtest-port.h.