Simplify example code with c++11
This commit is contained in:
parent
0134d73a49
commit
088e6ed9a8
@ -2033,10 +2033,7 @@ class MockRolodex : public Rolodex {
|
||||
}
|
||||
...
|
||||
MockRolodex rolodex;
|
||||
vector<string> names;
|
||||
names.push_back("George");
|
||||
names.push_back("John");
|
||||
names.push_back("Thomas");
|
||||
vector<string> names = {"George", "John", "Thomas"};
|
||||
EXPECT_CALL(rolodex, GetNames(_))
|
||||
.WillOnce(SetArrayArgument<0>(names.begin(), names.end()));
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user