uTL
micro Template library
testing::internal Namespace Reference

Namespaces

 edit_distance
 
 posix
 

Classes

struct  AddReference
 
struct  AddReference< T & >
 
class  AssertHelper
 
struct  bool_constant
 
class  CapturedStream
 
class  CartesianProductGenerator10
 
class  CartesianProductGenerator2
 
class  CartesianProductGenerator3
 
class  CartesianProductGenerator4
 
class  CartesianProductGenerator5
 
class  CartesianProductGenerator6
 
class  CartesianProductGenerator7
 
class  CartesianProductGenerator8
 
class  CartesianProductGenerator9
 
class  CartesianProductHolder10
 
class  CartesianProductHolder2
 
class  CartesianProductHolder3
 
class  CartesianProductHolder4
 
class  CartesianProductHolder5
 
class  CartesianProductHolder6
 
class  CartesianProductHolder7
 
class  CartesianProductHolder8
 
class  CartesianProductHolder9
 
struct  CodeLocation
 
struct  CompileAssertTypesEqual
 
struct  CompileAssertTypesEqual< T, T >
 
struct  ConstCharPtr
 
struct  ConstRef
 
struct  ConstRef< T & >
 
struct  DoubleSequence
 
struct  DoubleSequence< false, IndexSequence< I... >, sizeofT >
 
struct  DoubleSequence< true, IndexSequence< I... >, sizeofT >
 
struct  ElemFromList
 
struct  ElemFromList< N, IndexSequence< I... >, T... >
 
struct  ElemFromListImpl
 
struct  ElemFromListImpl< T, I, I >
 
struct  EnableIf
 
struct  EnableIf< true >
 
class  EqHelper
 
class  EqHelper< true >
 
struct  faketype
 
class  FlatTuple
 
struct  FlatTupleBase
 
struct  FlatTupleBase< FlatTuple< T... >, IndexSequence< Idx... > >
 
struct  FlatTupleElemBase
 
struct  FlatTupleElemBase< FlatTuple< T... >, I >
 
class  FloatingPoint
 
class  FormatForComparison
 
class  FormatForComparison< ToPrint[N], OtherOperand >
 
class  GTestLog
 
class  GTestMutexLock
 
class  IgnoredValue
 
class  ImplicitlyConvertible
 
struct  IndexSequence
 
struct  is_same
 
struct  is_same< T, T >
 
struct  IsAProtocolMessage
 
struct  IsHashTable
 
struct  IsRecursiveContainer
 
struct  IsRecursiveContainerImpl
 
struct  IsRecursiveContainerImpl< C, false >
 
struct  IsRecursiveContainerImpl< C, true >
 
struct  IsSame
 
struct  IsSame< T, T >
 
struct  IteratorTraits
 
struct  IteratorTraits< const T * >
 
struct  IteratorTraits< T * >
 
struct  MakeIndexSequence
 
struct  MakeIndexSequence< 0 >
 
class  Mutex
 
class  NativeArray
 
class  ParameterizedTestFactory
 
class  ParameterizedTestSuiteInfo
 
class  ParameterizedTestSuiteInfoBase
 
class  ParameterizedTestSuiteRegistry
 
class  ParamGenerator
 
class  ParamGeneratorInterface
 
class  ParamIterator
 
class  ParamIteratorInterface
 
struct  ParamNameGenFunc
 
class  Random
 
class  RangeGenerator
 
class  RE
 
struct  RelationToSourceCopy
 
struct  RelationToSourceReference
 
struct  RemoveConst
 
struct  RemoveConst< const T >
 
struct  RemoveConst< const T[N]>
 
struct  RemoveReference
 
struct  RemoveReference< T & >
 
struct  StaticAssertTypeEqHelper
 
struct  StaticAssertTypeEqHelper< T, T >
 
struct  SuiteApiResolver
 
class  TestFactoryBase
 
class  TestFactoryImpl
 
class  TestMetaFactory
 
class  TestMetaFactoryBase
 
class  ThreadLocal
 
class  TypeIdHelper
 
class  TypeWithSize
 
class  TypeWithSize< 4 >
 
class  TypeWithSize< 8 >
 
class  UniversalPrinter
 
class  UniversalPrinter< T & >
 
class  UniversalPrinter< T[N]>
 
class  UniversalTersePrinter
 
class  UniversalTersePrinter< char * >
 
class  UniversalTersePrinter< const char * >
 
class  UniversalTersePrinter< const wchar_t * >
 
class  UniversalTersePrinter< T & >
 
class  UniversalTersePrinter< T[N]>
 
class  UniversalTersePrinter< wchar_t * >
 
class  ValueArray
 
class  ValuesInIteratorRangeGenerator
 
struct  WrapPrinterType
 

Typedefs

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
 
typedef FloatingPoint< float > Float
 
typedef FloatingPoint< double > Double
 
typedef const void * TypeId
 
using SetUpTestSuiteFunc = void(*)()
 
using TearDownTestSuiteFunc = void(*)()
 
using SetUpTearDownSuiteFuncType = void(*)()
 
typedef int IsContainer
 
typedef char IsNotContainer
 
typedef ::std::vector< ::std::string > Strings
 
template<class TestCase >
using ParameterizedTestCaseInfo = ParameterizedTestSuiteInfo< TestCase >
 

Enumerations

enum  CharFormat { kAsIs, kHexEscape, kSpecialEscape }
 
enum  GTestLogSeverity { GTEST_INFO, GTEST_WARNING, GTEST_ERROR, GTEST_FATAL }
 
enum  DefaultPrinterType { kPrintContainer, kPrintPointer, kPrintFunctionPointer, kPrintOther }
 
enum  GTestColor { COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW }
 

Functions

 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.")
 
size_t GetThreadCount ()
 
GTEST_API_ ::std::string FormatFileLocation (const char *file, int line)
 
GTEST_API_ ::std::string FormatCompilerIndependentFileLocation (const char *file, int line)
 
void CaptureStdout ()
 
void CaptureStderr ()
 
std::string GetCapturedStdout ()
 
std::string GetCapturedStderr ()
 
size_t GetFileSize (FILE *file)
 
std::string ReadEntireFile (FILE *file)
 
bool ParseInt32 (const Message &src_text, const char *str, Int32 *value)
 
bool BoolFromGTestEnv (const char *flag, bool default_value)
 
Int32 Int32FromGTestEnv (const char *flag, Int32 default_value)
 
std::string OutputFlagAlsoCheckEnvVar ()
 
const char * StringFromGTestEnv (const char *flag, const char *default_value)
 
bool IsPrintableAscii (wchar_t c)
 
template<typename UnsignedChar , typename Char >
void PrintCharAndCodeTo (Char c, ostream *os)
 
void PrintTo (unsigned char c, ::std::ostream *os)
 
void PrintTo (signed char c, ::std::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)
 
void PrintWideStringTo (const ::std::wstring &s, ostream *os)
 
GTEST_API_ bool IsTrue (bool condition)
 
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_ std::vector< std::string > GetArgvs ()
 
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)
 
std::string StripTrailingSpaces (std::string str)
 
template<typename T >
std::string StreamableToString (const T &streamable)
 
std::true_type IsNullLiteralHelper (Secret *)
 
std::false_type IsNullLiteralHelper (IgnoredValue)
 
GTEST_API_ std::string AppendUserMessage (const std::string &gtest_msg, const Message &user_msg)
 
GTEST_API_ std::string DiffStrings (const std::string &left, const std::string &right, size_t *total_line_count)
 
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 ()
 
SetUpTearDownSuiteFuncType GetNotDefaultOrNull (SetUpTearDownSuiteFuncType a, SetUpTearDownSuiteFuncType def)
 
GTEST_API_ TestInfoMakeAndRegisterTestInfo (const char *test_suite_name, const char *name, const char *type_param, const char *value_param, CodeLocation code_location, TypeId fixture_class_id, SetUpTestSuiteFunc set_up_tc, TearDownTestSuiteFunc 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 , class Iterator = decltype(::std::declval<const C&>().begin()), class = decltype(::std::declval<const C&>().end()), class = decltype(++::std::declval<Iterator&>()), class = decltype(*::std::declval<Iterator>()), class = typename C::const_iterator>
IsContainer IsContainerTest (int)
 
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_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)
 
 GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ (wchar_t, ::std::wstring)
 
template<typename T1 , typename T2 >
std::string FormatForComparisonFailureMessage (const T1 &value, const T2 &)
 
template<typename T >
void UniversalPrint (const T &value, ::std::ostream *os)
 
template<typename C >
void DefaultPrintTo (WrapPrinterType< kPrintContainer >, const C &container, ::std::ostream *os)
 
template<typename T >
void DefaultPrintTo (WrapPrinterType< kPrintPointer >, T *p, ::std::ostream *os)
 
template<typename T >
void DefaultPrintTo (WrapPrinterType< kPrintFunctionPointer >, T *p, ::std::ostream *os)
 
template<typename T >
void DefaultPrintTo (WrapPrinterType< kPrintOther >, const T &value, ::std::ostream *os)
 
template<typename T >
void PrintTo (const T &value, ::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)
 
GTEST_API_ void PrintWideStringTo (const ::std::wstring &s, ::std::ostream *os)
 
void PrintTo (const ::std::wstring &s, ::std::ostream *os)
 
void PrintTo (std::nullptr_t, ::std::ostream *os)
 
template<typename T >
void PrintTo (std::reference_wrapper< T > ref, ::std::ostream *os)
 
template<typename T >
void PrintTupleTo (const T &, std::integral_constant< size_t, 0 >, ::std::ostream *)
 
template<typename T , size_t I>
void PrintTupleTo (const T &t, std::integral_constant< size_t, I >, ::std::ostream *os)
 
template<typename... Types>
void PrintTo (const ::std::tuple< Types... > &t, ::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)
 
template<typename Tuple >
void TersePrintPrefixToStrings (const Tuple &, std::integral_constant< size_t, 0 >, Strings *)
 
template<typename Tuple , size_t I>
void TersePrintPrefixToStrings (const Tuple &t, std::integral_constant< size_t, I >, Strings *strings)
 
template<typename Tuple >
Strings UniversalTersePrintTupleFieldsToStrings (const Tuple &value)
 
GTEST_API_ void ReportInvalidTestSuiteType (const char *test_suite_name, CodeLocation code_location)
 
template<class ParamType >
std::string DefaultParamName (const TestParamInfo< ParamType > &info)
 
template<class ParamType , class ParamNameGenFunctor >
ParamNameGenFunctor GetParamNameGen (ParamNameGenFunctor func)
 
template<class ParamType >
ParamNameGenFunc< ParamType >::Type * GetParamNameGen ()
 
template<typename T1 , typename T2 >
AssertionResult CmpHelperEQFailure (const char *lhs_expression, const char *rhs_expression, const T1 &lhs, const T2 &rhs)
 
bool operator== (faketype, faketype)
 
bool operator!= (faketype, faketype)
 
template<typename T1 , typename T2 >
AssertionResult CmpHelperEQ (const char *lhs_expression, const char *rhs_expression, const T1 &lhs, const T2 &rhs)
 
GTEST_API_ AssertionResult CmpHelperEQ (const char *lhs_expression, const char *rhs_expression, BiggestInt lhs, BiggestInt rhs)
 
template<typename T1 , typename T2 >
AssertionResult CmpHelperOpFailure (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2, const char *op)
 
 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 *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
GTEST_API_ AssertionResult CmpHelperSTRCASEEQ (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
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 *s1_expression, const char *s2_expression, const wchar_t *s1, const wchar_t *s2)
 
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 *lhs_expression, const char *rhs_expression, RawType lhs_value, RawType rhs_value)
 
GTEST_API_ AssertionResult DoubleNearPredFormat (const char *expr1, const char *expr2, const char *abs_error_expr, double val1, double val2, double abs_error)
 
GTEST_API_ GTEST_ATTRIBUTE_PRINTF_ (2, 3) void ColoredPrintf(GTestColor color
 

Variables

const char kPathSeparator = '/'
 
const char kCurrentDirectoryString [] = "./"
 
const int kStdOutFileno = STDOUT_FILENO
 
const int kStdErrFileno = STDERR_FILENO
 
const char kUnknownFile [] = "unknown file"
 
const BiggestInt kMaxBiggestInt
 
GTEST_API_ const char kStackTraceMarker []
 
GTEST_API_ const char * fmt
 

Typedef Documentation

◆ BiggestInt

typedef long long testing::internal::BiggestInt

Definition at line 2223 of file gtest.h.

◆ Double

Definition at line 6846 of file gtest.h.

◆ false_type

Definition at line 2190 of file gtest.h.

◆ Float

Definition at line 6845 of file gtest.h.

◆ Int32

Definition at line 2475 of file gtest.h.

◆ Int64

Definition at line 2477 of file gtest.h.

◆ IsContainer

Definition at line 7422 of file gtest.h.

◆ IsNotContainer

Definition at line 7433 of file gtest.h.

◆ MutexLock

Definition at line 2162 of file gtest.h.

◆ ParameterizedTestCaseInfo

template<class TestCase >
using testing::internal::ParameterizedTestCaseInfo = typedef ParameterizedTestSuiteInfo<TestCase>

Definition at line 11196 of file gtest.h.

◆ SetUpTearDownSuiteFuncType

Definition at line 6941 of file gtest.h.

◆ SetUpTestSuiteFunc

using testing::internal::SetUpTestSuiteFunc = typedef void (*)()

Definition at line 6926 of file gtest.h.

◆ string

typedef ::std::string testing::internal::string

Definition at line 1115 of file gtest.h.

◆ Strings

typedef ::std::vector< ::std::string> testing::internal::Strings

Definition at line 8926 of file gtest.h.

◆ TearDownTestSuiteFunc

using testing::internal::TearDownTestSuiteFunc = typedef void (*)()

Definition at line 6927 of file gtest.h.

◆ TimeInMillis

Definition at line 2479 of file gtest.h.

◆ true_type

Definition at line 2191 of file gtest.h.

◆ TypeId

typedef const void* testing::internal::TypeId

Definition at line 6854 of file gtest.h.

◆ UInt32

Definition at line 2476 of file gtest.h.

◆ UInt64

Definition at line 2478 of file gtest.h.

◆ wstring

typedef ::std::wstring testing::internal::wstring

Definition at line 1121 of file gtest.h.

Enumeration Type Documentation

◆ CharFormat

Enumerator
kAsIs 
kHexEscape 
kSpecialEscape 

Definition at line 11126 of file gtest-all.cc.

◆ DefaultPrinterType

Enumerator
kPrintContainer 
kPrintPointer 
kPrintFunctionPointer 
kPrintOther 

Definition at line 8434 of file gtest.h.

◆ GTestColor

Enumerator
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 

Definition at line 16427 of file gtest.h.

◆ GTestLogSeverity

Enumerator
GTEST_INFO 
GTEST_WARNING 
GTEST_ERROR 
GTEST_FATAL 

Definition at line 1219 of file gtest.h.

Function Documentation

◆ AlwaysFalse()

bool testing::internal::AlwaysFalse ( )
inline

Definition at line 7260 of file gtest.h.

◆ AlwaysTrue()

GTEST_API_ bool testing::internal::AlwaysTrue ( )

◆ AppendUserMessage()

GTEST_API_ std::string testing::internal::AppendUserMessage ( const std::string &  gtest_msg,
const Message user_msg 
)

◆ ArrayAwareFind()

template<typename Iter , typename Element >
Iter testing::internal::ArrayAwareFind ( Iter  begin,
Iter  end,
const Element &  elem 
)

Definition at line 7528 of file gtest.h.

◆ ArrayEq() [1/3]

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

Definition at line 7517 of file gtest.h.

◆ ArrayEq() [2/3]

template<typename T , typename U >
bool testing::internal::ArrayEq ( const T &  lhs,
const U &  rhs 
)
inline

Definition at line 7505 of file gtest.h.

◆ ArrayEq() [3/3]

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

Definition at line 7509 of file gtest.h.

◆ BoolFromGTestEnv()

bool testing::internal::BoolFromGTestEnv ( const char *  flag,
bool  default_value 
)

Definition at line 10934 of file gtest-all.cc.

◆ CaptureStderr()

GTEST_API_ void testing::internal::CaptureStderr ( )

Definition at line 10784 of file gtest-all.cc.

◆ CaptureStdout()

GTEST_API_ void testing::internal::CaptureStdout ( )

Definition at line 10779 of file gtest-all.cc.

◆ CheckedDowncastToActualType()

template<class Derived , class Base >
Derived* testing::internal::CheckedDowncastToActualType ( Base *  base)

Definition at line 1391 of file gtest.h.

◆ CmpHelperEQ() [1/2]

template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperEQ ( const char *  lhs_expression,
const char *  rhs_expression,
const T1 &  lhs,
const T2 &  rhs 
)

Definition at line 16111 of file gtest.h.

◆ CmpHelperEQ() [2/2]

GTEST_API_ AssertionResult testing::internal::CmpHelperEQ ( const char *  lhs_expression,
const char *  rhs_expression,
BiggestInt  lhs,
BiggestInt  rhs 
)

◆ CmpHelperEQFailure()

template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperEQFailure ( const char *  lhs_expression,
const char *  rhs_expression,
const T1 &  lhs,
const T2 &  rhs 
)

Definition at line 16092 of file gtest.h.

◆ CmpHelperFloatingPointEQ()

template<typename RawType >
AssertionResult testing::internal::CmpHelperFloatingPointEQ ( const char *  lhs_expression,
const char *  rhs_expression,
RawType  lhs_value,
RawType  rhs_value 
)

Definition at line 16351 of file gtest.h.

◆ CmpHelperOpFailure()

template<typename T1 , typename T2 >
AssertionResult testing::internal::CmpHelperOpFailure ( const char *  expr1,
const char *  expr2,
const T1 &  val1,
const T2 &  val2,
const char *  op 
)

Definition at line 16206 of file gtest.h.

◆ CmpHelperSTRCASEEQ()

GTEST_API_ AssertionResult testing::internal::CmpHelperSTRCASEEQ ( const char *  s1_expression,
const char *  s2_expression,
const char *  s1,
const char *  s2 
)

◆ CmpHelperSTRCASENE()

GTEST_API_ AssertionResult testing::internal::CmpHelperSTRCASENE ( const char *  s1_expression,
const char *  s2_expression,
const char *  s1,
const char *  s2 
)

◆ CmpHelperSTREQ() [1/2]

GTEST_API_ AssertionResult testing::internal::CmpHelperSTREQ ( const char *  s1_expression,
const char *  s2_expression,
const char *  s1,
const char *  s2 
)

◆ CmpHelperSTREQ() [2/2]

GTEST_API_ AssertionResult testing::internal::CmpHelperSTREQ ( const char *  s1_expression,
const char *  s2_expression,
const wchar_t *  s1,
const wchar_t *  s2 
)

◆ CmpHelperSTRNE() [1/2]

GTEST_API_ AssertionResult testing::internal::CmpHelperSTRNE ( const char *  s1_expression,
const char *  s2_expression,
const char *  s1,
const char *  s2 
)

◆ CmpHelperSTRNE() [2/2]

GTEST_API_ AssertionResult testing::internal::CmpHelperSTRNE ( const char *  s1_expression,
const char *  s2_expression,
const wchar_t *  s1,
const wchar_t *  s2 
)

◆ CopyArray() [1/3]

template<typename T , typename U >
void testing::internal::CopyArray ( const T *  from,
size_t  size,
U *  to 
)

Definition at line 7557 of file gtest.h.

◆ CopyArray() [2/3]

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

Definition at line 7545 of file gtest.h.

◆ CopyArray() [3/3]

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

Definition at line 7549 of file gtest.h.

◆ DefaultParamName()

template<class ParamType >
std::string testing::internal::DefaultParamName ( const TestParamInfo< ParamType > &  info)

Definition at line 10912 of file gtest.h.

◆ DefaultPrintTo() [1/4]

template<typename C >
void testing::internal::DefaultPrintTo ( WrapPrinterType< kPrintContainer ,
const C &  container,
::std::ostream *  os 
)

Definition at line 8445 of file gtest.h.

◆ DefaultPrintTo() [2/4]

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

Definition at line 8478 of file gtest.h.

◆ DefaultPrintTo() [3/4]

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

Definition at line 8490 of file gtest.h.

◆ DefaultPrintTo() [4/4]

template<typename T >
void testing::internal::DefaultPrintTo ( WrapPrinterType< kPrintOther ,
const T &  value,
::std::ostream *  os 
)

Definition at line 8505 of file gtest.h.

◆ DiffStrings()

GTEST_API_ std::string testing::internal::DiffStrings ( const std::string &  left,
const std::string &  right,
size_t *  total_line_count 
)

◆ DoubleNearPredFormat()

GTEST_API_ AssertionResult testing::internal::DoubleNearPredFormat ( const char *  expr1,
const char *  expr2,
const char *  abs_error_expr,
double  val1,
double  val2,
double  abs_error 
)

◆ DownCast_()

template<typename To , typename From >
To testing::internal::DownCast_ ( From *  f)
inline

Definition at line 1366 of file gtest.h.

◆ EqFailure()

GTEST_API_ 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 
)

◆ FlushInfoLog()

void testing::internal::FlushInfoLog ( )
inline

Definition at line 1251 of file gtest.h.

◆ FormatCompilerIndependentFileLocation()

GTEST_API_::std::string testing::internal::FormatCompilerIndependentFileLocation ( const char *  file,
int  line 
)

Definition at line 10638 of file gtest-all.cc.

◆ FormatFileLocation()

GTEST_API_::std::string testing::internal::FormatFileLocation ( const char *  file,
int  line 
)

Definition at line 10620 of file gtest-all.cc.

◆ FormatForComparisonFailureMessage()

template<typename T1 , typename T2 >
std::string testing::internal::FormatForComparisonFailureMessage ( const T1 &  value,
const T2 &   
)

Definition at line 8416 of file gtest.h.

◆ GetArgvs()

GTEST_API_ std::vector<std::string> testing::internal::GetArgvs ( )

◆ GetBoolAssertionFailureMessage()

GTEST_API_ std::string testing::internal::GetBoolAssertionFailureMessage ( const AssertionResult &  assertion_result,
const char *  expression_text,
const char *  actual_predicate_value,
const char *  expected_predicate_value 
)

◆ GetCapturedStderr()

GTEST_API_ std::string testing::internal::GetCapturedStderr ( )

Definition at line 10794 of file gtest-all.cc.

◆ GetCapturedStdout()

GTEST_API_ std::string testing::internal::GetCapturedStdout ( )

Definition at line 10789 of file gtest-all.cc.

◆ GetCurrentOsStackTraceExceptTop()

GTEST_API_ std::string testing::internal::GetCurrentOsStackTraceExceptTop ( UnitTest unit_test,
int  skip_count 
)

◆ GetFileSize()

GTEST_API_ size_t testing::internal::GetFileSize ( FILE *  file)

Definition at line 10804 of file gtest-all.cc.

◆ GetNotDefaultOrNull()

SetUpTearDownSuiteFuncType testing::internal::GetNotDefaultOrNull ( SetUpTearDownSuiteFuncType  a,
SetUpTearDownSuiteFuncType  def 
)
inline

Definition at line 6943 of file gtest.h.

◆ GetParamNameGen() [1/2]

template<class ParamType , class ParamNameGenFunctor >
ParamNameGenFunctor testing::internal::GetParamNameGen ( ParamNameGenFunctor  func)

Definition at line 10924 of file gtest.h.

◆ GetParamNameGen() [2/2]

template<class ParamType >
ParamNameGenFunc<ParamType>::Type* testing::internal::GetParamNameGen ( )

Definition at line 10934 of file gtest.h.

◆ GetTestTypeId()

GTEST_API_ TypeId testing::internal::GetTestTypeId ( )

◆ GetThreadCount()

GTEST_API_ size_t testing::internal::GetThreadCount ( )

Definition at line 9875 of file gtest-all.cc.

◆ GetTypeId()

template<typename T >
TypeId testing::internal::GetTypeId ( )

Definition at line 6872 of file gtest.h.

◆ GTEST_ATTRIBUTE_PRINTF_()

GTEST_API_ testing::internal::GTEST_ATTRIBUTE_PRINTF_ ( ,
 
)

◆ GTEST_DEFINE_string_()

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."   
)

◆ GTEST_IMPL_CMP_HELPER_() [1/5]

testing::internal::GTEST_IMPL_CMP_HELPER_ ( NE  ,
 
)

◆ GTEST_IMPL_CMP_HELPER_() [2/5]

testing::internal::GTEST_IMPL_CMP_HELPER_ ( LE  ,
<=   
)

◆ GTEST_IMPL_CMP_HELPER_() [3/5]

testing::internal::GTEST_IMPL_CMP_HELPER_ ( LT  )

◆ GTEST_IMPL_CMP_HELPER_() [4/5]

testing::internal::GTEST_IMPL_CMP_HELPER_ ( GE  ,
>=   
)

◆ GTEST_IMPL_CMP_HELPER_() [5/5]

testing::internal::GTEST_IMPL_CMP_HELPER_ ( GT  )

◆ GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_() [1/2]

testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ ( char  )

◆ GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_() [2/2]

testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ ( wchar_t  )

◆ GTEST_IMPL_FORMAT_C_STRING_AS_STRING_() [1/2]

testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ ( char  ,
::std::string   
)

◆ GTEST_IMPL_FORMAT_C_STRING_AS_STRING_() [2/2]

testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ ( wchar_t  ,
::std::wstring   
)

◆ ImplicitCast_()

template<typename To >
To testing::internal::ImplicitCast_ ( To  x)
inline

Definition at line 1342 of file gtest.h.

◆ Int32FromGTestEnv()

GTEST_API_ Int32 testing::internal::Int32FromGTestEnv ( const char *  flag,
Int32  default_value 
)

Definition at line 10948 of file gtest-all.cc.

◆ IsAlNum()

bool testing::internal::IsAlNum ( char  ch)
inline

Definition at line 2236 of file gtest.h.

◆ IsAlpha()

bool testing::internal::IsAlpha ( char  ch)
inline

Definition at line 2233 of file gtest.h.

◆ IsContainerTest() [1/2]

template<class C , class Iterator = decltype(::std::declval<const C&>().begin()), class = decltype(::std::declval<const C&>().end()), class = decltype(++::std::declval<Iterator&>()), class = decltype(*::std::declval<Iterator>()), class = typename C::const_iterator>
IsContainer testing::internal::IsContainerTest ( int  )

Definition at line 7429 of file gtest.h.

◆ IsContainerTest() [2/2]

template<class C >
IsNotContainer testing::internal::IsContainerTest ( long  )

Definition at line 7435 of file gtest.h.

◆ IsDigit()

bool testing::internal::IsDigit ( char  ch)
inline

Definition at line 2239 of file gtest.h.

◆ IsLower()

bool testing::internal::IsLower ( char  ch)
inline

Definition at line 2242 of file gtest.h.

◆ IsNullLiteralHelper() [1/2]

std::true_type testing::internal::IsNullLiteralHelper ( Secret *  )

◆ IsNullLiteralHelper() [2/2]

std::false_type testing::internal::IsNullLiteralHelper ( IgnoredValue  )

◆ IsPrintableAscii()

bool testing::internal::IsPrintableAscii ( wchar_t  c)
inline

Definition at line 11135 of file gtest-all.cc.

◆ IsSpace()

bool testing::internal::IsSpace ( char  ch)
inline

Definition at line 2245 of file gtest.h.

◆ IsTrue()

GTEST_API_ bool testing::internal::IsTrue ( bool  condition)

◆ IsUpper()

bool testing::internal::IsUpper ( char  ch)
inline

Definition at line 2248 of file gtest.h.

◆ IsXDigit() [1/2]

bool testing::internal::IsXDigit ( char  ch)
inline

Definition at line 2251 of file gtest.h.

◆ IsXDigit() [2/2]

bool testing::internal::IsXDigit ( wchar_t  ch)
inline

Definition at line 2254 of file gtest.h.

◆ LogToStderr()

void testing::internal::LogToStderr ( )
inline

Definition at line 1250 of file gtest.h.

◆ MakeAndRegisterTestInfo()

GTEST_API_ TestInfo* testing::internal::MakeAndRegisterTestInfo ( const char *  test_suite_name,
const char *  name,
const char *  type_param,
const char *  value_param,
CodeLocation  code_location,
TypeId  fixture_class_id,
SetUpTestSuiteFunc  set_up_tc,
TearDownTestSuiteFunc  tear_down_tc,
TestFactoryBase factory 
)

◆ operator!=()

bool testing::internal::operator!= ( faketype  ,
faketype   
)
inline

Definition at line 16107 of file gtest.h.

◆ operator==()

bool testing::internal::operator== ( faketype  ,
faketype   
)
inline

Definition at line 16106 of file gtest.h.

◆ OutputFlagAlsoCheckEnvVar()

std::string testing::internal::OutputFlagAlsoCheckEnvVar ( )

Definition at line 10980 of file gtest-all.cc.

◆ ParseInt32()

bool testing::internal::ParseInt32 ( const Message src_text,
const char *  str,
Int32 value 
)

Definition at line 10892 of file gtest-all.cc.

◆ PrintCharAndCodeTo()

template<typename UnsignedChar , typename Char >
void testing::internal::PrintCharAndCodeTo ( Char  c,
ostream *  os 
)

Definition at line 11218 of file gtest-all.cc.

◆ PrintRawArrayTo()

template<typename T >
void testing::internal::PrintRawArrayTo ( const T  a[],
size_t  count,
::std::ostream *  os 
)

Definition at line 8623 of file gtest.h.

◆ PrintStringTo() [1/2]

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

◆ PrintStringTo() [2/2]

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

Definition at line 11432 of file gtest-all.cc.

◆ PrintTo() [1/23]

template<typename T >
void testing::internal::PrintTo ( const T &  value,
::std::ostream *  os 
)

Definition at line 8522 of file gtest.h.

◆ PrintTo() [2/23]

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

Definition at line 8562 of file gtest.h.

◆ PrintTo() [3/23]

void testing::internal::PrintTo ( bool  x,
::std::ostream *  os 
)
inline

Definition at line 8570 of file gtest.h.

◆ PrintTo() [4/23]

GTEST_API_ void testing::internal::PrintTo ( wchar_t  wc,
::std::ostream *  os 
)

◆ PrintTo() [5/23]

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

◆ PrintTo() [6/23]

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

Definition at line 8585 of file gtest.h.

◆ PrintTo() [7/23]

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

Definition at line 8591 of file gtest.h.

◆ PrintTo() [8/23]

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

Definition at line 8594 of file gtest.h.

◆ PrintTo() [9/23]

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

Definition at line 8597 of file gtest.h.

◆ PrintTo() [10/23]

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

Definition at line 8600 of file gtest.h.

◆ PrintTo() [11/23]

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

◆ PrintTo() [12/23]

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

Definition at line 8612 of file gtest.h.

◆ PrintTo() [13/23]

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

Definition at line 8640 of file gtest.h.

◆ PrintTo() [14/23]

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

Definition at line 8654 of file gtest.h.

◆ PrintTo() [15/23]

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

Definition at line 8666 of file gtest.h.

◆ PrintTo() [16/23]

template<typename T >
void testing::internal::PrintTo ( std::reference_wrapper< T >  ref,
::std::ostream *  os 
)

Definition at line 8669 of file gtest.h.

◆ PrintTo() [17/23]

template<typename... Types>
void testing::internal::PrintTo ( const ::std::tuple< Types... > &  t,
::std::ostream *  os 
)

Definition at line 8694 of file gtest.h.

◆ PrintTo() [18/23]

template<typename T1 , typename T2 >
void testing::internal::PrintTo ( const ::std::pair< T1, T2 > &  value,
::std::ostream *  os 
)

Definition at line 8702 of file gtest.h.

◆ PrintTo() [19/23]

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

Definition at line 11242 of file gtest-all.cc.

◆ PrintTo() [20/23]

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

Definition at line 11245 of file gtest-all.cc.

◆ PrintTo() [21/23]

void testing::internal::PrintTo ( wchar_t  wc,
ostream *  os 
)

Definition at line 11251 of file gtest-all.cc.

◆ PrintTo() [22/23]

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

Definition at line 11327 of file gtest-all.cc.

◆ PrintTo() [23/23]

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

Definition at line 11344 of file gtest-all.cc.

◆ PrintTupleTo() [1/2]

template<typename T >
void testing::internal::PrintTupleTo ( const T &  ,
std::integral_constant< size_t, 0 >  ,
::std::ostream *   
)

Definition at line 8677 of file gtest.h.

◆ PrintTupleTo() [2/2]

template<typename T , size_t I>
void testing::internal::PrintTupleTo ( const T &  t,
std::integral_constant< size_t, I >  ,
::std::ostream *  os 
)

Definition at line 8681 of file gtest.h.

◆ PrintWideStringTo() [1/2]

GTEST_API_ void testing::internal::PrintWideStringTo ( const ::std::wstring &  s,
::std::ostream *  os 
)

◆ PrintWideStringTo() [2/2]

void testing::internal::PrintWideStringTo ( const ::std::wstring &  s,
ostream *  os 
)

Definition at line 11448 of file gtest-all.cc.

◆ ReadEntireFile()

GTEST_API_ std::string testing::internal::ReadEntireFile ( FILE *  file)

Definition at line 10809 of file gtest-all.cc.

◆ ReportInvalidTestSuiteType()

GTEST_API_ void testing::internal::ReportInvalidTestSuiteType ( const char *  test_suite_name,
CodeLocation  code_location 
)

◆ SkipPrefix()

GTEST_API_ bool testing::internal::SkipPrefix ( const char *  prefix,
const char **  pstr 
)

◆ StreamableToString()

template<typename T >
std::string testing::internal::StreamableToString ( const T &  streamable)

Definition at line 2769 of file gtest.h.

◆ StringFromGTestEnv()

const char * testing::internal::StringFromGTestEnv ( const char *  flag,
const char *  default_value 
)

Definition at line 10991 of file gtest-all.cc.

◆ StripTrailingSpaces()

std::string testing::internal::StripTrailingSpaces ( std::string  str)
inline

Definition at line 2266 of file gtest.h.

◆ TersePrintPrefixToStrings() [1/2]

template<typename Tuple >
void testing::internal::TersePrintPrefixToStrings ( const Tuple &  ,
std::integral_constant< size_t, 0 >  ,
Strings  
)

Definition at line 8931 of file gtest.h.

◆ TersePrintPrefixToStrings() [2/2]

template<typename Tuple , size_t I>
void testing::internal::TersePrintPrefixToStrings ( const Tuple &  t,
std::integral_constant< size_t, I >  ,
Strings strings 
)

Definition at line 8934 of file gtest.h.

◆ ToLower()

char testing::internal::ToLower ( char  ch)
inline

Definition at line 2259 of file gtest.h.

◆ ToUpper()

char testing::internal::ToUpper ( char  ch)
inline

Definition at line 2262 of file gtest.h.

◆ UniversalPrint()

template<typename T >
void testing::internal::UniversalPrint ( const T &  value,
::std::ostream *  os 
)

Definition at line 8919 of file gtest.h.

◆ UniversalPrintArray() [1/5]

template<typename T >
void testing::internal::UniversalPrintArray ( const T *  begin,
size_t  len,
::std::ostream *  os 
)

Definition at line 8784 of file gtest.h.

◆ UniversalPrintArray() [2/5]

GTEST_API_ void testing::internal::UniversalPrintArray ( const char *  begin,
size_t  len,
::std::ostream *  os 
)

◆ UniversalPrintArray() [3/5]

GTEST_API_ void testing::internal::UniversalPrintArray ( const wchar_t *  begin,
size_t  len,
::std::ostream *  os 
)

◆ UniversalPrintArray() [4/5]

void testing::internal::UniversalPrintArray ( const char *  begin,
size_t  len,
ostream *  os 
)

Definition at line 11316 of file gtest-all.cc.

◆ UniversalPrintArray() [5/5]

void testing::internal::UniversalPrintArray ( const wchar_t *  begin,
size_t  len,
ostream *  os 
)

Definition at line 11322 of file gtest-all.cc.

◆ UniversalTersePrint()

template<typename T >
void testing::internal::UniversalTersePrint ( const T &  value,
::std::ostream *  os 
)

Definition at line 8910 of file gtest.h.

◆ UniversalTersePrintTupleFieldsToStrings()

template<typename Tuple >
Strings testing::internal::UniversalTersePrintTupleFieldsToStrings ( const Tuple &  value)

Definition at line 8948 of file gtest.h.

Variable Documentation

◆ fmt

GTEST_API_ const char* testing::internal::fmt

Definition at line 16430 of file gtest.h.

◆ kCurrentDirectoryString

const char testing::internal::kCurrentDirectoryString[] = "./"

Definition at line 9247 of file gtest-all.cc.

◆ kMaxBiggestInt

const BiggestInt testing::internal::kMaxBiggestInt
Initial value:
=
~(static_cast<BiggestInt>(1) << (8*sizeof(BiggestInt) - 1))
long long BiggestInt
Definition: gtest.h:2223

Definition at line 2420 of file gtest.h.

◆ kPathSeparator

const char testing::internal::kPathSeparator = '/'

Definition at line 9246 of file gtest-all.cc.

◆ kStackTraceMarker

GTEST_API_ const char testing::internal::kStackTraceMarker[]

◆ kStdErrFileno

const int testing::internal::kStdErrFileno = STDERR_FILENO

Definition at line 9776 of file gtest-all.cc.

◆ kStdOutFileno

const int testing::internal::kStdOutFileno = STDOUT_FILENO

Definition at line 9775 of file gtest-all.cc.

◆ kUnknownFile

const char testing::internal::kUnknownFile[] = "unknown file"

Definition at line 10616 of file gtest-all.cc.