aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/test/gmock_output_test_.cc
diff options
context:
space:
mode:
authorTanzinul Islam <t_17_7@hotmail.com>2018-04-01 13:43:57 +0100
committerTanzinul Islam <t_17_7@hotmail.com>2018-04-01 13:43:57 +0100
commit5c7c365d5f3e5467de350f2e81a31407a3f52505 (patch)
tree475f7996651558fde1e45d7f37b62bc3b9aca272 /googlemock/test/gmock_output_test_.cc
parent6d089311ca2a6fd83dff9ed68c1d3eb00c1443d0 (diff)
parent7888184f28509dba839e3683409443e0b5bb8948 (diff)
downloadgoogletest-5c7c365d5f3e5467de350f2e81a31407a3f52505.tar.gz
googletest-5c7c365d5f3e5467de350f2e81a31407a3f52505.tar.bz2
googletest-5c7c365d5f3e5467de350f2e81a31407a3f52505.zip
Merge branch 'master' into fix_death_test_child_mingw_wer_issue1116
Diffstat (limited to 'googlemock/test/gmock_output_test_.cc')
-rw-r--r--googlemock/test/gmock_output_test_.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/googlemock/test/gmock_output_test_.cc b/googlemock/test/gmock_output_test_.cc
index 44cba342..d80e2b08 100644
--- a/googlemock/test/gmock_output_test_.cc
+++ b/googlemock/test/gmock_output_test_.cc
@@ -47,6 +47,7 @@ using testing::NaggyMock;
using testing::Ref;
using testing::Return;
using testing::Sequence;
+using testing::Value;
class MockFoo {
public:
@@ -268,6 +269,10 @@ TEST_F(GMockOutputTest, CatchesLeakedMocks) {
// Both foo1 and foo2 are deliberately leaked.
}
+MATCHER_P2(IsPair, first, second, "") {
+ return Value(arg.first, first) && Value(arg.second, second);
+}
+
void TestCatchesLeakedMocksInAdHocTests() {
MockFoo* foo = new MockFoo;
@@ -280,7 +285,6 @@ void TestCatchesLeakedMocksInAdHocTests() {
int main(int argc, char **argv) {
testing::InitGoogleMock(&argc, argv);
-
// Ensures that the tests pass no matter what value of
// --gmock_catch_leaked_mocks and --gmock_verbose the user specifies.
testing::GMOCK_FLAG(catch_leaked_mocks) = true;