License conversion from Flora to Apache 2.0
[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 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
21 // INTERNAL INCLUDES
22 #include <dali/public-api/common/dali-common.h>
23 #include <dali/integration-api/render-controller.h>
24
25 namespace Dali
26 {
27
28 class DALI_IMPORT_API TestRenderController : public Dali::Integration::RenderController
29 {
30 public:
31   TestRenderController();
32   ~TestRenderController();
33
34   virtual void RequestUpdate();
35   virtual void RequestProcessEventsOnIdle();
36
37   typedef enum
38   {
39     RequestUpdateFunc,
40     RequestProcessEventsOnIdleFunc,
41   } TestRenderControllerFuncEnum;
42
43   bool WasCalled(TestRenderControllerFuncEnum func);
44   void Initialize();
45
46
47 private:
48   bool mRequestUpdateCalled;
49   bool mRequestProcessEventsOnIdleCalled;
50 };
51
52 } // Dali
53
54 #endif