Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
36777251
Commit
36777251
authored
Aug 18, 2017
by
Maurice Gilden
Browse files
Switch return type to class without default constructor
parent
cc999000
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
googlemock/test/gmock-nice-strict_test.cc
googlemock/test/gmock-nice-strict_test.cc
+7
-1
No files found.
googlemock/test/gmock-nice-strict_test.cc
View file @
36777251
...
@@ -62,6 +62,12 @@ using testing::internal::CaptureStdout;
...
@@ -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 {
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment