diff options
author | CJ Johnson <johnsoncj@google.com> | 2021-08-26 18:30:09 (GMT) |
---|---|---|
committer | CJ Johnson <johnsoncj@google.com> | 2021-08-26 18:30:09 (GMT) |
commit | 955c7f837efad184ec63e771c42542d37545eaef (patch) | |
tree | 731d728b51af2754bfcac87052680fb489a14436 /docs | |
parent | ff21b36e1e858bf9274ed2bbf4921e415363c393 (diff) | |
parent | 088e6ed9a8ead32aeb0c340931465e0036b2eb9f (diff) | |
download | googletest-955c7f837efad184ec63e771c42542d37545eaef.zip googletest-955c7f837efad184ec63e771c42542d37545eaef.tar.gz googletest-955c7f837efad184ec63e771c42542d37545eaef.tar.bz2 |
Merge pull request #3531 from theidexisted:patch-1
PiperOrigin-RevId: 392720416
Diffstat (limited to 'docs')
-rw-r--r-- | docs/gmock_cook_book.md | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md index 900bcd1..baeeb59 100644 --- a/docs/gmock_cook_book.md +++ b/docs/gmock_cook_book.md @@ -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())); ``` |