aboutsummaryrefslogtreecommitdiffstats
path: root/test/gmock_leak_test_.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/gmock_leak_test_.cc')
-rw-r--r--test/gmock_leak_test_.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/gmock_leak_test_.cc b/test/gmock_leak_test_.cc
index 157bd7ec..24dfc1ff 100644
--- a/test/gmock_leak_test_.cc
+++ b/test/gmock_leak_test_.cc
@@ -48,7 +48,12 @@ class FooInterface {
class MockFoo : public FooInterface {
public:
+ MockFoo() {}
+
MOCK_METHOD0(DoThis, void());
+
+ private:
+ GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
};
TEST(LeakTest, LeakedMockWithExpectCallCausesFailureWhenLeakCheckingIsEnabled) {