Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
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 <string>
#include <algorithm>
#include <iostream>
#include <sstream>
#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"
Include dependency graph for gtest-port.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  testing::internal::CompileAssert< bool >
 
struct  testing::internal::StaticAssertTypeEqHelper< T, T >
 
struct  testing::internal::IsSame< T, U >
 
struct  testing::internal::IsSame< T, T >
 
class  testing::internal::scoped_ptr< T >
 
class  testing::internal::RE
 
class  testing::internal::GTestLog
 
struct  testing::internal::AddReference< T >
 
struct  testing::internal::AddReference< T & >
 
struct  testing::internal::ConstRef< T >
 
struct  testing::internal::ConstRef< T & >
 
struct  testing::internal::RvalueRef< T >
 
class  testing::internal::Mutex
 
class  testing::internal::GTestMutexLock
 
class  testing::internal::ThreadLocal< T >
 
struct  testing::internal::bool_constant< bool_value >
 
struct  testing::internal::is_same< T, U >
 
struct  testing::internal::is_same< T, T >
 
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

namespace  testing
 
namespace  testing::internal
 
namespace  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_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_CXX11_EQUALS_DELETE_
 
#define GTEST_ATTRIBUTE_PRINTF_(string_index, first_to_check)
 
#define GTEST_DISALLOW_ASSIGN_(type)
 
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
 
#define GTEST_MUST_USE_RESULT_
 
#define GTEST_INTENTIONAL_CONST_COND_PUSH_()
 
#define GTEST_INTENTIONAL_CONST_COND_POP_()
 
#define GTEST_HAS_SEH   0
 
#define GTEST_IS_THREADSAFE
 
#define GTEST_API_
 
#define GTEST_DEFAULT_DEATH_TEST_STYLE   "fast"
 
#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)
 
#define GTEST_LOG_(severity)
 
#define GTEST_CHECK_(condition)
 
#define GTEST_CHECK_POSIX_SUCCESS_(posix_call)
 
#define GTEST_ADD_REFERENCE_(T)
 
#define GTEST_REFERENCE_TO_CONST_(T)
 
#define GTEST_DECLARE_STATIC_MUTEX_(mutex)
 
#define GTEST_DEFINE_STATIC_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)
 
#define GTEST_USE_OWN_FLAGFILE_FLAG_   1
 
#define GTEST_FLAG_SAVER_   ::testing::internal::GTestFlagSaver
 
#define GTEST_DECLARE_bool_(name)
 
#define GTEST_DECLARE_int32_(name)
 
#define GTEST_DECLARE_string_(name)
 
#define GTEST_DEFINE_bool_(name, default_val, doc)
 
#define GTEST_DEFINE_int32_(name, default_val, doc)
 
#define GTEST_DEFINE_string_(name, default_val, doc)
 
#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 }
 

Functions

GTEST_API_ bool testing::internal::IsTrue (bool condition)
 
GTEST_API_::std::string testing::internal::FormatFileLocation (const char *file, int line)
 
GTEST_API_::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 T >
 testing::internal::GTEST_ADD_REFERENCE_ (T) forward(GTEST_ADD_REFERENCE_(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 >
Derived * testing::internal::CheckedDowncastToActualType (Base *base)
 
GTEST_API_ void testing::internal::CaptureStdout ()
 
GTEST_API_ std::string testing::internal::GetCapturedStdout ()
 
GTEST_API_ void testing::internal::CaptureStderr ()
 
GTEST_API_ std::string testing::internal::GetCapturedStderr ()
 
GTEST_API_ size_t testing::internal::GetFileSize (FILE *file)
 
GTEST_API_ std::string testing::internal::ReadEntireFile (FILE *file)
 
GTEST_API_ std::vector< std::string > testing::internal::GetArgvs ()
 
GTEST_API_ 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)
 
FILE * testing::internal::posix::FOpen (const char *path, const char *mode)
 
FILE * testing::internal::posix::FReopen (const char *path, const char *mode, FILE *stream)
 
FILE * testing::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)
 
GTEST_API_ Int32 testing::internal::Int32FromGTestEnv (const char *flag, Int32 default_val)
 
std::string testing::internal::OutputFlagAlsoCheckEnvVar ()
 
const char * testing::internal::StringFromGTestEnv (const char *flag, const char *default_val)
 

Variables

const BiggestInt testing::internal::kMaxBiggestInt
 

Macro Definition Documentation

◆ GTEST_ADD_REFERENCE_

#define GTEST_ADD_REFERENCE_ ( T)
Value:
typename ::testing::internal::AddReference<T>::type

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

1395#define GTEST_ADD_REFERENCE_(T) \
1396 typename ::testing::internal::AddReference<T>::type

◆ GTEST_AMBIGUOUS_ELSE_BLOCKER_

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

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

◆ GTEST_API_

#define GTEST_API_

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

◆ GTEST_ARRAY_SIZE_

#define GTEST_ARRAY_SIZE_ ( array)
Value:
(sizeof(array) / sizeof(array[0]))

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

◆ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_

#define GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_

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

◆ GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_

#define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_

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

◆ GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_

#define GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_

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

◆ GTEST_ATTRIBUTE_PRINTF_

#define GTEST_ATTRIBUTE_PRINTF_ ( string_index,
first_to_check )

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

◆ GTEST_ATTRIBUTE_UNUSED_

static bool dummy2 GTEST_ATTRIBUTE_UNUSED_
Value:
=
StaticAssertTypeEq<const int, const int>()

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

◆ GTEST_CAN_COMPARE_NULL

#define GTEST_CAN_COMPARE_NULL   1

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

◆ GTEST_CHECK_

#define GTEST_CHECK_ ( condition)
Value:
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
if (::testing::internal::IsTrue(condition)) \
; \
else \
GTEST_LOG_(FATAL) << "Condition " #condition " failed. "
GTEST_API_ bool IsTrue(bool condition)
Definition gtest.cc:5404

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

1367# define GTEST_CHECK_(condition) \
1368 GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
1369 if (::testing::internal::IsTrue(condition)) \
1370 ; \
1371 else \
1372 GTEST_LOG_(FATAL) << "Condition " #condition " failed. "

◆ GTEST_CHECK_POSIX_SUCCESS_

#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

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

1380#define GTEST_CHECK_POSIX_SUCCESS_(posix_call) \
1381 if (const int gtest_error = (posix_call)) \
1382 GTEST_LOG_(FATAL) << #posix_call << "failed with error " \
1383 << gtest_error

◆ GTEST_COMPILE_ASSERT_

#define GTEST_COMPILE_ASSERT_ ( expr,
msg )
Value:
typedef ::testing::internal::CompileAssert<(static_cast<bool>(expr))> \
msg[static_cast<bool>(expr) ? 1 : -1] GTEST_ATTRIBUTE_UNUSED_
#define GTEST_ATTRIBUTE_UNUSED_
Definition gtest-port.h:883

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

1088# define GTEST_COMPILE_ASSERT_(expr, msg) \
1089 typedef ::testing::internal::CompileAssert<(static_cast<bool>(expr))> \
1090 msg[static_cast<bool>(expr) ? 1 : -1] GTEST_ATTRIBUTE_UNUSED_

◆ GTEST_CXX11_EQUALS_DELETE_

#define GTEST_CXX11_EQUALS_DELETE_

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

◆ GTEST_DECLARE_bool_

#define GTEST_DECLARE_bool_ ( name)
Value:
std::string name
#define GTEST_FLAG(name)
#define GTEST_API_
Definition gtest-port.h:984

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

◆ GTEST_DECLARE_int32_

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

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

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

◆ GTEST_DECLARE_STATIC_MUTEX_

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

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

2267# define GTEST_DECLARE_STATIC_MUTEX_(mutex) \
2268 extern ::testing::internal::Mutex mutex

◆ GTEST_DECLARE_string_

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

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

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

◆ GTEST_DEFAULT_DEATH_TEST_STYLE

#define GTEST_DEFAULT_DEATH_TEST_STYLE   "fast"

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

◆ GTEST_DEFINE_bool_

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

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

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

◆ GTEST_DEFINE_int32_

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

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

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

◆ GTEST_DEFINE_STATIC_MUTEX_

#define GTEST_DEFINE_STATIC_MUTEX_ ( mutex)
Value:

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

◆ GTEST_DEFINE_string_

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

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

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

◆ GTEST_DEV_EMAIL_

#define GTEST_DEV_EMAIL_   "googletestframework@@googlegroups.com"

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

◆ GTEST_DISABLE_MSC_WARNINGS_POP_

#define GTEST_DISABLE_MSC_WARNINGS_POP_ ( )

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

◆ GTEST_DISABLE_MSC_WARNINGS_PUSH_

#define GTEST_DISABLE_MSC_WARNINGS_PUSH_ ( warnings)

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

◆ GTEST_DISALLOW_ASSIGN_

#define GTEST_DISALLOW_ASSIGN_ ( type)
Value:
void operator=(type const &) GTEST_CXX11_EQUALS_DELETE_
#define GTEST_CXX11_EQUALS_DELETE_
Definition gtest-port.h:889

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

912#define GTEST_DISALLOW_ASSIGN_(type) \
913 void operator=(type const &) GTEST_CXX11_EQUALS_DELETE_

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_

#define GTEST_DISALLOW_COPY_AND_ASSIGN_ ( type)
Value:
GTEST_DISALLOW_ASSIGN_(type)
yh_object_type type
Definition yubihsm.h:672

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

917#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type) \
918 type(type const &) GTEST_CXX11_EQUALS_DELETE_; \
919 GTEST_DISALLOW_ASSIGN_(type)

◆ GTEST_EXCLUSIVE_LOCK_REQUIRED_

#define GTEST_EXCLUSIVE_LOCK_REQUIRED_ ( locks)

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

◆ GTEST_FLAG

#define GTEST_FLAG ( name)
Value:
FLAGS_gtest_##name

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

◆ GTEST_FLAG_PREFIX_

#define GTEST_FLAG_PREFIX_   "gtest_"

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

◆ GTEST_FLAG_PREFIX_DASH_

#define GTEST_FLAG_PREFIX_DASH_   "gtest-"

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

◆ GTEST_FLAG_PREFIX_UPPER_

#define GTEST_FLAG_PREFIX_UPPER_   "GTEST_"

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

◆ GTEST_FLAG_SAVER_

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

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

◆ GTEST_HAS_ALT_PATH_SEP_

#define GTEST_HAS_ALT_PATH_SEP_   0

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

◆ GTEST_HAS_CLONE

#define GTEST_HAS_CLONE   0

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

◆ GTEST_HAS_COMBINE

#define GTEST_HAS_COMBINE   1

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

◆ GTEST_HAS_CXXABI_H_

#define GTEST_HAS_CXXABI_H_   0

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

◆ GTEST_HAS_EXCEPTIONS

#define GTEST_HAS_EXCEPTIONS   0

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

◆ GTEST_HAS_GLOBAL_STRING

#define GTEST_HAS_GLOBAL_STRING   0

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

◆ GTEST_HAS_GLOBAL_WSTRING

#define GTEST_HAS_GLOBAL_WSTRING    (GTEST_HAS_STD_WSTRING && GTEST_HAS_GLOBAL_STRING)

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

549# define GTEST_HAS_GLOBAL_WSTRING \
550 (GTEST_HAS_STD_WSTRING && GTEST_HAS_GLOBAL_STRING)

◆ GTEST_HAS_POSIX_RE

#define GTEST_HAS_POSIX_RE   (!GTEST_OS_WINDOWS)

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

◆ GTEST_HAS_PTHREAD

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

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

623#define GTEST_HAS_PTHREAD \
624 (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_HPUX || GTEST_OS_QNX || \
625 GTEST_OS_FREEBSD || GTEST_OS_NACL || GTEST_OS_NETBSD || GTEST_OS_FUCHSIA)

◆ GTEST_HAS_RTTI

#define GTEST_HAS_RTTI   1

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

◆ GTEST_HAS_SEH

#define GTEST_HAS_SEH   0

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

◆ GTEST_HAS_STD_STRING

#define GTEST_HAS_STD_STRING   1

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

◆ GTEST_HAS_STD_WSTRING

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

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

541# define GTEST_HAS_STD_WSTRING \
542 (!(GTEST_OS_LINUX_ANDROID || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS))

◆ GTEST_HAS_STREAM_REDIRECTION

#define GTEST_HAS_STREAM_REDIRECTION   1

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

◆ GTEST_HAS_TR1_TUPLE

#define GTEST_HAS_TR1_TUPLE   1

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

◆ GTEST_INIT_GOOGLE_TEST_NAME_

#define GTEST_INIT_GOOGLE_TEST_NAME_   "testing::InitGoogleTest"

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

◆ GTEST_INTENTIONAL_CONST_COND_POP_

#define GTEST_INTENTIONAL_CONST_COND_POP_ ( )
Value:
#define GTEST_DISABLE_MSC_WARNINGS_POP_()
Definition gtest-port.h:325

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

942# define GTEST_INTENTIONAL_CONST_COND_POP_() \
943 GTEST_DISABLE_MSC_WARNINGS_POP_()

◆ GTEST_INTENTIONAL_CONST_COND_PUSH_

#define GTEST_INTENTIONAL_CONST_COND_PUSH_ ( )
Value:
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
Definition gtest-port.h:324

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

940# define GTEST_INTENTIONAL_CONST_COND_PUSH_() \
941 GTEST_DISABLE_MSC_WARNINGS_PUSH_(4127)

◆ GTEST_IS_THREADSAFE

#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:623

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

959#define GTEST_IS_THREADSAFE \
960 (GTEST_HAS_MUTEX_AND_THREAD_LOCAL_ \
961 || (GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT) \
962 || GTEST_HAS_PTHREAD)

◆ GTEST_LANG_CXX11

#define GTEST_LANG_CXX11   0

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

◆ GTEST_LOCK_EXCLUDED_

#define GTEST_LOCK_EXCLUDED_ ( locks)

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

◆ GTEST_LOG_

#define GTEST_LOG_ ( severity)
Value:
::testing::internal::GTestLog(::testing::internal::GTEST_##severity, \
__FILE__, __LINE__).GetStream()
::std::ostream & GetStream()

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

1343# define GTEST_LOG_(severity) \
1344 ::testing::internal::GTestLog(::testing::internal::GTEST_##severity, \
1345 __FILE__, __LINE__).GetStream()

◆ GTEST_MUST_USE_RESULT_

#define GTEST_MUST_USE_RESULT_

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

◆ GTEST_NAME_

#define GTEST_NAME_   "Google Test"

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

◆ GTEST_NO_INLINE_

#define GTEST_NO_INLINE_

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

◆ GTEST_PATH_SEP_

#define GTEST_PATH_SEP_   "/"

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

◆ GTEST_PROJECT_URL_

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

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

◆ GTEST_REFERENCE_TO_CONST_

#define GTEST_REFERENCE_TO_CONST_ ( T)
Value:
typename ::testing::internal::ConstRef<T>::type

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

1415#define GTEST_REFERENCE_TO_CONST_(T) \
1416 typename ::testing::internal::ConstRef<T>::type

◆ GTEST_SNPRINTF_

#define GTEST_SNPRINTF_   snprintf

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

◆ GTEST_TUPLE_NAMESPACE_

#define GTEST_TUPLE_NAMESPACE_   ::std::tr1

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

◆ GTEST_USE_OWN_FLAGFILE_FLAG_

#define GTEST_USE_OWN_FLAGFILE_FLAG_   1

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

◆ GTEST_USE_OWN_TR1_TUPLE

#define GTEST_USE_OWN_TR1_TUPLE   1

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

◆ GTEST_USES_POSIX_RE

#define GTEST_USES_POSIX_RE   1

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

◆ GTEST_WIDE_STRING_USES_UTF16_

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

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

840#define GTEST_WIDE_STRING_USES_UTF16_ \
841 (GTEST_OS_WINDOWS || GTEST_OS_CYGWIN || GTEST_OS_SYMBIAN || GTEST_OS_AIX)