servatrice/tests/carddatabase/mocks.h
olegshtch daa89a9fb4
Run tests on WIndows CI (#4056)
* Run tests on Windows CI.

* Add message logger

* Skip tests that cannot be linked.

* Fix test call

* Fix mock link issue on MSVC

* Fix PATH variable to find libraries for tests

* Fail test step on test errors
2020-08-14 12:45:15 -04:00

22 lines
522 B
C++

/*
* Beware of this preprocessor hack used to redefine the settingCache class
* instead of including it and all of its dependencies.
* Always set header guards of mocked objects before including any headers
* with mocked objects.
*/
#include <QObject>
#include <QString>
#define PICTURELOADER_H
#include "../../cockatrice/src/carddatabase.h"
#include "../../cockatrice/src/settingscache.h"
extern SettingsCache *settingsCache;
class PictureLoader
{
public:
static void clearPixmapCache(CardInfoPtr card);
};