MADNESS  version 0.9
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
testing::internal Namespace Reference

Namespaces

 posix
 

Classes

struct  AddReference
 
struct  AddReference< T & >
 
class  AssertHelper
 
struct  bool_constant
 
struct  CompileAssert
 
struct  CompileAssertTypesEqual
 
struct  CompileAssertTypesEqual< T, T >
 
struct  ConstCharPtr
 
class  DefaultGlobalTestPartResultReporter
 
class  DefaultPerThreadTestPartResultReporter
 
struct  EnableIf
 
struct  EnableIf< true >
 
class  EqHelper
 
class  EqHelper< true >
 
class  FilePath
 
class  FloatingPoint
 
class  FormatForComparison
 
class  FormatForComparison< ToPrint[N], OtherOperand >
 
class  GTestFlagSaver
 
class  GTestLog
 
class  GTestMutexLock
 
class  HasNewFatalFailureHelper
 
class  ImplicitlyConvertible
 
struct  is_pointer
 
struct  is_pointer< T * >
 
struct  IsAProtocolMessage
 
struct  IteratorTraits
 
struct  IteratorTraits< const T * >
 
struct  IteratorTraits< T * >
 
class  linked_ptr
 
class  linked_ptr_internal
 
class  Mutex
 
class  NativeArray
 
class  OsStackTraceGetter
 
class  OsStackTraceGetterInterface
 
class  Random
 
class  RE
 
struct  RemoveConst
 
struct  RemoveConst< const T >
 
struct  RemoveConst< const T[N]>
 
struct  RemoveReference
 
struct  RemoveReference< T & >
 
class  scoped_ptr
 
class  ScopedTrace
 
class  SingleFailureChecker
 
struct  StaticAssertTypeEqHelper
 
struct  StaticAssertTypeEqHelper< T, T >
 
class  String
 
class  TestFactoryBase
 
class  TestFactoryImpl
 
class  TestPropertyKeyIs
 
class  TestResultAccessor
 
class  ThreadLocal
 
struct  TraceInfo
 
class  TypeIdHelper
 
class  TypeWithSize
 
class  TypeWithSize< 4 >
 
class  TypeWithSize< 8 >
 
class  UnitTestImpl
 
class  UnitTestOptions
 
class  UniversalPrinter
 
class  UniversalPrinter< T & >
 
class  UniversalPrinter< T[N]>
 
class  UniversalTersePrinter
 
class  UniversalTersePrinter< char * >
 
class  UniversalTersePrinter< const char * >
 
class  UniversalTersePrinter< T & >
 
class  UniversalTersePrinter< T[N]>
 
class  UniversalTersePrinter< wchar_t * >
 

Typedefs

typedef FloatingPoint< float > Float
 
typedef FloatingPoint< double > Double
 
typedef const void * TypeId
 
typedef void(* SetUpTestCaseFunc )()
 
typedef void(* TearDownTestCaseFunc )()
 
typedef int IsContainer
 
typedef char IsNotContainer
 
typedef ::std::string string
 
typedef ::std::wstring wstring
 
typedef GTestMutexLock MutexLock
 
typedef bool_constant< false > false_type
 
typedef bool_constant< true > true_type
 
typedef long long BiggestInt
 
typedef TypeWithSize< 4 >::Int Int32
 
typedef TypeWithSize< 4 >::UInt UInt32
 
typedef TypeWithSize< 8 >::Int Int64
 
typedef TypeWithSize< 8 >::UInt UInt64
 
typedef TypeWithSize< 8 >::Int TimeInMillis
 

Enumerations

enum  RelationToSource { kReference, kCopy }
 
enum  GTestLogSeverity { GTEST_INFO, GTEST_WARNING, GTEST_ERROR, GTEST_FATAL }
 
enum  CharFormat { kAsIs, kHexEscape, kSpecialEscape }
 
enum  GTestColor { COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW }
 

Functions

template<typename T >
std::string StreamableToString (const T &streamable)
 
template<typename T >
void UniversalPrint (const T &value,::std::ostream *os)
 
template<typename C >
void DefaultPrintTo (IsContainer, false_type, const C &container,::std::ostream *os)
 
template<typename T >
void DefaultPrintTo (IsNotContainer, true_type, T *p,::std::ostream *os)
 
template<typename T >
void DefaultPrintTo (IsNotContainer, false_type, const T &value,::std::ostream *os)
 
template<typename T >
void PrintTo (const T &value,::std::ostream *os)
 
GTEST_API_ void PrintTo (unsigned char c,::std::ostream *os)
 
GTEST_API_ void PrintTo (signed char c,::std::ostream *os)
 
void PrintTo (char c,::std::ostream *os)
 
void PrintTo (bool x,::std::ostream *os)
 
GTEST_API_ void PrintTo (wchar_t wc,::std::ostream *os)
 
GTEST_API_ void PrintTo (const char *s,::std::ostream *os)
 
void PrintTo (char *s,::std::ostream *os)
 
void PrintTo (const signed char *s,::std::ostream *os)
 
void PrintTo (signed char *s,::std::ostream *os)
 
void PrintTo (const unsigned char *s,::std::ostream *os)
 
void PrintTo (unsigned char *s,::std::ostream *os)
 
GTEST_API_ void PrintTo (const wchar_t *s,::std::ostream *os)
 
void PrintTo (wchar_t *s,::std::ostream *os)
 
template<typename T >
void PrintRawArrayTo (const T a[], size_t count,::std::ostream *os)
 
GTEST_API_ void PrintStringTo (const ::std::string &s,::std::ostream *os)
 
void PrintTo (const ::std::string &s,::std::ostream *os)
 
template<typename T1 , typename T2 >
void PrintTo (const ::std::pair< T1, T2 > &value,::std::ostream *os)
 
template<typename T >
void UniversalPrintArray (const T *begin, size_t len,::std::ostream *os)
 
GTEST_API_ void UniversalPrintArray (const char *begin, size_t len,::std::ostream *os)
 
GTEST_API_ void UniversalPrintArray (const wchar_t *begin, size_t len,::std::ostream *os)
 
template<typename T >
void UniversalTersePrint (const T &value,::std::ostream *os)
 
class UnitTestImplGetUnitTestImpl ()
 
void ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message)
 
 GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ (char)
 
 GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ (wchar_t)
 
 GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ (char,::std::string)
 
template<typename T1 , typename T2 >
std::string FormatForComparisonFailureMessage (const T1 &value, const T2 &)
 
template<typename T1 , typename T2 >
AssertionResult CmpHelperEQ (const char *expected_expression, const char *actual_expression, const T1 &expected, const T2 &actual)
 
GTEST_API_ AssertionResult CmpHelperEQ (const char *expected_expression, const char *actual_expression, BiggestInt expected, BiggestInt actual)
 
 GTEST_IMPL_CMP_HELPER_ (NE,!=)
 
 GTEST_IMPL_CMP_HELPER_ (LE,<=)
 
 GTEST_IMPL_CMP_HELPER_ (LT,<)
 
 GTEST_IMPL_CMP_HELPER_ (GE, >=)
 
 GTEST_IMPL_CMP_HELPER_ (GT, >)
 
GTEST_API_ AssertionResult CmpHelperSTREQ (const char *expected_expression, const char *actual_expression, const char *expected, const char *actual)
 
GTEST_API_ AssertionResult CmpHelperSTRCASEEQ (const char *expected_expression, const char *actual_expression, const char *expected, const char *actual)
 
GTEST_API_ AssertionResult CmpHelperSTRNE (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
GTEST_API_ AssertionResult CmpHelperSTRCASENE (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
GTEST_API_ AssertionResult CmpHelperSTREQ (const char *expected_expression, const char *actual_expression, const wchar_t *expected, const wchar_t *actual)
 
GTEST_API_ AssertionResult CmpHelperSTRNE (const char *s1_expression, const char *s2_expression, const wchar_t *s1, const wchar_t *s2)
 
template<typename RawType >
AssertionResult CmpHelperFloatingPointEQ (const char *expected_expression, const char *actual_expression, RawType expected, RawType actual)
 
GTEST_API_ AssertionResult DoubleNearPredFormat (const char *expr1, const char *expr2, const char *abs_error_expr, double val1, double val2, double abs_error)
 
 GTEST_DECLARE_string_ (internal_run_death_test)
 
char IsNullLiteralHelper (Secret *p)
 
char(& IsNullLiteralHelper (...))[2]
 
GTEST_API_ std::string AppendUserMessage (const std::string &gtest_msg, const Message &user_msg)
 
GTEST_API_ AssertionResult EqFailure (const char *expected_expression, const char *actual_expression, const std::string &expected_value, const std::string &actual_value, bool ignoring_case)
 
GTEST_API_ std::string GetBoolAssertionFailureMessage (const AssertionResult &assertion_result, const char *expression_text, const char *actual_predicate_value, const char *expected_predicate_value)
 
template<typename T >
TypeId GetTypeId ()
 
GTEST_API_ TypeId GetTestTypeId ()
 
GTEST_API_ TestInfoMakeAndRegisterTestInfo (const char *test_case_name, const char *name, const char *type_param, const char *value_param, TypeId fixture_class_id, SetUpTestCaseFunc set_up_tc, TearDownTestCaseFunc tear_down_tc, TestFactoryBase *factory)
 
GTEST_API_ bool SkipPrefix (const char *prefix, const char **pstr)
 
GTEST_API_ std::string GetCurrentOsStackTraceExceptTop (UnitTest *unit_test, int skip_count)
 
GTEST_API_ bool AlwaysTrue ()
 
bool AlwaysFalse ()
 
template<class C >
IsContainer IsContainerTest (int, typename C::iterator *=NULL, typename C::const_iterator *=NULL)
 
template<class C >
IsNotContainer IsContainerTest (long)
 
template<typename T , typename U >
bool ArrayEq (const T *lhs, size_t size, const U *rhs)
 
template<typename T , typename U >
bool ArrayEq (const T &lhs, const U &rhs)
 
template<typename T , typename U , size_t N>
bool ArrayEq (const T(&lhs)[N], const U(&rhs)[N])
 
template<typename Iter , typename Element >
Iter ArrayAwareFind (Iter begin, Iter end, const Element &elem)
 
template<typename T , typename U >
void CopyArray (const T *from, size_t size, U *to)
 
template<typename T , typename U >
void CopyArray (const T &from, U *to)
 
template<typename T , typename U , size_t N>
void CopyArray (const T(&from)[N], U(*to)[N])
 
GTEST_API_ GTEST_DECLARE_STATIC_MUTEX_ (g_linked_ptr_mutex)
 
template<typename T >
bool operator== (T *ptr, const linked_ptr< T > &x)
 
template<typename T >
bool operator!= (T *ptr, const linked_ptr< T > &x)
 
template<typename T >
linked_ptr< T > make_linked_ptr (T *ptr)
 
GTEST_API_ bool IsTrue (bool condition)
 
GTEST_API_::std::string FormatFileLocation (const char *file, int line)
 
GTEST_API_::std::string FormatCompilerIndependentFileLocation (const char *file, int line)
 
void LogToStderr ()
 
void FlushInfoLog ()
 
template<typename To >
To ImplicitCast_ (To x)
 
template<typename To , typename From >
To DownCast_ (From *f)
 
template<class Derived , class Base >
Derived * CheckedDowncastToActualType (Base *base)
 
GTEST_API_ void CaptureStdout ()
 
GTEST_API_ std::string GetCapturedStdout ()
 
GTEST_API_ void CaptureStderr ()
 
GTEST_API_ std::string GetCapturedStderr ()
 
GTEST_API_ size_t GetThreadCount ()
 
bool IsAlpha (char ch)
 
bool IsAlNum (char ch)
 
bool IsDigit (char ch)
 
bool IsLower (char ch)
 
bool IsSpace (char ch)
 
bool IsUpper (char ch)
 
bool IsXDigit (char ch)
 
bool IsXDigit (wchar_t ch)
 
char ToLower (char ch)
 
char ToUpper (char ch)
 
bool ParseInt32 (const Message &src_text, const char *str, Int32 *value)
 
bool BoolFromGTestEnv (const char *flag, bool default_val)
 
GTEST_API_ Int32 Int32FromGTestEnv (const char *flag, Int32 default_val)
 
const char * StringFromGTestEnv (const char *flag, const char *default_val)
 
GTEST_API_ std::string StringStreamToString (::std::stringstream *stream)
 
template<typename T >
std::string GetTypeName ()
 
 GTEST_DEFINE_string_ (internal_run_death_test,"","Indicates the file, line number, temporal index of ""the single death test to run, and a file descriptor to ""which a success code may be sent, all separated by ""the '|' characters. This flag is specified if and only if the current ""process is a sub-process launched for running a thread-safe ""death test. FOR INTERNAL USE ONLY.")
 
GTEST_API_ TimeInMillis GetTimeInMillis ()
 
GTEST_API_ bool ShouldUseColor (bool stdout_is_tty)
 
GTEST_API_ std::string FormatTimeInMillisAsSeconds (TimeInMillis ms)
 
GTEST_API_ std::string FormatEpochTimeInMillisAsIso8601 (TimeInMillis ms)
 
GTEST_API_ bool ParseInt32Flag (const char *str, const char *flag, Int32 *value)
 
int GetRandomSeedFromFlag (Int32 random_seed_flag)
 
int GetNextRandomSeed (int seed)
 
GTEST_API_ std::string CodePointToUtf8 (UInt32 code_point)
 
GTEST_API_ std::string WideStringToUtf8 (const wchar_t *str, int num_chars)
 
void WriteToShardStatusFileIfNeeded ()
 
GTEST_API_ bool ShouldShard (const char *total_shards_str, const char *shard_index_str, bool in_subprocess_for_death_test)
 
GTEST_API_ Int32 Int32FromEnvOrDie (const char *env_var, Int32 default_val)
 
GTEST_API_ bool ShouldRunTestOnShard (int total_shards, int shard_index, int test_id)
 
template<class Container , typename Predicate >
int CountIf (const Container &c, Predicate predicate)
 
template<class Container , typename Functor >
void ForEach (const Container &c, Functor functor)
 
template<typename E >
GetElementOr (const std::vector< E > &v, int i, E default_value)
 
template<typename E >
void ShuffleRange (internal::Random *random, int begin, int end, std::vector< E > *v)
 
template<typename E >
void Shuffle (internal::Random *random, std::vector< E > *v)
 
GTEST_API_ FilePath GetCurrentExecutableName ()
 
GTEST_API_ void ParseGoogleTestFlagsOnly (int *argc, char **argv)
 
GTEST_API_ void ParseGoogleTestFlagsOnly (int *argc, wchar_t **argv)
 
bool IsPrintableAscii (wchar_t c)
 
template<typename UnsignedChar , typename Char >
void PrintCharAndCodeTo (Char c, ostream *os)
 
void PrintTo (wchar_t wc, ostream *os)
 
void UniversalPrintArray (const char *begin, size_t len, ostream *os)
 
void UniversalPrintArray (const wchar_t *begin, size_t len, ostream *os)
 
void PrintTo (const char *s, ostream *os)
 
void PrintTo (const wchar_t *s, ostream *os)
 
void PrintStringTo (const ::std::string &s, ostream *os)
 
GTEST_API_ GTEST_DEFINE_STATIC_MUTEX_ (g_linked_ptr_mutex)
 
AssertionResult HasOneFailure (const char *, const char *, const char *, const TestPartResultArray &results, TestPartResult::Type type, const string &substr)
 
template<typename RawType >
AssertionResult FloatingPointLE (const char *expr1, const char *expr2, RawType val1, RawType val2)
 
UInt32 ChopLowBits (UInt32 *bits, int n)
 
bool IsUtf16SurrogatePair (wchar_t first, wchar_t second)
 
UInt32 CreateCodePointFromUtf16SurrogatePair (wchar_t first, wchar_t second)
 
template<class T , typename Result >
Result HandleSehExceptionsInMethodIfSupported (T *object, Result(T::*method)(), const char *location)
 
template<class T , typename Result >
Result HandleExceptionsInMethodIfSupported (T *object, Result(T::*method)(), const char *location)
 
const char * GetAnsiColorCode (GTestColor color)
 
void ColoredPrintf (GTestColor color, const char *fmt,...)
 
void PrintFullTestCommentIfPresent (const TestInfo &test_info)
 
const char * ParseFlagValue (const char *str, const char *flag, bool def_optional)
 
bool ParseBoolFlag (const char *str, const char *flag, bool *value)
 
bool ParseStringFlag (const char *str, const char *flag, std::string *value)
 
template<typename CharType >
void ParseGoogleTestFlagsOnlyImpl (int *argc, CharType **argv)
 
template<typename CharType >
void InitGoogleTestImpl (int *argc, CharType **argv)
 

Variables

const char kDeathTestStyleFlag [] = "death_test_style"
 
const char kDeathTestUseFork [] = "death_test_use_fork"
 
const char kInternalRunDeathTestFlag [] = "internal_run_death_test"
 
GTEST_API_ int g_init_gtest_count = 0
 
GTEST_API_ const char kStackTraceMarker [] = "\nStack trace:\n"
 
class GTEST_API_
testing::internal::ScopedTrace 
GTEST_ATTRIBUTE_UNUSED_
 
const BiggestInt kMaxBiggestInt
 
const char kPathSeparator = '/'
 
const char kPathSeparatorString [] = "/"
 
const char kCurrentDirectoryString [] = "./"
 
GTEST_API_ const TypeId kTestTypeIdInGoogleTest = GetTestTypeId()
 
const char kAlsoRunDisabledTestsFlag [] = "also_run_disabled_tests"
 
const char kBreakOnFailureFlag [] = "break_on_failure"
 
const char kCatchExceptionsFlag [] = "catch_exceptions"
 
const char kColorFlag [] = "color"
 
const char kFilterFlag [] = "filter"
 
const char kListTestsFlag [] = "list_tests"
 
const char kOutputFlag [] = "output"
 
const char kPrintTimeFlag [] = "print_time"
 
const char kRandomSeedFlag [] = "random_seed"
 
const char kRepeatFlag [] = "repeat"
 
const char kShuffleFlag [] = "shuffle"
 
const char kStackTraceDepthFlag [] = "stack_trace_depth"
 
const char kStreamResultToFlag [] = "stream_result_to"
 
const char kThrowOnFailureFlag [] = "throw_on_failure"
 
const int kMaxRandomSeed = 99999
 
GTEST_API_ bool g_help_flag = false
 
const int kStdOutFileno = STDOUT_FILENO
 
const int kStdErrFileno = STDERR_FILENO
 
const char kUnknownFile [] = "unknown file"
 
std::string g_executable_path
 
const UInt32 kMaxCodePoint1 = (static_cast<UInt32>(1) << 7) - 1
 
const UInt32 kMaxCodePoint2 = (static_cast<UInt32>(1) << (5 + 6)) - 1
 
const UInt32 kMaxCodePoint3 = (static_cast<UInt32>(1) << (4 + 2*6)) - 1
 
const UInt32 kMaxCodePoint4 = (static_cast<UInt32>(1) << (3 + 3*6)) - 1
 

Typedef Documentation

typedef long long testing::internal::BiggestInt
typedef void(* testing::internal::SetUpTestCaseFunc)()
typedef ::std::string testing::internal::string
typedef void(* testing::internal::TearDownTestCaseFunc)()
typedef const void* testing::internal::TypeId
typedef ::std::wstring testing::internal::wstring

Enumeration Type Documentation

Enumerator
kAsIs 
kHexEscape 
kSpecialEscape 
Enumerator
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 
Enumerator
GTEST_INFO 
GTEST_WARNING 
GTEST_ERROR 
GTEST_FATAL 
Enumerator
kReference 
kCopy 

Function Documentation

bool testing::internal::AlwaysFalse ( )
inline

References AlwaysTrue().

bool testing::internal::AlwaysTrue ( )

References IsTrue().

Referenced by AlwaysFalse().

std::string testing::internal::AppendUserMessage ( const std::string &  gtest_msg,
const Message &  user_msg 
)
template<typename Iter , typename Element >
Iter testing::internal::ArrayAwareFind ( Iter  begin,
Iter  end,
const Element &  elem 
)

References ArrayEq().

template<typename T , typename U >
bool testing::internal::ArrayEq ( const T *  lhs,
size_t  size,
const U *  rhs 
)
template<typename T , typename U >
bool testing::internal::ArrayEq ( const T &  lhs,
const U &  rhs 
)
inline
template<typename T , typename U , size_t N>
bool testing::internal::ArrayEq ( const T(&)  lhs[N],
const U(&)  rhs[N] 
)
inline

References ArrayEq().

bool testing::internal::BoolFromGTestEnv ( const char *  flag,
bool  default_val 
)
GTEST_API_ void testing::internal::CaptureStderr ( )
GTEST_API_ void testing::internal::CaptureStdout ( )
template<class Derived , class Base >
Derived* testing::internal::CheckedDowncastToActualType ( Base *  base)

References GTEST_CHECK_.

UInt32 testing::internal::ChopLowBits ( UInt32 *  bits,
int  n 
)
inline

Referenced by CodePointToUtf8().

template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperEQ ( const char *  expected_expression,
const char *  actual_expression,
const T1 &  expected,
const T2 &  actual 
)
AssertionResult testing::internal::CmpHelperEQ ( const char *  expected_expression,
const char *  actual_expression,
BiggestInt  expected,
BiggestInt  actual 
)
template<typename RawType >
AssertionResult testing::internal::CmpHelperFloatingPointEQ ( const char *  expected_expression,
const char *  actual_expression,
RawType  expected,
RawType  actual 
)
AssertionResult testing::internal::CmpHelperSTRCASEEQ ( const char *  expected_expression,
const char *  actual_expression,
const char *  expected,
const char *  actual 
)
AssertionResult testing::internal::CmpHelperSTRCASENE ( const char *  s1_expression,
const char *  s2_expression,
const char *  s1,
const char *  s2 
)
AssertionResult testing::internal::CmpHelperSTREQ ( const char *  expected_expression,
const char *  actual_expression,
const char *  expected,
const char *  actual 
)
AssertionResult testing::internal::CmpHelperSTREQ ( const char *  expected_expression,
const char *  actual_expression,
const wchar_t *  expected,
const wchar_t *  actual 
)
AssertionResult testing::internal::CmpHelperSTRNE ( const char *  s1_expression,
const char *  s2_expression,
const char *  s1,
const char *  s2 
)
AssertionResult testing::internal::CmpHelperSTRNE ( const char *  s1_expression,
const char *  s2_expression,
const wchar_t *  s1,
const wchar_t *  s2 
)
std::string testing::internal::CodePointToUtf8 ( UInt32  code_point)
void testing::internal::ColoredPrintf ( GTestColor  color,
const char *  fmt,
  ... 
)
template<typename T , typename U >
void testing::internal::CopyArray ( const T *  from,
size_t  size,
U *  to 
)

Referenced by CopyArray().

template<typename T , typename U >
void testing::internal::CopyArray ( const T &  from,
U *  to 
)
inline
template<typename T , typename U , size_t N>
void testing::internal::CopyArray ( const T(&)  from[N],
U(*)  to[N] 
)
inline

References CopyArray().

template<class Container , typename Predicate >
int testing::internal::CountIf ( const Container &  c,
Predicate  predicate 
)
inline
UInt32 testing::internal::CreateCodePointFromUtf16SurrogatePair ( wchar_t  first,
wchar_t  second 
)
inline

Referenced by WideStringToUtf8().

template<typename C >
void testing::internal::DefaultPrintTo ( IsContainer  ,
false_type  ,
const C container,
::std::ostream *  os 
)

References UniversalPrint().

Referenced by PrintTo().

template<typename T >
void testing::internal::DefaultPrintTo ( IsNotContainer  ,
true_type  ,
T *  p,
::std::ostream *  os 
)

References IsTrue().

template<typename T >
void testing::internal::DefaultPrintTo ( IsNotContainer  ,
false_type  ,
const T &  value,
::std::ostream *  os 
)
AssertionResult testing::internal::DoubleNearPredFormat ( const char *  expr1,
const char *  expr2,
const char *  abs_error_expr,
double  val1,
double  val2,
double  abs_error 
)
template<typename To , typename From >
To testing::internal::DownCast_ ( From *  f)
inline

References madness::f, and GTEST_CHECK_.

AssertionResult testing::internal::EqFailure ( const char *  expected_expression,
const char *  actual_expression,
const std::string &  expected_value,
const std::string &  actual_value,
bool  ignoring_case 
)
template<typename RawType >
AssertionResult testing::internal::FloatingPointLE ( const char *  expr1,
const char *  expr2,
RawType  val1,
RawType  val2 
)
void testing::internal::FlushInfoLog ( )
inline
template<class Container , typename Functor >
void testing::internal::ForEach ( const Container &  c,
Functor  functor 
)
GTEST_API_::std::string testing::internal::FormatCompilerIndependentFileLocation ( const char *  file,
int  line 
)

References StreamableToString().

std::string testing::internal::FormatEpochTimeInMillisAsIso8601 ( TimeInMillis  ms)

References StreamableToString().

GTEST_API_::std::string testing::internal::FormatFileLocation ( const char *  file,
int  line 
)
template<typename T1 , typename T2 >
std::string testing::internal::FormatForComparisonFailureMessage ( const T1 &  value,
const T2 &   
)

Referenced by CmpHelperEQ().

std::string testing::internal::FormatTimeInMillisAsSeconds ( TimeInMillis  ms)
const char* testing::internal::GetAnsiColorCode ( GTestColor  color)

References COLOR_GREEN, COLOR_RED, and COLOR_YELLOW.

Referenced by ColoredPrintf().

std::string testing::internal::GetBoolAssertionFailureMessage ( const AssertionResult &  assertion_result,
const char *  expression_text,
const char *  actual_predicate_value,
const char *  expected_predicate_value 
)
GTEST_API_ std::string testing::internal::GetCapturedStderr ( )
GTEST_API_ std::string testing::internal::GetCapturedStdout ( )
FilePath testing::internal::GetCurrentExecutableName ( )
std::string testing::internal::GetCurrentOsStackTraceExceptTop ( UnitTest *  unit_test,
int  skip_count 
)
template<typename E >
E testing::internal::GetElementOr ( const std::vector< E > &  v,
int  i,
default_value 
)
inline
int testing::internal::GetNextRandomSeed ( int  seed)
inline
int testing::internal::GetRandomSeedFromFlag ( Int32  random_seed_flag)
inline
TypeId testing::internal::GetTestTypeId ( )
size_t testing::internal::GetThreadCount ( )
TimeInMillis testing::internal::GetTimeInMillis ( )
template<typename T >
TypeId testing::internal::GetTypeId ( )
template<typename T >
std::string testing::internal::GetTypeName ( )

References std::tr1::T().

UnitTestImpl * testing::internal::GetUnitTestImpl ( )
inline
GTEST_API_ testing::internal::GTEST_DECLARE_STATIC_MUTEX_ ( g_linked_ptr_mutex  )
testing::internal::GTEST_DECLARE_string_ ( internal_run_death_test  )
GTEST_API_ testing::internal::GTEST_DEFINE_STATIC_MUTEX_ ( g_linked_ptr_mutex  )
testing::internal::GTEST_DEFINE_string_ ( internal_run_death_test  ,
""  ,
"Indicates the  file,
line  number,
temporal index of""the single death test to  run,
and a file descriptor to""which a success code may be  sent,
all separated by""the '|'characters.This flag is specified if and only if the current""process is a sub-process launched for running a thread-safe""death test.FOR INTERNAL USE ONLY."   
)
testing::internal::GTEST_IMPL_CMP_HELPER_ ( NE  ,
 
)
testing::internal::GTEST_IMPL_CMP_HELPER_ ( LE  ,
<=   
)
testing::internal::GTEST_IMPL_CMP_HELPER_ ( LT  )
testing::internal::GTEST_IMPL_CMP_HELPER_ ( GE  ,
>=   
)
testing::internal::GTEST_IMPL_CMP_HELPER_ ( GT  )
testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ ( char  )
testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ ( wchar_t  )
testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ ( char  ,
::std::string   
)
template<class T , typename Result >
Result testing::internal::HandleExceptionsInMethodIfSupported ( T *  object,
Result(T::*)()  method,
const char *  location 
)
template<class T , typename Result >
Result testing::internal::HandleSehExceptionsInMethodIfSupported ( T *  object,
Result(T::*)()  method,
const char *  location 
)
AssertionResult testing::internal::HasOneFailure ( const char *  ,
const char *  ,
const char *  ,
const TestPartResultArray &  results,
TestPartResult::Type  type,
const string &  substr 
)
template<typename To >
To testing::internal::ImplicitCast_ ( To  x)
inline
template<typename CharType >
void testing::internal::InitGoogleTestImpl ( int *  argc,
CharType **  argv 
)
Int32 testing::internal::Int32FromEnvOrDie ( const char *  env_var,
Int32  default_val 
)
Int32 testing::internal::Int32FromGTestEnv ( const char *  flag,
Int32  default_val 
)
bool testing::internal::IsAlNum ( char  ch)
inline
bool testing::internal::IsAlpha ( char  ch)
inline
template<class C >
IsContainer testing::internal::IsContainerTest ( int  ,
typename C::iterator *  = NULL,
typename C::const_iterator *  = NULL 
)
template<class C >
IsNotContainer testing::internal::IsContainerTest ( long  )
bool testing::internal::IsDigit ( char  ch)
inline
bool testing::internal::IsLower ( char  ch)
inline
char testing::internal::IsNullLiteralHelper ( Secret *  p)
char(& testing::internal::IsNullLiteralHelper (   ...) )[2]
bool testing::internal::IsPrintableAscii ( wchar_t  c)
inline
bool testing::internal::IsSpace ( char  ch)
inline
bool testing::internal::IsTrue ( bool  condition)
bool testing::internal::IsUpper ( char  ch)
inline
bool testing::internal::IsUtf16SurrogatePair ( wchar_t  first,
wchar_t  second 
)
inline

Referenced by WideStringToUtf8().

bool testing::internal::IsXDigit ( char  ch)
inline
bool testing::internal::IsXDigit ( wchar_t  ch)
inline
void testing::internal::LogToStderr ( )
inline
template<typename T >
linked_ptr<T> testing::internal::make_linked_ptr ( T *  ptr)
TestInfo * testing::internal::MakeAndRegisterTestInfo ( const char *  test_case_name,
const char *  name,
const char *  type_param,
const char *  value_param,
TypeId  fixture_class_id,
SetUpTestCaseFunc  set_up_tc,
TearDownTestCaseFunc  tear_down_tc,
TestFactoryBase *  factory 
)
template<typename T >
bool testing::internal::operator!= ( T *  ptr,
const linked_ptr< T > &  x 
)
inline
template<typename T >
bool testing::internal::operator== ( T *  ptr,
const linked_ptr< T > &  x 
)
inline
bool testing::internal::ParseBoolFlag ( const char *  str,
const char *  flag,
bool *  value 
)
const char* testing::internal::ParseFlagValue ( const char *  str,
const char *  flag,
bool  def_optional 
)
void testing::internal::ParseGoogleTestFlagsOnly ( int *  argc,
char **  argv 
)
void testing::internal::ParseGoogleTestFlagsOnly ( int *  argc,
wchar_t **  argv 
)
template<typename CharType >
void testing::internal::ParseGoogleTestFlagsOnlyImpl ( int *  argc,
CharType **  argv 
)
bool testing::internal::ParseInt32 ( const Message &  src_text,
const char *  str,
Int32 *  value 
)
bool testing::internal::ParseInt32Flag ( const char *  str,
const char *  flag,
Int32 *  value 
)
bool testing::internal::ParseStringFlag ( const char *  str,
const char *  flag,
std::string *  value 
)
template<typename UnsignedChar , typename Char >
void testing::internal::PrintCharAndCodeTo ( Char  c,
ostream *  os 
)
void testing::internal::PrintFullTestCommentIfPresent ( const TestInfo &  test_info)
template<typename T >
void testing::internal::PrintRawArrayTo ( const T  a[],
size_t  count,
::std::ostream *  os 
)

References UniversalPrint().

Referenced by UniversalPrintArray().

void testing::internal::PrintStringTo ( const ::std::string &  s,
ostream *  os 
)
GTEST_API_ void testing::internal::PrintStringTo ( const ::std::string &  s,
::std::ostream *  os 
)

Referenced by PrintTo().

void testing::internal::PrintTo ( wchar_t  wc,
ostream *  os 
)
void testing::internal::PrintTo ( const char *  s,
ostream *  os 
)
void testing::internal::PrintTo ( const wchar_t *  s,
ostream *  os 
)
template<typename T >
void testing::internal::PrintTo ( const T &  value,
::std::ostream *  os 
)
void testing::internal::PrintTo ( unsigned char  c,
::std::ostream *  os 
)

References c.

void testing::internal::PrintTo ( signed char  c,
::std::ostream *  os 
)

References c.

void testing::internal::PrintTo ( char  c,
::std::ostream *  os 
)
inline

References PrintTo().

void testing::internal::PrintTo ( bool  x,
::std::ostream *  os 
)
inline
GTEST_API_ void testing::internal::PrintTo ( wchar_t  wc,
::std::ostream *  os 
)
GTEST_API_ void testing::internal::PrintTo ( const char *  s,
::std::ostream *  os 
)
void testing::internal::PrintTo ( char *  s,
::std::ostream *  os 
)
inline

References PrintTo().

void testing::internal::PrintTo ( const signed char *  s,
::std::ostream *  os 
)
inline

References PrintTo().

void testing::internal::PrintTo ( signed char *  s,
::std::ostream *  os 
)
inline

References PrintTo().

void testing::internal::PrintTo ( const unsigned char *  s,
::std::ostream *  os 
)
inline

References PrintTo().

void testing::internal::PrintTo ( unsigned char *  s,
::std::ostream *  os 
)
inline

References PrintTo().

GTEST_API_ void testing::internal::PrintTo ( const wchar_t *  s,
::std::ostream *  os 
)
void testing::internal::PrintTo ( wchar_t *  s,
::std::ostream *  os 
)
inline

References PrintTo().

void testing::internal::PrintTo ( const ::std::string &  s,
::std::ostream *  os 
)
inline

References PrintStringTo().

template<typename T1 , typename T2 >
void testing::internal::PrintTo ( const ::std::pair< T1, T2 > &  value,
::std::ostream *  os 
)
void testing::internal::ReportFailureInUnknownLocation ( TestPartResult::Type  result_type,
const std::string &  message 
)
bool testing::internal::ShouldRunTestOnShard ( int  total_shards,
int  shard_index,
int  test_id 
)
bool testing::internal::ShouldShard ( const char *  total_shards_str,
const char *  shard_index_str,
bool  in_subprocess_for_death_test 
)
bool testing::internal::ShouldUseColor ( bool  stdout_is_tty)
template<typename E >
void testing::internal::Shuffle ( internal::Random *  random,
std::vector< E > *  v 
)
inline

References ShuffleRange().

template<typename E >
void testing::internal::ShuffleRange ( internal::Random *  random,
int  begin,
int  end,
std::vector< E > *  v 
)
bool testing::internal::SkipPrefix ( const char *  prefix,
const char **  pstr 
)
template<typename T >
std::string testing::internal::StreamableToString ( const T &  streamable)
const char * testing::internal::StringFromGTestEnv ( const char *  flag,
const char *  default_val 
)
std::string testing::internal::StringStreamToString ( ::std::stringstream *  stream)
char testing::internal::ToLower ( char  ch)
inline
char testing::internal::ToUpper ( char  ch)
inline
template<typename T >
void testing::internal::UniversalPrint ( const T &  value,
::std::ostream *  os 
)
void testing::internal::UniversalPrintArray ( const char *  begin,
size_t  len,
ostream *  os 
)
void testing::internal::UniversalPrintArray ( const wchar_t *  begin,
size_t  len,
ostream *  os 
)
template<typename T >
void testing::internal::UniversalPrintArray ( const T *  begin,
size_t  len,
::std::ostream *  os 
)
GTEST_API_ void testing::internal::UniversalPrintArray ( const char *  begin,
size_t  len,
::std::ostream *  os 
)
GTEST_API_ void testing::internal::UniversalPrintArray ( const wchar_t *  begin,
size_t  len,
::std::ostream *  os 
)
template<typename T >
void testing::internal::UniversalTersePrint ( const T &  value,
::std::ostream *  os 
)
std::string testing::internal::WideStringToUtf8 ( const wchar_t *  str,
int  num_chars 
)
void testing::internal::WriteToShardStatusFileIfNeeded ( )

Variable Documentation

std::string testing::internal::g_executable_path

Referenced by InitGoogleTestImpl().

bool testing::internal::g_help_flag = false
GTEST_API_ int testing::internal::g_init_gtest_count = 0
class testing::internal::GTestFlagSaver testing::internal::GTEST_ATTRIBUTE_UNUSED_
const char testing::internal::kAlsoRunDisabledTestsFlag[] = "also_run_disabled_tests"
const char testing::internal::kBreakOnFailureFlag[] = "break_on_failure"
const char testing::internal::kCatchExceptionsFlag[] = "catch_exceptions"
const char testing::internal::kColorFlag[] = "color"
const char testing::internal::kCurrentDirectoryString[] = "./"
const char testing::internal::kDeathTestStyleFlag[] = "death_test_style"
const char testing::internal::kDeathTestUseFork[] = "death_test_use_fork"
const char testing::internal::kFilterFlag[] = "filter"
const char testing::internal::kInternalRunDeathTestFlag[] = "internal_run_death_test"
const char testing::internal::kListTestsFlag[] = "list_tests"
const BiggestInt testing::internal::kMaxBiggestInt
Initial value:
=
~(static_cast<BiggestInt>(1) << (8*sizeof(BiggestInt) - 1))
long long BiggestInt
Definition: gtest-port.h:1649
const UInt32 testing::internal::kMaxCodePoint1 = (static_cast<UInt32>(1) << 7) - 1
const UInt32 testing::internal::kMaxCodePoint2 = (static_cast<UInt32>(1) << (5 + 6)) - 1
const UInt32 testing::internal::kMaxCodePoint3 = (static_cast<UInt32>(1) << (4 + 2*6)) - 1
const UInt32 testing::internal::kMaxCodePoint4 = (static_cast<UInt32>(1) << (3 + 3*6)) - 1
const int testing::internal::kMaxRandomSeed = 99999
const char testing::internal::kOutputFlag[] = "output"
const char testing::internal::kPathSeparator = '/'
const char testing::internal::kPathSeparatorString[] = "/"
const char testing::internal::kPrintTimeFlag[] = "print_time"
const char testing::internal::kRandomSeedFlag[] = "random_seed"
const char testing::internal::kRepeatFlag[] = "repeat"
const char testing::internal::kShuffleFlag[] = "shuffle"
const char testing::internal::kStackTraceDepthFlag[] = "stack_trace_depth"
const char testing::internal::kStackTraceMarker = "\nStack trace:\n"
const int testing::internal::kStdErrFileno = STDERR_FILENO
const int testing::internal::kStdOutFileno = STDOUT_FILENO
const char testing::internal::kStreamResultToFlag[] = "stream_result_to"
const TypeId testing::internal::kTestTypeIdInGoogleTest = GetTestTypeId()
const char testing::internal::kThrowOnFailureFlag[] = "throw_on_failure"
const char testing::internal::kUnknownFile[] = "unknown file"