TEST & TEST_F
Google C++ Mocking Framework
- lets you create mock classes trivially using simple macros,
- supports a rich set of matchers and actions,
- handles unordered, partially ordered, or completely ordered expectations,
- is extensible by users, and works on Linux, Mac OS X, Windows, Windows Mobile, minGW, and Symbian.
Reference
玩转Google开源C++单元测试框架Google Test系列(gtest)(总)
https://github.com/google/googletest
Primer
For Dummies