diff options
| author | Maurice Gilden <Maurice.Gilden@teamviewer.com> | 2017-08-18 12:28:50 +0200 |
|---|---|---|
| committer | Maurice Gilden <Maurice.Gilden@teamviewer.com> | 2017-08-18 12:28:50 +0200 |
| commit | 36777251c07788549eaa72a9be0cf482ab322c46 (patch) | |
| tree | 17e30f408f47d6365fc2a45cd69d0be7b7018496 | |
| parent | cc99900036ae3514d8918acba87817fa24f6c993 (diff) | |
| download | googletest-36777251c07788549eaa72a9be0cf482ab322c46.tar.gz googletest-36777251c07788549eaa72a9be0cf482ab322c46.tar.bz2 googletest-36777251c07788549eaa72a9be0cf482ab322c46.zip | |
Switch return type to class without default constructor
| -rw-r--r-- | googlemock/test/gmock-nice-strict_test.cc | 8 |
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 86706814..1d7784b1 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); |
