summaryrefslogtreecommitdiffstats
path: root/googlemock/test
diff options
context:
space:
mode:
authorMaurice Gilden <Maurice.Gilden@teamviewer.com>2017-08-18 10:28:50 (GMT)
committerMaurice Gilden <Maurice.Gilden@teamviewer.com>2017-08-18 10:28:50 (GMT)
commit36777251c07788549eaa72a9be0cf482ab322c46 (patch)
tree17e30f408f47d6365fc2a45cd69d0be7b7018496 /googlemock/test
parentcc99900036ae3514d8918acba87817fa24f6c993 (diff)
downloadgoogletest-36777251c07788549eaa72a9be0cf482ab322c46.zip
googletest-36777251c07788549eaa72a9be0cf482ab322c46.tar.gz
googletest-36777251c07788549eaa72a9be0cf482ab322c46.tar.bz2
Switch return type to class without default constructor
Diffstat (limited to 'googlemock/test')
-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);