47#ifndef GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
48#define GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
61void operator<<(const
testing::internal::Secret&,
int);
95 typedef std::ostream& (*BasicNarrowIoManip)(std::ostream&);
107 explicit Message(
const char* str) : ss_(new ::
std::stringstream) {
112 template <
typename T>
146 template <
typename T>
147 inline Message& operator <<(T*
const& pointer) {
148 if (pointer ==
nullptr) {
169 return *
this << (b ?
"true" :
"false");
174 Message& operator <<(
const wchar_t* wide_c_str);
175 Message& operator <<(
wchar_t* wide_c_str);
177#if GTEST_HAS_STD_WSTRING
180 Message& operator <<(const ::std::wstring& wstr);
187 std::string GetString()
const;
191 const std::unique_ptr< ::std::stringstream>
ss_;
199inline std::ostream& operator <<(std::ostream& os,
const Message& sb) {
210std::string StreamableToString(
const T& streamable) {
211 return (
Message() << streamable).GetString();
const std::unique_ptr< ::std::stringstream > ss_
std::string GetString() const
void operator=(const Message &)
Message(const Message &msg)
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
#define GTEST_DISABLE_MSC_WARNINGS_POP_()