47 #ifndef GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ 48 #define GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ 52 #include "gtest/internal/gtest-port.h" 54 GTEST_DISABLE_MSC_WARNINGS_PUSH_(4251 \
59 void operator<<(const
testing::internal::Secret&,
int);
93 typedef std::ostream& (*BasicNarrowIoManip)(std::ostream&);
101 *ss_ << msg.GetString();
105 explicit Message(
const char* str) : ss_(new ::std::stringstream) {
111 template <
typename T>
112 inline Message& operator <<(
const T& value) {
118 template <
typename T>
119 inline Message& operator <<(
const T& val) {
152 template <
typename T>
153 inline Message& operator <<(T*
const& pointer) {
154 if (pointer == NULL) {
161 #endif // GTEST_OS_SYMBIAN 169 Message& operator <<(BasicNarrowIoManip val) {
176 return *
this << (b ?
"true" :
"false");
181 Message& operator <<(
const wchar_t* wide_c_str);
182 Message& operator <<(
wchar_t* wide_c_str);
184 #if GTEST_HAS_STD_WSTRING 187 Message& operator <<(const ::std::wstring& wstr);
188 #endif // GTEST_HAS_STD_WSTRING 190 #if GTEST_HAS_GLOBAL_WSTRING 193 Message& operator <<(const ::wstring& wstr);
194 #endif // GTEST_HAS_GLOBAL_WSTRING 200 std::string GetString()
const;
208 template <
typename T>
210 if (pointer == NULL) {
216 template <
typename T>
224 #endif // GTEST_OS_SYMBIAN 231 void operator=(
const Message&);
235 inline std::ostream& operator <<(std::ostream& os,
const Message& sb) {
236 return os << sb.GetString();
245 template <
typename T>
246 std::string StreamableToString(
const T& streamable) {
247 return (
Message() << streamable).GetString();
253 GTEST_DISABLE_MSC_WARNINGS_POP_()
255 #endif // GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ Definition: gtest-death-test.h:43
Definition: gtest-message.h:89
Definition: gtest-port.h:2342