Lines Matching refs:Message
33 // This header file defines the Message class.
59 // See Message& operator<<(...) below for why.
64 // The Message class works like an ostream repeater.
68 // 1. You stream a bunch of values to a Message object.
70 // 2. Then you stream the Message object to an ostream.
71 // This causes the text in the Message to be streamed
76 // testing::Message foo;
82 // Message is not intended to be inherited from. In particular, its
87 // latter (it causes an access violation if you do). The Message
90 class GTEST_API_ Message {
97 // Constructs an empty Message.
98 Message();
101 Message(const Message& msg) : ss_(new ::std::stringstream) { // NOLINT
105 // Constructs a Message from a C-string.
106 explicit Message(const char* str) : ss_(new ::std::stringstream) {
112 inline Message& operator <<(const T& val) {
119 // namespace which Google Test's Message class is in.
123 // assertions, testing::Message must access the custom << operator
135 // stream a pointer to a Message, this definition will be used as it
146 inline Message& operator <<(T* const& pointer) { // NOLINT
159 // endl or other basic IO manipulators to Message will confuse the
161 Message& operator <<(BasicNarrowIoManip val) {
167 Message& operator <<(bool b) {
171 // These two overloads allow streaming a wide C string to a Message
173 Message& operator <<(const wchar_t* wide_c_str);
174 Message& operator <<(wchar_t* wide_c_str);
178 // encoding, and streams the result to this Message object.
179 Message& operator <<(const ::std::wstring& wstr);
194 void operator=(const Message&);
197 // Streams a Message to an ostream.
198 inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
210 return (Message() << streamable).GetString();