Home | History | Annotate | Download | only in gtest

Lines Matching refs:PrintTo

40 // defining either operator<<() or PrintTo() in the namespace that
45 // 1. foo::PrintTo(const T&, ostream*)
119 // nor PrintTo().
129 // operator<< nor PrintTo() is defined for T, where kTypeKind is the
161 // Since T has no << operator or PrintTo() but can be implicitly
179 // type T and T has neither << operator nor PrintTo().
216 // user doesn't define PrintTo() for it.
267 // a PrintTo() for it.
285 // We cannot call PrintTo(*it, os) here as PrintTo() doesn't
297 // pointer, when the user doesn't define PrintTo() for it. (A member
333 // doesn't define PrintTo() for it.
343 // UniversalPrinter<T>::Print() does when PrintTo() is not specialized
347 // an overload of PrintTo() in the namespace where Foo is defined. We
353 void PrintTo(const T& value, ::std::ostream* os) {
364 // override Google Mock's format by defining a PrintTo() or
374 // PrintTo(const T& x, ...);
375 // PrintTo(T* x, ...);
379 // The following list of PrintTo() overloads tells
384 GTEST_API_ void PrintTo(unsigned char c, ::std::ostream* os);
385 GTEST_API_ void PrintTo(signed char c, ::std::ostream* os);
386 inline void PrintTo(char c, ::std::ostream* os) {
390 PrintTo(static_cast<unsigned char>(c), os);
394 inline void PrintTo(bool x, ::std::ostream* os) {
405 GTEST_API_ void PrintTo(wchar_t wc, ::std::ostream* os);
408 GTEST_API_ void PrintTo(const char* s, ::std::ostream* os);
409 inline void PrintTo(char* s, ::std::ostream* os) {
410 PrintTo(ImplicitCast_<const char*>(s), os);
415 inline void PrintTo(const signed char* s, ::std::ostream* os) {
416 PrintTo(ImplicitCast_<const void*>(s), os);
418 inline void PrintTo(signed char* s, ::std::ostream* os) {
419 PrintTo(ImplicitCast_<const void*>(s), os);
421 inline void PrintTo(const unsigned char* s, ::std::ostream* os) {
422 PrintTo(ImplicitCast_<const void*>(s), os);
424 inline void PrintTo(unsigned char* s, ::std::ostream* os) {
425 PrintTo(ImplicitCast_<const void*>(s), os);
435 GTEST_API_ void PrintTo(const wchar_t* s, ::std::ostream* os);
436 inline void PrintTo(wchar_t* s, ::std::ostream* os) {
437 PrintTo(ImplicitCast_<const wchar_t*>(s), os);
458 inline void PrintTo(const ::string& s, ::std::ostream* os) {
464 inline void PrintTo(const ::std::string& s, ::std::ostream* os) {
471 inline void PrintTo(const ::wstring& s, ::std::ostream* os) {
478 inline void PrintTo(const ::std::wstring& s, ::std::ostream* os) {
492 // Overloaded PrintTo() for tuples of various arities. We support
497 inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
502 void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
507 void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
512 void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
517 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
522 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t,
529 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6>& t,
536 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7>& t,
543 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8>& t,
550 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9>& t,
557 void PrintTo(
566 void PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) {
577 // pick the right overload of PrintTo() for T.
588 // Note: we deliberately don't call this PrintTo(), as that name
589 // conflicts with ::testing::internal::PrintTo in the body of the
592 // By default, ::testing::internal::PrintTo() is used for printing
596 // PrintTo() function defined in its namespace, that function will
600 PrintTo(value, os);
762 // This helper template allows PrintTo() for tuples and