Test Base Class Injection
My favorite and very powerful technique for mocking in C++.
- How to mock anything in C++: Test Base Class Injection
- An example of TBCI in action: Refactoring Legacy Socket code before and after
- How to mock a function or class from the STL
Back to MiddleRaster’s pages.