44 virtual ~FooInterface() {}
45 virtual void DoThis() = 0;
48 class MockFoo :
public FooInterface {
58 TEST(LeakTest, LeakedMockWithExpectCallCausesFailureWhenLeakCheckingIsEnabled) {
59 MockFoo*
foo =
new MockFoo;
71 TEST(LeakTest, LeakedMockWithOnCallCausesFailureWhenLeakCheckingIsEnabled) {
72 MockFoo* foo =
new MockFoo;
83 TEST(LeakTest, CatchesMultipleLeakedMockObjects) {
84 MockFoo* foo1 =
new MockFoo;
85 MockFoo* foo2 =
new MockFoo;
#define MOCK_METHOD0(m,...)
#define TEST(test_suite_name, test_name)
#define ON_CALL(obj, call)
ADVar foo(double d, ADVar x, ADVar y)
internal::ReturnAction< R > Return(R value)
#define EXPECT_CALL(obj, call)
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)