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
088e6ed9
Unverified
Commit
088e6ed9
authored
Aug 19, 2021
by
theidexisted
Committed by
GitHub
Aug 19, 2021
Browse files
Simplify example code with c++11
parent
0134d73a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
docs/gmock_cook_book.md
docs/gmock_cook_book.md
+1
-4
No files found.
docs/gmock_cook_book.md
View file @
088e6ed9
...
@@ -2033,10 +2033,7 @@ class MockRolodex : public Rolodex {
...
@@ -2033,10 +2033,7 @@ class MockRolodex : public Rolodex {
}
}
...
...
MockRolodex
rolodex
;
MockRolodex
rolodex
;
vector
<
string
>
names
;
vector
<
string
>
names
=
{
"George"
,
"John"
,
"Thomas"
};
names
.
push_back
(
"George"
);
names
.
push_back
(
"John"
);
names
.
push_back
(
"Thomas"
);
EXPECT_CALL
(
rolodex
,
GetNames
(
_
))
EXPECT_CALL
(
rolodex
,
GetNames
(
_
))
.
WillOnce
(
SetArrayArgument
<
0
>
(
names
.
begin
(),
names
.
end
()));
.
WillOnce
(
SetArrayArgument
<
0
>
(
names
.
begin
(),
names
.
end
()));
```
```
...
...
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