Commit 36777251 authored by Maurice Gilden's avatar Maurice Gilden
Browse files

Switch return type to class without default constructor

parent cc999000
......@@ -62,6 +62,12 @@ using testing::internal::CaptureStdout;
using testing::internal::GetCapturedStdout;
#endif
// Dummy class without default constructor.
class Dummy {
public:
Dummy(int) {}
};
// Defines some mock classes needed by the tests.
class Foo {
......@@ -79,7 +85,7 @@ class MockFoo : public Foo {
MOCK_METHOD0(DoThis, void());
MOCK_METHOD1(DoThat, int(bool flag));
MOCK_METHOD0(ReturnSomething, Mock());
MOCK_METHOD0(ReturnSomething, Dummy());
private:
GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment