diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-03-26 11:19:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-26 11:19:10 -0400 |
commit | 78579756a80619ae06e8850796ed95bc6043a92d (patch) | |
tree | 3341a813e84dfb87275aa8d24084da410353f42c /googlemock/test/gmock_output_test_.cc | |
parent | dfa853b63d17c787914b663b50c2095a0c5b706e (diff) | |
parent | 6aae206bc2970068cf6bbf72a9ad07f8464cd0d0 (diff) | |
download | googletest-78579756a80619ae06e8850796ed95bc6043a92d.tar.gz googletest-78579756a80619ae06e8850796ed95bc6043a92d.tar.bz2 googletest-78579756a80619ae06e8850796ed95bc6043a92d.zip |
Merge pull request #1512 from gennadiycivil/master
merges, gmock - 1
Diffstat (limited to 'googlemock/test/gmock_output_test_.cc')
-rw-r--r-- | googlemock/test/gmock_output_test_.cc | 6 |
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; |