aboutsummaryrefslogtreecommitdiff
path: root/googlemock/test/gmock-matchers-containers_test.cc
AgeCommit message (Collapse)AuthorFilesLines
2024-09-16Use matcher's description in AnyOf when matcher has no explanation.Abseil Team1-6/+13
PiperOrigin-RevId: 675298308 Change-Id: I32d32cafebc7a63fd03e6d957c3a47043d71e5d9
2024-07-30Directly include `gmock.h` and `gtest.h` in gmock-matchers tests.Abseil Team1-2/+2
These headers have been included through `gmock-matchers_test.h` PiperOrigin-RevId: 657612455 Change-Id: I65675f1cfe7789f1821ccacbe60acf90efd5c221
2024-05-20Print mismatches for UnorderedElements() of different sizes.Abseil Team1-3/+14
Changes the behavior of UnorderedElements()/UnorderedElementsAreArray() to print items-without-matchers and matchers-without-items in the case where the actual and expected are different sizes. PiperOrigin-RevId: 635451316 Change-Id: I2181bb28a14c14cdb577af9268d403e12e942bea
2023-04-21Use '=default' to define trivial constructor/destructorsTom Hughes1-1/+1
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html PiperOrigin-RevId: 526079054 Change-Id: Ia4db21e3e5f58b90de05d52fd94b291ed06d785d
2023-04-20Add missing std includesTom Hughes1-0/+12
PiperOrigin-RevId: 525850646 Change-Id: I64387f5b933beb79cd05636dca81b7a75213383e
2023-03-20Introduce std::make_unique and bool literals where possibleAbseil Team1-2/+2
PiperOrigin-RevId: 517910526 Change-Id: I398704f4b2ca0a55c86a06ca8b47d34c8670ddd7
2023-01-30Use GTEST_DISABLE_MSC_WARNINGS macros to disable warningsTom Hughes1-8/+4
Prior to this change we had a mixture of pragmas and GTEST_DISABLE_MSC_WARNINGS; this change consolidates all instances to use the macros. PiperOrigin-RevId: 505786926 Change-Id: I2be8f6304387393995081af42ed32c2ad1bba5a7
2022-11-30Make SizeIsMatcher::Impl conform to the contract of MatcherDescriberInterface.Abseil Team1-2/+2
MatcherDescriberInterface specifies that DescribeTo "should print a verb phrase", but "size ..." is not a verb phrase. Currently, ElementsAre(SizeIs(9)) is described as "has 1 element that size is equal to 9". With this change, it will be described as "has 1 element that has a size that is equal to 9". PiperOrigin-RevId: 492022324 Change-Id: I4083335f2419462464957521c1e033643b53b763
2022-04-26Generalize gmock-matchers_test to handle is_gtest_matcher-style matchers, too.Abseil Team1-16/+36
PiperOrigin-RevId: 444586594 Change-Id: I0de9b40b3773e3047a492f050266967ea935ae3e
2022-04-22Remove the legacy internal GTEST_DISALLOW_* macrosDerek Mauro1-2/+6
PiperOrigin-RevId: 443715444 Change-Id: I3ffd54b63d2728ae4a668ee7875c8c3c8188087c
2022-04-04Use ResultOf()'s result_description when explaining match result.Abseil Team1-0/+11
PiperOrigin-RevId: 439389646 Change-Id: Ie34adcdd2b24378e85962efac53b7bb89ed93803
2022-03-23Split gmock-matchers_test into 4 smaller test #3653Mattias Ellert1-0/+3094
The one large test does not link in limited memory environments Closes #3653 PiperOrigin-RevId: 436753193 Change-Id: Idd59b6509994fc642147b88279ee791cd1d7bdd0