46 #ifndef GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ 47 #define GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ 51 #include "gtest/internal/gtest-port.h" 55 void operator<<(
const testing::internal::Secret&,
int);
89 typedef std::ostream& (*BasicNarrowIoManip)(std::ostream&);
101 explicit Message(
const char* str) : ss_(new ::
std::stringstream) {
107 template <
typename T>
114 template <
typename T>
148 template <
typename T>
150 if (pointer == NULL) {
157 #endif // GTEST_OS_SYMBIAN 172 return *
this << (b ?
"true" :
"false");
180 #if GTEST_HAS_STD_WSTRING 184 #endif // GTEST_HAS_STD_WSTRING 186 #if GTEST_HAS_GLOBAL_WSTRING 190 #endif // GTEST_HAS_GLOBAL_WSTRING 205 template <
typename T>
207 if (pointer == NULL) {
213 template <
typename T>
221 #endif // GTEST_OS_SYMBIAN 228 void operator=(
const Message&);
242 template <
typename T>
244 return (
Message() << streamable).GetString();
250 #endif // GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
std::ostream & operator<<(std::ostream &os, const Message &sb)
const internal::scoped_ptr< ::std::stringstream > ss_
Message(const Message &msg)
std::string StreamableToString(const T &streamable)
void operator<<(const testing::internal::Secret &, int)
std::string GetString() const
static const char *const value