Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project_Phoenix
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Project_Phoenix
Commits
fe9dcb47
Commit
fe9dcb47
authored
Apr 20, 2018
by
Thomas Vierjahn
Browse files
Options
Downloads
Patches
Plain Diff
Export sdl mock classes
#251
parent
edd3d0d5
No related branches found
No related tags found
1 merge request
!128
Feature/#251 make sure tests cpp is compiled once
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/mocks/sdl_mock.hpp
+2
-2
2 additions, 2 deletions
tests/src/mocks/sdl_mock.hpp
with
2 additions
and
2 deletions
tests/src/mocks/sdl_mock.hpp
+
2
−
2
View file @
fe9dcb47
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment