diff options
author | Gennadiy Civil <misterg@google.com> | 2018-03-22 15:35:37 -0400 |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-03-22 15:35:37 -0400 |
commit | b7c568326c969c59a5f90e4731dc5b91f260c6f0 (patch) | |
tree | 318623a0ae1ab868a757ac7ee9eb2e444ce8e798 /googlemock/test/gmock_output_test_.cc | |
parent | 4e89c76db83684d4c5b86eb9186af3e33f5f4df0 (diff) | |
download | googletest-b7c568326c969c59a5f90e4731dc5b91f260c6f0.tar.gz googletest-b7c568326c969c59a5f90e4731dc5b91f260c6f0.tar.bz2 googletest-b7c568326c969c59a5f90e4731dc5b91f260c6f0.zip |
merging, 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; |