• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/llvmCore-3425.0.34/utils/unittest/googletest/include/gtest/

Lines Matching refs:os

116                                      ::std::ostream* os);
127 // TypeWithoutFormatter<T, kTypeKind>::PrintValue(value, os) is called
135 static void PrintValue(const T& value, ::std::ostream* os) {
137 sizeof(value), os);
149 static void PrintValue(const T& value, ::std::ostream* os) {
154 *os << ("<" + pretty_str + ">");
168 static void PrintValue(const T& value, ::std::ostream* os) {
170 *os << kBigInt;
200 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
204 kConvertibleToInteger : kOtherType)>::PrintValue(x, &os);
205 return os;
218 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
245 *os << value;
264 void UniversalPrint(const T& value, ::std::ostream* os);
271 const C& container, ::std::ostream* os) {
273 *os << '{';
278 *os << ',';
280 *os << " ...";
284 *os << ' ';
285 // We cannot call PrintTo(*it, os) here as PrintTo() doesn't
287 internal::UniversalPrint(*it, os);
291 *os << ' ';
293 *os << '}';
305 T* p, ::std::ostream* os) {
307 *os << "NULL";
318 *os << p;
320 // T is a function type, so '*os << p' doesn't do what we want
326 *os << reinterpret_cast<const void*>(
337 const T& value, ::std::ostream* os) {
338 ::testing_internal::DefaultPrintNonContainerTo(value, os);
353 void PrintTo(const T& value, ::std::ostream* os) {
376 DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os);
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) {
395 *os << (x ? "true" : "false");
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);
447 void PrintRawArrayTo(const T a[], size_t count, ::std::ostream* os) {
448 UniversalPrint(a[0], os);
450 *os << ", ";
451 UniversalPrint(a[i], os);
457 GTEST_API_ void PrintStringTo(const ::string&s, ::std::ostream* os);
458 inline void PrintTo(const ::string& s, ::std::ostream* os) {
459 PrintStringTo(s, os);
463 GTEST_API_ void PrintStringTo(const ::std::string&s, ::std::ostream* os);
464 inline void PrintTo(const ::std::string& s, ::std::ostream* os) {
465 PrintStringTo(s, os);
470 GTEST_API_ void PrintWideStringTo(const ::wstring&s, ::std::ostream* os);
471 inline void PrintTo(const ::wstring& s, ::std::ostream* os) {
472 PrintWideStringTo(s, os);
477 GTEST_API_ void PrintWideStringTo(const ::std::wstring&s, ::std::ostream* os);
478 inline void PrintTo(const ::std::wstring& s, ::std::ostream* os) {
479 PrintWideStringTo(s, os);
490 void PrintTupleTo(const T& t, ::std::ostream* os);
497 inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
498 PrintTupleTo(t, os);
502 void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
503 PrintTupleTo(t, os);
507 void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
508 PrintTupleTo(t, os);
512 void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
513 PrintTupleTo(t, os);
517 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
518 PrintTupleTo(t, os);
523 ::std::ostream* os) {
524 PrintTupleTo(t, os);
530 ::std::ostream* os) {
531 PrintTupleTo(t, os);
537 ::std::ostream* os) {
538 PrintTupleTo(t, os);
544 ::std::ostream* os) {
545 PrintTupleTo(t, os);
551 ::std::ostream* os) {
552 PrintTupleTo(t, os);
559 ::std::ostream* os) {
560 PrintTupleTo(t, os);
566 void PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) {
567 *os << '(';
568 // We cannot use UniversalPrint(value.first, os) here, as T1 may be
570 UniversalPrinter<T1>::Print(value.first, os);
571 *os << ", ";
572 UniversalPrinter<T2>::Print(value.second, os);
573 *os << ')';
591 static void Print(const T& value, ::std::ostream* os) {
600 PrintTo(value, os);
608 // UniversalPrintArray(begin, len, os) prints an array of 'len'
611 void UniversalPrintArray(const T* begin, size_t len, ::std::ostream* os) {
613 *os << "{}";
615 *os << "{ ";
623 PrintRawArrayTo(begin, len, os);
625 PrintRawArrayTo(begin, kChunkSize, os);
626 *os << ", ..., ";
627 PrintRawArrayTo(begin + len - kChunkSize, kChunkSize, os);
629 *os << " }";
635 ::std::ostream* os);
643 static void Print(const T (&a)[N], ::std::ostream* os) {
644 UniversalPrintArray(a, N, os);
659 static void Print(const T& value, ::std::ostream* os) {
662 *os << "@" << reinterpret_cast<const void*>(&value) << " ";
665 UniversalPrint(value, os);
677 void UniversalTersePrint(const T& value, ::std::ostream* os) {
678 UniversalPrint(value, os);
680 inline void UniversalTersePrint(const char* str, ::std::ostream* os) {
682 *os << "NULL";
684 UniversalPrint(string(str), os);
687 inline void UniversalTersePrint(char* str, ::std::ostream* os) {
688 UniversalTersePrint(static_cast<const char*>(str), os);
696 void UniversalPrint(const T& value, ::std::ostream* os) {
697 UniversalPrinter<T>::Print(value, os);
706 // TuplePrefixPrinter<N>::PrintPrefixTo(t, os) prints the first N
715 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
716 TuplePrefixPrinter<N - 1>::PrintPrefixTo(t, os);
717 *os << ", ";
719 ::Print(::std::tr1::get<N - 1>(t), os);
750 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
752 Print(::std::tr1::get<0>(t), os);
766 void PrintTupleTo(const T& t, ::std::ostream* os) {
767 *os << "(";
769 PrintPrefixTo(t, os);
770 *os << ")";