proxygen
gtest-printers.h File Reference
#include <ostream>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include "gtest/internal/gtest-port.h"
#include "gtest/internal/gtest-internal.h"
#include "gtest/internal/custom/gtest-printers.h"

Go to the source code of this file.

Classes

class  testing::internal2::TypeWithoutFormatter< T, kTypeKind >
 
class  testing::internal2::TypeWithoutFormatter< T, kProtobuf >
 
class  testing::internal2::TypeWithoutFormatter< T, kConvertibleToInteger >
 
class  testing::internal::FormatForComparison< ToPrint, OtherOperand >
 
class  testing::internal::FormatForComparison< ToPrint[N], OtherOperand >
 
class  testing::internal::FormatForComparison< char *, OtherOperand >
 
class  testing::internal::FormatForComparison< const char *, OtherOperand >
 
class  testing::internal::FormatForComparison< wchar_t *, OtherOperand >
 
class  testing::internal::FormatForComparison< const wchar_t *, OtherOperand >
 
class  testing::internal::FormatForComparison< char *,::std::string >
 
class  testing::internal::FormatForComparison< const char *,::std::string >
 
class  testing::internal::UniversalPrinter< T >
 
class  testing::internal::UniversalPrinter< T >
 
class  testing::internal::UniversalPrinter< T[N]>
 
class  testing::internal::UniversalPrinter< T & >
 
class  testing::internal::UniversalTersePrinter< T >
 
class  testing::internal::UniversalTersePrinter< T & >
 
class  testing::internal::UniversalTersePrinter< T[N]>
 
class  testing::internal::UniversalTersePrinter< const char * >
 
class  testing::internal::UniversalTersePrinter< char * >
 
class  testing::internal::UniversalTersePrinter< wchar_t * >
 
struct  testing::internal::TuplePolicy< TupleT >
 

Namespaces

 testing
 
 testing::internal2
 
 testing_internal
 
 testing::internal
 

Macros

#define GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(CharType)
 
#define GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(CharType, OtherStringType)
 

Enumerations

enum  testing::internal2::TypeKind {
  testing::internal2::kProtobuf, testing::internal2::kConvertibleToInteger, testing::internal2::kOtherType, testing::internal2::kProtobuf,
  testing::internal2::kConvertibleToInteger, testing::internal2::kOtherType, testing::internal2::kProtobuf, testing::internal2::kConvertibleToInteger,
  testing::internal2::kOtherType
}
 

Functions

GTEST_API_ void testing::internal2::PrintBytesInObjectTo (const unsigned char *obj_bytes, size_t count,::std::ostream *os)
 
template<typename Char , typename CharTraits , typename T >
::std::basic_ostream< Char, CharTraits > & testing::internal2::operator<< (::std::basic_ostream< Char, CharTraits > &os, const T &x)
 
template<typename T >
void testing_internal::DefaultPrintNonContainerTo (const T &value,::std::ostream *os)
 
template<typename T1 , typename T2 >
std::string testing::internal::FormatForComparisonFailureMessage (const T1 &value, const T2 &)
 
template<typename T >
void testing::internal::UniversalPrint (const T &value,::std::ostream *os)
 
template<typename C >
void testing::internal::DefaultPrintTo (IsContainer, false_type, const C &container,::std::ostream *os)
 
template<typename T >
void testing::internal::DefaultPrintTo (IsNotContainer, true_type, T *p,::std::ostream *os)
 
template<typename T >
void testing::internal::DefaultPrintTo (IsNotContainer, false_type, const T &value,::std::ostream *os)
 
template<typename T >
void testing::internal::PrintTo (const T &value,::std::ostream *os)
 
GTEST_API_ void testing::internal::PrintTo (unsigned char c,::std::ostream *os)
 
GTEST_API_ void testing::internal::PrintTo (signed char c,::std::ostream *os)
 
void testing::internal::PrintTo (char c,::std::ostream *os)
 
void testing::internal::PrintTo (bool x,::std::ostream *os)
 
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)
 
void testing::internal::PrintTo (const signed char *s,::std::ostream *os)
 
void testing::internal::PrintTo (signed char *s,::std::ostream *os)
 
void testing::internal::PrintTo (const unsigned char *s,::std::ostream *os)
 
void testing::internal::PrintTo (unsigned char *s,::std::ostream *os)
 
GTEST_API_ void testing::internal::PrintTo (const wchar_t *s,::std::ostream *os)
 
void testing::internal::PrintTo (wchar_t *s,::std::ostream *os)
 
template<typename T >
void testing::internal::PrintRawArrayTo (const T a[], size_t count,::std::ostream *os)
 
GTEST_API_ void testing::internal::PrintStringTo (const ::std::string &s,::std::ostream *os)
 
void testing::internal::PrintTo (const ::std::string &s,::std::ostream *os)
 
template<typename T1 , typename T2 >
void testing::internal::PrintTo (const ::std::pair< T1, T2 > &value,::std::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)
 
template<typename T >
::std::string testing::PrintToString (const T &value)
 

Macro Definition Documentation

#define GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ (   CharType)
Value:
template <typename OtherOperand> \
class FormatForComparison<CharType*, OtherOperand> { \
public: \
static ::std::string Format(CharType* value) { \
return ::testing::PrintToString(static_cast<const void*>(value)); \
} \
}
::std::string PrintToString(const T &value)
static const char *const value
Definition: Conv.cpp:50
const char * string
Definition: Conv.cpp:212

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

#define GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ (   CharType,
  OtherStringType 
)
Value:
template <> \
class FormatForComparison<CharType*, OtherStringType> { \
public: \
static ::std::string Format(CharType* value) { \
} \
}
::std::string PrintToString(const T &value)
static const char *const value
Definition: Conv.cpp:50
const char * string
Definition: Conv.cpp:212

Definition at line 311 of file gtest-printers.h.