summaryrefslogtreecommitdiffstats
path: root/llvm/utils/unittest/googletest/include/gtest/gtest-message.h
Commit message (Collapse)AuthorAgeFilesLines
* [gtest] Support raw_ostream printing functions more comprehensively.Sam McCall2018-02-121-40/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: These are functions like operator<<(raw_ostream&, Foo). Previously these were only supported for messages. In the assertion EXPECT_EQ(A, B) << C; the local modifications would explicitly try to use raw_ostream printing for C. However A and B would look for a std::ostream printing function, and often fall back to gtest's default "168 byte object <00 01 FE 42 ...>". This patch pulls out the raw_ostream support into a new header under `custom/`. I changed the mechanism: instead of a convertible stream, we wrap the printed value in a proxy object to allow it to be sent to a std::ostream. I think the new way is clearer. I also changed the policy: we prefer raw_ostream printers over std::ostream ones. This is because the fallback printers are defined using std::ostream, while all the raw_ostream printers should be "good". Reviewers: ilya-biryukov, chandlerc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D43091 llvm-svn: 324876
* [gtest] Upgrade googletest to version 1.8.0, minimizing local changes.Chandler Carruth2017-01-041-27/+85
| | | | | | | | | This required re-working the streaming support and lit's support for '--gtest_list_tests' but otherwise seems to be a clean upgrade. Differential Revision: https://reviews.llvm.org/D28154 llvm-svn: 291029
* Merge gtest-1.6.0.Jay Foad2011-07-271-15/+15
| | | | llvm-svn: 136212
* Merge gtest-1.5.0.Benjamin Kramer2010-06-021-2/+8
| | | | llvm-svn: 105354
* Merge gtest-1.4.0.Benjamin Kramer2010-06-021-2/+2
| | | | llvm-svn: 105353
* Merge gtest-1.3.0.Benjamin Kramer2010-06-021-2/+2
| | | | | | | OSX users: make sure that CrashReporter is disabled when running unit tests. Death tests are enabled now so you'll get a ton of message boxes. llvm-svn: 105352
* Import of Google Test 1.2.1, with the non-essential bits removed.Misha Brukman2008-12-311-0/+224
Added a README.LLVM file to indicate which files and directories were removed from the original source tarball. llvm-svn: 61526
OpenPOWER on IntegriCloud