nagyistoce / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

need actions for saving an argument #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
These actions would be useful:

 // Saves arg #0 to foo.  We may want to enforce that the function
 // takes exactly one argument.
 SaveArgTo(&foo)

 // Saves arg #3 to foo.  Shorthand for WithArg<3>(SaveArgTo(&foo)).
 SaveArg<3>(&foo)

Original issue reported on code.google.com by zhanyong...@gmail.com on 13 Feb 2009 at 8:48

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 22 Feb 2009 at 5:53