score
Home
Classes
Namespaces
Files
MockApplication.hpp
1
#pragma once
2
#include <core/application/ApplicationInterface.hpp>
3
4
namespace
score
5
{
6
namespace
testing
7
{
8
15
struct
MockApplication
final :
public
score::ApplicationInterface
16
{
17
public
:
18
static
inline
score::ApplicationComponentsData
d0;
19
MockApplication
() { m_instance =
this
; }
20
21
const
score::ApplicationContext
& context()
const override
{
throw
; }
22
23
const
score::ApplicationComponents
& components()
const override
24
{
25
static
score::ApplicationComponents
d1{d0};
26
return
d1;
27
}
28
};
29
}
30
}
score::ApplicationComponents
Definition:
ApplicationComponents.hpp:68
score::ApplicationInterface
The ApplicationInterface class.
Definition:
ApplicationInterface.hpp:23
score
Base toolkit upon which the software is built.
Definition:
Application.cpp:90
score::ApplicationComponentsData
Definition:
ApplicationComponents.hpp:46
score::ApplicationContext
Used to access all the application-wide state and structures.
Definition:
ApplicationContext.hpp:24
score::testing::MockApplication
Application class for tests.
Definition:
MockApplication.hpp:16