Google Mock

Google Mock, used in many of the book’s examples, is a mocking and matcher framework that includes the unit testing tool Google Test. I refer to the two terms interchangeably throughout the book but most of the time refer to Google Mock to keep things simple. You may need to peruse Google’s documentation for Google Test in order to understand features that I refer to as belonging to Google Mock.

You will be linking Google Mock into your examples, which means you must first build the Google Mock library. The following instructions may help you get started. You might also choose to refer to the README.txt file supplied with Google Mock for more detailed installation instructions: https://code.google.com/p/googlemock/source/browse/trunk/README ...

Get Modern C++ Programming with Test-Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.