I\'m trying to understand the purpose of google-mock
, Google\'s C++ mocking framework.
I have already worked with gtest
earlier, but still I ca
Software units do not live in green meadows. They very often need some counterparts to do the work. In real system, these counterparts belong to the system itself. In the unit tests they are replaced with mocks.
Gtest is a framework for unit testing. Gmock is a framework imitating the rest of your system during unit tests.