Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal2 Namespace Reference

Classes

class  TypeWithoutFormatter
 
class  TypeWithoutFormatter< T, kConvertibleToInteger >
 
class  TypeWithoutFormatter< T, kProtobuf >
 

Enumerations

enum  TypeKind { kProtobuf , kConvertibleToInteger , kOtherType }
 

Functions

GTEST_API_ void PrintBytesInObjectTo (const unsigned char *obj_bytes, size_t count, ::std::ostream *os)
 
template<typename Char , typename CharTraits , typename T >
::std::basic_ostream< Char, CharTraits > & operator<< (::std::basic_ostream< Char, CharTraits > &os, const T &x)
 
void PrintBytesInObjectTo (const unsigned char *obj_bytes, size_t count, ostream *os)
 

Variables

const size_t kProtobufOneLinerMaxLength = 50
 

Enumeration Type Documentation

◆ TypeKind

Enumerator
kProtobuf 
kConvertibleToInteger 
kOtherType 

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

133 {
134 kProtobuf, // a protobuf type
135 kConvertibleToInteger, // a type implicitly convertible to BiggestInt
136 // (e.g. a named or unnamed enum type)
137#if GTEST_HAS_ABSL
138 kConvertibleToStringView, // a type implicitly convertible to
139 // absl::string_view
140#endif
141 kOtherType // anything else
142};

Function Documentation

◆ operator<<()

template<typename Char , typename CharTraits , typename T >
::std::basic_ostream< Char, CharTraits > & testing::internal2::operator<< ( ::std::basic_ostream< Char, CharTraits > & os,
const T & x )

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

231 {
233 ? kProtobuf
237 :
238#if GTEST_HAS_ABSL
240 const T&, absl::string_view>::value
241 ? kConvertibleToStringView
242 :
243#endif
245 return os;
246}
os_t os
::std::string PrintValue(const T &value)
long long BiggestInt
#define value
Definition pkcs11.h:157
#define T(meth, val, expected)

◆ PrintBytesInObjectTo() [1/2]

GTEST_API_ void testing::internal2::PrintBytesInObjectTo ( const unsigned char * obj_bytes,
size_t count,
::std::ostream * os )
Here is the caller graph for this function:

◆ PrintBytesInObjectTo() [2/2]

void testing::internal2::PrintBytesInObjectTo ( const unsigned char * obj_bytes,
size_t count,
ostream * os )

Definition at line 115 of file gtest-printers.cc.

116 {
117 PrintBytesInObjectToImpl(obj_bytes, count, os);
118}
int * count

Variable Documentation

◆ kProtobufOneLinerMaxLength

const size_t testing::internal2::kProtobufOneLinerMaxLength = 50

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