48#ifndef GOOGLETEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
49#define GOOGLETEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
62#include "absl/strings/internal/has_absl_stringify.h"
63#include "absl/strings/str_cat.h"
71void operator<<(const
testing::internal::Secret&,
int);
105 typedef std::ostream& (*BasicNarrowIoManip)(std::ostream&);
117 explicit Message(
const char* str) : ss_(new ::
std::stringstream) {
127 typename std::enable_if<
128 !absl::strings_internal::HasAbslStringify<T>::value,
155 template <
typename T,
156 typename std::enable_if<
157 absl::strings_internal::HasAbslStringify<T>::value,
163 *ss_ << absl::StrCat(val);
181 template <
typename T>
183 if (pointer ==
nullptr) {
210#if GTEST_HAS_STD_WSTRING
220 std::string GetString()
const;
224 const std::unique_ptr< ::std::stringstream> ss_;
228 void operator=(
const Message&);
243std::string StreamableToString(
const T& streamable) {
244 return (
Message() << streamable).GetString();
Definition gtest-message.h:101
Message & operator<<(T *const &pointer)
Definition gtest-message.h:182
std::string GetString() const
Definition gtest.cc:1301
Message(const char *str)
Definition gtest-message.h:117
Message(const Message &msg)
Definition gtest-message.h:112
Message & operator<<(const T &val)
Definition gtest-message.h:132
Message & operator<<(BasicNarrowIoManip val)
Definition gtest-message.h:197
Message & operator<<(bool b)
Definition gtest-message.h:203
pRC::Float<> T
Definition externs_nonTT.hpp:1
std::ostream & operator<<(std::ostream &stream, const CustomStruct &val)
Definition googletest-param-test-test.cc:999
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
Definition gtest-port.h:360
#define GTEST_API_
Definition gtest-port.h:842
#define GTEST_DISABLE_MSC_WARNINGS_POP_()
Definition gtest-port.h:361
Definition gmock-actions.h:151