summaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/test/gmock-nice-strict_test.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/googlemock/test/gmock-nice-strict_test.cc b/googlemock/test/gmock-nice-strict_test.cc
index 8670681..1d7784b 100644
--- a/googlemock/test/gmock-nice-strict_test.cc
+++ b/googlemock/test/gmock-nice-strict_test.cc
@@ -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);