Switch return type to class without default constructor
This commit is contained in:
parent
cc99900036
commit
36777251c0
|
@ -62,6 +62,12 @@ using testing::internal::CaptureStdout;
|
||||||
using testing::internal::GetCapturedStdout;
|
using testing::internal::GetCapturedStdout;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Dummy class without default constructor.
|
||||||
|
class Dummy {
|
||||||
|
public:
|
||||||
|
Dummy(int) {}
|
||||||
|
};
|
||||||
|
|
||||||
// Defines some mock classes needed by the tests.
|
// Defines some mock classes needed by the tests.
|
||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
|
@ -79,7 +85,7 @@ class MockFoo : public Foo {
|
||||||
|
|
||||||
MOCK_METHOD0(DoThis, void());
|
MOCK_METHOD0(DoThis, void());
|
||||||
MOCK_METHOD1(DoThat, int(bool flag));
|
MOCK_METHOD1(DoThat, int(bool flag));
|
||||||
MOCK_METHOD0(ReturnSomething, Mock());
|
MOCK_METHOD0(ReturnSomething, Dummy());
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
|
GTEST_DISALLOW_COPY_AND_ASSIGN_(MockFoo);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user