Adding new test harness
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / test-render-controller.h
1 #ifndef __TEST_RENDER_CONTROLLER_H__
2 #define __TEST_RENDER_CONTROLLER_H__
3
4 //
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 //
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 // INTERNAL INCLUDES
21 #include <dali/public-api/common/dali-common.h>
22 #include <dali/integration-api/render-controller.h>
23
24 namespace Dali
25 {
26
27 class DALI_IMPORT_API TestRenderController : public Dali::Integration::RenderController
28 {
29 public:
30   TestRenderController();
31   ~TestRenderController();
32
33   virtual void RequestUpdate();
34   virtual void RequestProcessEventsOnIdle();
35
36   typedef enum
37   {
38     RequestUpdateFunc,
39     RequestProcessEventsOnIdleFunc,
40   } TestRenderControllerFuncEnum;
41
42   bool WasCalled(TestRenderControllerFuncEnum func);
43   void Initialize();
44
45
46 private:
47   bool mRequestUpdateCalled;
48   bool mRequestProcessEventsOnIdleCalled;
49 };
50
51 } // Dali
52
53 #endif