How to write a simple mock class in C++ using GMock framework
Channel: Patryk Kowalski
Date: 2021-03-31

This is a very short tutorial of how to write a simple mock class in C++ using Google GMock framework and how to simple use it in unit test using GTest.

Raw code from example you can find on github: https://github.com/tajnosc/gmock/blob/main/gmock_tutorial_example.cpp

GMock generator used in tutorial: https://github.com/google/googletest/tree/master/googlemock/scripts/generator