Lines Matching defs:Message

34 // This header file defines the Message class.
54 // See Message& operator<<(...) below for why.
59 // The Message class works like an ostream repeater.
63 // 1. You stream a bunch of values to a Message object.
65 // 2. Then you stream the Message object to an ostream.
66 // This causes the text in the Message to be streamed
71 // testing::Message foo;
77 // Message is not intended to be inherited from. In particular, its
82 // latter (it causes an access violation if you do). The Message
85 class GTEST_API_ Message {
92 // Constructs an empty Message.
93 Message();
96 Message(const Message& msg) : ss_(new ::std::stringstream) { // NOLINT
100 // Constructs a Message from a C-string.
101 explicit Message(const char* str) : ss_(new ::std::stringstream) {
108 inline Message& operator <<(const T& value) {
115 inline Message& operator <<(const T& val) {
122 // namespace which Google Test's Message class is in.
126 // assertions, testing::Message must access the custom << operator
138 // stream a pointer to a Message, this definition will be used as it
149 inline Message& operator <<(T* const& pointer) { // NOLINT
163 // endl or other basic IO manipulators to Message will confuse the
165 Message& operator <<(BasicNarrowIoManip val) {
171 Message& operator <<(bool b) {
175 // These two overloads allow streaming a wide C string to a Message
177 Message& operator <<(const wchar_t* wide_c_str);
178 Message& operator <<(wchar_t* wide_c_str);
182 // encoding, and streams the result to this Message object.
183 Message& operator <<(const ::std::wstring& wstr);
188 // encoding, and streams the result to this Message object.
189 Message& operator <<(const ::wstring& wstr);
216 // See the comments in Message& operator <<(const T&) above for why
228 void operator=(const Message&);
231 // Streams a Message to an ostream.
232 inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
244 return (Message() << streamable).GetString();