A C++ mock class library that is free and open source for creating and utilizing mock classes.
It's important to note that Google C++ Mocking Framework is not a stand-alone testing framework, but rather a tool that works seamlessly with other testing frameworks. Specifically, it's been optimized to work with Google Test, but since version 1.1.0, it's also compatible with other C++ testing frameworks of your choosing.
Perhaps most impressively, Google C++ Mocking Framework comes bundled with a copy of Google C++ Testing Framework 1.3.0, making it easy to get started right out of the box. However, if you prefer to use a different version of the testing framework, that's also an option. And if you're already using a C++ testing framework, rest assured that Google Mock will integrate smoothly with your existing setup.
Google C++ Mocking Framework has been tested extensively on a variety of platforms, including Mac OS X, Linux, and Windows with Microsoft Visual C++ 8.0 SP1. Users have also reported successful use with gcc 3.4 and Cygwin. And best of all, Google C++ Mocking Framework is licensed and provided under the terms of the New BSD License, meaning it's both reliable and affordable. So whether you're new to C++ mocking or simply looking for a new and powerful tool, Google Mock is definitely worth considering.