A class used for mocking other classes in Qt
https://github.com/arturstaszczyk/QtMock
#Usage: In your mock class just inherit this class
class MyMockClass : public MockedInterface, public QtMock
{
...
};
And after that add few calls in your MyMockClass:
void MyMockClass::call1()
{
CALL;
}
void MyMockClass::call2(int arg);
{
CALL; ARG(MOCK_FNAME, arg);
}
See tst_QtMockTestTest.cpp for usage examples