When you write a prototype or test, often it's not feasible or wise to rely on real objects entirely. A mock object implements the same interface as a real object (so it can be used as one), but lets ...
// notice, this list of conditions and the following disclaimer. // Google Mock - a framework for writing C++ mock classes. // This file implements MOCK_METHOD ...