Ensuring test files match dali-core/adaptor
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / test-graphics-controller.h
1 #ifndef TEST_GRAPHICS_CONTROLLER_H
2 #define TEST_GRAPHICS_CONTROLLER_H
3
4 /*
5  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19
20 #include <dali/graphics-api/graphics-controller.h>
21 #include "test-gl-abstraction.h"
22 #include "test-gl-context-helper-abstraction.h"
23 #include "test-gl-sync-abstraction.h"
24
25 namespace Dali
26 {
27 class TestGraphicsController : public Dali::Graphics::Controller
28 {
29 public:
30   TestGraphicsController()          = default;
31   virtual ~TestGraphicsController() = default;
32
33   void Initialize()
34   {
35     mGlAbstraction.Initialize();
36   }
37
38   Integration::GlAbstraction& GetGlAbstraction() override
39   {
40     return mGlAbstraction;
41   }
42
43   Integration::GlSyncAbstraction& GetGlSyncAbstraction() override
44   {
45     return mGlSyncAbstraction;
46   }
47
48   Integration::GlContextHelperAbstraction& GetGlContextHelperAbstraction() override
49   {
50     return mGlContextHelperAbstraction;
51   }
52
53 private:
54   TestGlAbstraction              mGlAbstraction;
55   TestGlSyncAbstraction          mGlSyncAbstraction;
56   TestGlContextHelperAbstraction mGlContextHelperAbstraction;
57 };
58
59 } // namespace Dali
60
61 #endif //TEST_GRAPHICS_CONTROLLER_H