• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/googletest/googletest/include/gtest/

Lines Matching defs:std

66 //   std::string ::testing::PrintToString(const T& value);
82 // std::vector<string> UniversalTersePrintTupleFieldsToStrings(
131 ::std::ostream* os);
154 static void PrintValue(const T& value, ::std::ostream* os) {
169 static void PrintValue(const T& value, ::std::ostream* os) {
170 std::string pretty_str = value.ShortDebugString();
188 static void PrintValue(const T& value, ::std::ostream* os) {
203 static void PrintValue(const T& value, ::std::ostream* os);
222 // Note that this operator<< takes a generic std::basic_ostream<Char,
223 // CharTraits> type instead of the more restricted std::ostream. If
224 // we define it to take an std::ostream instead, we'll get an
226 // Foo that supports streaming to std::basic_ostream<Char,
228 // operator<<(std::ostream&, const T&) or
229 // operator<<(std::basic_stream<Char, CharTraits>, const Foo&) is more
232 ::std::basic_ostream<Char, CharTraits>& operator<<(
233 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
260 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
284 // impossible to define #1 (e.g. when foo is ::std, defining
313 static ::std::string Format(const ToPrint& value) {
322 static ::std::string Format(const ToPrint* value) {
334 static ::std::string Format(CharType* value) { \
353 static ::std::string Format(CharType* value) { \
358 GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(char, ::std::string);
359 GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(const char, ::std::string);
372 GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(wchar_t, ::std::wstring);
373 GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(const wchar_t, ::std::wstring);
383 // against an std::string object, for example.
387 std::string FormatForComparisonFailureMessage(
403 void UniversalPrint(const T& value, ::std::ostream* os);
417 const C& container, ::std::ostream* os) {
450 T* p, ::std::ostream* os) {
462 T* p, ::std::ostream* os) {
477 const T& value, ::std::ostream* os) {
493 void PrintTo(const T& value, ::std::ostream* os) {
521 : std::is_function<typename std::remove_pointer<T>::type>::value
535 GTEST_API_ void PrintTo(unsigned char c, ::std::ostream* os);
536 GTEST_API_ void PrintTo(signed char c, ::std::ostream* os);
537 inline void PrintTo(char c, ::std::ostream* os) {
545 inline void PrintTo(bool x, ::std::ostream* os) {
556 GTEST_API_ void PrintTo(wchar_t wc, ::std::ostream* os);
559 GTEST_API_ void PrintTo(const char* s, ::std::ostream* os);
560 inline void PrintTo(char* s, ::std::ostream* os) {
566 inline void PrintTo(const signed char* s, ::std::ostream* os) {
569 inline void PrintTo(signed char* s, ::std::ostream* os) {
572 inline void PrintTo(const unsigned char* s, ::std::ostream* os) {
575 inline void PrintTo(unsigned char* s, ::std::ostream* os) {
586 GTEST_API_ void PrintTo(const wchar_t* s, ::std::ostream* os);
587 inline void PrintTo(wchar_t* s, ::std::ostream* os) {
598 void PrintRawArrayTo(const T a[], size_t count, ::std::ostream* os) {
606 // Overloads for ::string and ::std::string.
608 GTEST_API_ void PrintStringTo(const ::string&s, ::std::ostream* os);
609 inline void PrintTo(const ::string& s, ::std::ostream* os) {
614 GTEST_API_ void PrintStringTo(const ::std::string&s, ::std::ostream* os);
615 inline void PrintTo(const ::std::string& s, ::std::ostream* os) {
619 // Overloads for ::wstring and ::std::wstring.
621 GTEST_API_ void PrintWideStringTo(const ::wstring&s, ::std::ostream* os);
622 inline void PrintTo(const ::wstring& s, ::std::ostream* os) {
628 GTEST_API_ void PrintWideStringTo(const ::std::wstring&s, ::std::ostream* os);
629 inline void PrintTo(const ::std::wstring& s, ::std::ostream* os) {
636 inline void PrintTo(absl::string_view sp, ::std::ostream* os) {
637 PrintTo(::std::string(sp), os);
642 inline void PrintTo(std::nullptr_t, ::std::ostream* os) { *os << "(nullptr)"; }
649 void PrintTupleTo(const T& t, ::std::ostream* os);
653 // Overload for ::std::tr1::tuple. Needed for printing function arguments,
661 inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
666 void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
671 void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
676 void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
681 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
686 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t,
687 ::std::ostream* os) {
693 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6>& t,
694 ::std::ostream* os) {
700 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7>& t,
701 ::std::ostream* os) {
707 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8>& t,
708 ::std::ostream* os) {
714 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9>& t,
715 ::std::ostream* os) {
722 const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>& t,
723 ::std::ostream* os) {
730 void PrintTo(const ::std::tuple<Types...>& t, ::std::ostream* os) {
735 // Overload for std::pair.
737 void PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) {
759 static void Print(const T& value, ::std::ostream* os) {
781 static void Print(const ::absl::optional<T>& value, ::std::ostream* os) {
797 static void Print(const ::absl::variant<T...>& value, ::std::ostream* os) {
810 ::std::ostream* os;
819 void UniversalPrintArray(const T* begin, size_t len, ::std::ostream* os) {
842 const char* begin, size_t len, ::std::ostream* os);
846 const wchar_t* begin, size_t len, ::std::ostream* os);
854 static void Print(const T (&a)[N], ::std::ostream* os) {
867 static void Print(const T& value, ::std::ostream* os) {
886 static void Print(const T& value, ::std::ostream* os) {
893 static void Print(const T& value, ::std::ostream* os) {
900 static void Print(const T (&value)[N], ::std::ostream* os) {
907 static void Print(const char* str, ::std::ostream* os) {
911 UniversalPrint(std::string(str), os);
918 static void Print(char* str, ::std::ostream* os) {
927 static void Print(const wchar_t* str, ::std::ostream* os) {
931 UniversalPrint(::std::wstring(str), os);
940 static void Print(wchar_t* str, ::std::ostream* os) {
946 void UniversalTersePrint(const T& value, ::std::ostream* os) {
955 void UniversalPrint(const T& value, ::std::ostream* os) {
962 typedef ::std::vector< ::std::string> Strings;
978 static const size_t tuple_size = ::std::tr1::tuple_size<Tuple>::value;
981 struct tuple_element : ::std::tr1::tuple_element<static_cast<int>(I), Tuple> {
985 static typename AddReference<const typename ::std::tr1::tuple_element<
988 return ::std::tr1::get<I>(tuple);
997 struct TuplePolicy< ::std::tuple<Types...> > {
998 typedef ::std::tuple<Types...> Tuple;
999 static const size_t tuple_size = ::std::tuple_size<Tuple>::value;
1002 struct tuple_element : ::std::tuple_element<I, Tuple> {};
1005 static const typename ::std::tuple_element<I, Tuple>::type& get(
1007 return ::std::get<I>(tuple);
1011 const size_t TuplePolicy< ::std::tuple<Types...> >::tuple_size;
1027 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
1044 ::std::stringstream ss;
1054 static void PrintPrefixTo(const Tuple&, ::std::ostream*) {}
1061 // Tuple must be either std::tr1::tuple or std::tuple type.
1063 void PrintTupleTo(const Tuple& t, ::std::ostream* os) {
1087 const T& value, ::std::ostream* os) {
1094 ::std::string PrintToString(const T& value) {
1095 ::std::stringstream ss;