CxxMock is simplest framework for creating mock-objects for C++. The main idea is simple: do not need write anything more if we can generate it.
As Rhyno.mock uses reflection for generation proxy/stub object based on specified interface, CxxMock uses compile-time utility cxxmockgen for generating mock object.
Mock object generation is not magic. And I not planned to create C++ parser. Mock generattion tool have next restrictions:
Class must be declarest such next:
class Interface { public: virtual Type* pointerReturnMethod(type value, type* ptr, type& refValue) = 0; virtual Type valueReturnMetod() = 0; virtual void voidMethod() = 0; };