Lines Matching full:message
32 // This header file defines the Message class.
70 // See Message& operator<<(...) below for why.
75 // The Message class works like an ostream repeater.
79 // 1. You stream a bunch of values to a Message object.
81 // 2. Then you stream the Message object to an ostream.
82 // This causes the text in the Message to be streamed
87 // testing::Message foo;
93 // Message is not intended to be inherited from. In particular, its
98 // latter (it causes an access violation if you do). The Message
101 class GTEST_API_ Message {
108 // Constructs an empty Message.
109 Message();
112 Message(const Message& msg) : ss_(new ::std::stringstream) { // NOLINT in Message() function
116 // Constructs a Message from a C-string.
117 explicit Message(const char* str) : ss_(new ::std::stringstream) { in Message() function
132 inline Message& operator<<(const T& val) {
139 // namespace which Google Test's Message class is in.
143 // assertions, testing::Message must access the custom << operator
163 inline Message& operator<<(const T& val) {
175 // stream a pointer to a Message, this definition will be used as it
186 inline Message& operator<<(T* const& pointer) { // NOLINT
203 // endl or other basic IO manipulators to Message will confuse the
205 Message& operator<<(BasicNarrowIoManip val) {
211 Message& operator<<(bool b) { return *this << (b ? "true" : "false"); }
213 // These two overloads allow streaming a wide C string to a Message
215 Message& operator<<(const wchar_t* wide_c_str);
216 Message& operator<<(wchar_t* wide_c_str);
220 // encoding, and streams the result to this Message object.
221 Message& operator<<(const ::std::wstring& wstr);
236 void operator=(const Message&);
239 // Streams a Message to an ostream.
240 inline std::ostream& operator<<(std::ostream& os, const Message& sb) {
252 return (Message() << streamable).GetString(); in StreamableToString()