Hi
I want to put my mock'ed classes into a library. I don't use interface
and dependency injection. I want to make a mock-library where mocked
classes have the same name as the classes in the production code and
then link with the mock-library instead of the production code
library.
class ProductionClass {
MOCK_METHOD0(void ProductionMethod());
};
My problem is that MOCK_METHOD0 is preprocessed to an inline function
and the inline code does not go into the object file (and thus not
into the mock-library) when compiled.
When compiling I still use -I/path/to/production/code/header/files so
the header file of the mocked class is not included (and thus inline
code is not included)