Home | History | Annotate | Download | only in gtest

Lines Matching defs:Message

34 // This header file defines the Message class.
56 // The Message class works like an ostream repeater.
60 // 1. You stream a bunch of values to a Message object.
62 // 2. Then you stream the Message object to an ostream.
63 // This causes the text in the Message to be streamed
68 // testing::Message foo;
74 // Message is not intended to be inherited from. In particular, its
79 // latter (it causes an access violation if you do). The Message
82 class GTEST_API_ Message {
89 // Constructs an empty Message.
94 Message() : ss_(new ::std::stringstream) {
96 // a double to a 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) {
113 inline Message& operator <<(const T& value) {
120 inline Message& operator <<(const T& val) {
128 // stream a pointer to a Message, this definition will be used as it
139 inline Message& operator <<(T* const& pointer) { // NOLINT
153 // endl or other basic IO manipulators to Message will confuse the
155 Message& operator <<(BasicNarrowIoManip val) {
161 Message& operator <<(bool b) {
165 // These two overloads allow streaming a wide C string to a Message
167 Message& operator <<(const wchar_t* wide_c_str) {
170 Message& operator <<(wchar_t* wide_c_str) {
176 // encoding, and streams the result to this Message object.
177 Message& operator <<(const ::std::wstring& wstr);
182 // encoding, and streams the result to this Message object.
183 Message& operator <<(const ::wstring& wstr);
220 void operator=(const Message&);
223 // Streams a Message to an ostream.
224 inline std::ostream& operator <<(std::ostream& os, const Message& sb) {