Merge pull request #3531 from theidexisted:patch-1

PiperOrigin-RevId: 392720416
This commit is contained in:
CJ Johnson 2021-08-26 14:30:09 -04:00
commit 955c7f837e

View File

@ -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()));
``` ```