I want to mock a method that returns a complex datatyp
class aClass { public: virtual const QMap<QString, QString> aMethod() const; } class MockaClass : public aClass { public: MOCK_CONST_METHOD0(aMethod, const QMap<QString, QString>()); }
This code does not compile: "macro" MOCK_CONST_METHOD0 "passed 3 arguments, but takes only 2"
I think the googlemock macro does not understand QMap and interprets the comma as a parameter delimiter.
Is there any way to tell googlemock that QMap is a return value?
Jens ehrlich
source share