Add Wayland support.
[platform/core/uifw/dali-toolkit.git] / automated-tests / TET / dali-toolkit-test-utils / toolkit-timer.h
1 #ifndef __DALI_TOOLKIT_TOOLKIT_TIMER_H__
2 #define __DALI_TOOLKIT_TOOLKIT_TIMER_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 // EXTERNAL INCLUDES
22 #include <string>
23
24 // PUBLIC INCLUDES
25 #include <dali/public-api/adaptor-framework/common/timer.h>
26
27 namespace Dali
28 {
29
30 namespace Internal
31 {
32 namespace Adaptor
33 {
34 class Timer;
35
36 }
37 }
38
39 /**
40  * This creates a stubbed Timer so that internal Toolkit Adaptor calls work.
41  */
42 class ToolkitTimer
43 {
44 public: // Constants
45
46 public: // Construction & Destruction
47
48   ToolkitTimer();
49   ~ToolkitTimer();
50
51 public:
52
53   Timer GetTimer();
54
55 public: // Signal Emissions
56
57   Dali::Timer::TimerSignalV2& TickSignal();
58
59 public: // TEST FUNCTIONS
60
61 private:
62
63   Internal::Adaptor::Timer* mTimerStub;
64   friend class Internal::Adaptor::Timer;
65   Timer mTimer; // Hold a handle ourselves.
66 };
67
68 } // namespace Dali
69
70 #endif // __DALI_TOOLKIT_TOOLKIT_TIMER_H__