Skip to content
Snippets Groups Projects
Commit fe9dcb47 authored by Thomas Vierjahn's avatar Thomas Vierjahn
Browse files

Export sdl mock classes

#251
parent edd3d0d5
No related branches found
No related tags found
1 merge request!128Feature/#251 make sure tests cpp is compiled once
...@@ -31,7 +31,7 @@ SUPPRESS_WARNINGS_END ...@@ -31,7 +31,7 @@ SUPPRESS_WARNINGS_END
#include "trompeloeil.hpp" #include "trompeloeil.hpp"
class SdlMockInternal { class SDL_MOCK_EXPORT SdlMockInternal {
public: public:
MAKE_MOCK1(SDL_Init, int(Uint32 flags)); // NOLINT(readability/casting) MAKE_MOCK1(SDL_Init, int(Uint32 flags)); // NOLINT(readability/casting)
MAKE_MOCK1(SDL_InitSubSystem, MAKE_MOCK1(SDL_InitSubSystem,
...@@ -55,7 +55,7 @@ class SdlMockInternal { ...@@ -55,7 +55,7 @@ class SdlMockInternal {
MAKE_MOCK1(SDL_HideWindow, void(SDL_Window*)); MAKE_MOCK1(SDL_HideWindow, void(SDL_Window*));
}; };
class SdlMock { class SDL_MOCK_EXPORT SdlMock {
public: public:
SdlMock() : mock_(new SdlMockInternal) {} SdlMock() : mock_(new SdlMockInternal) {}
SdlMock(const SdlMock&) = delete; SdlMock(const SdlMock&) = delete;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment