(Automated Tests) Update test suite after changes to PlatformAbstraction
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / test-gesture-manager.h
1 #ifndef __DALI_TEST_GESTURE_MANAGER_H__
2 #define __DALI_TEST_GESTURE_MANAGER_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/integration-api/gesture-manager.h>
23 #include <dali/public-api/common/dali-common.h>
24
25 namespace Dali
26 {
27
28 /**
29  * Concrete implementation of the gesture manager class.
30  */
31 class DALI_IMPORT_API TestGestureManager : public Dali::Integration::GestureManager
32 {
33
34 public:
35
36   /**
37    * Constructor
38    */
39   TestGestureManager();
40
41   /**
42    * Destructor
43    */
44   virtual ~TestGestureManager();
45
46   /**
47    * @copydoc Dali::Integration::GestureManager::Register(Gesture::Type)
48    */
49   virtual void Register(const Integration::GestureRequest& request);
50
51   /**
52    * @copydoc Dali::Integration::GestureManager::Unregister(Gesture::Type)
53    */
54   virtual void Unregister(const Integration::GestureRequest& request);
55
56   /**
57    * @copydoc Dali::Integration::GestureManager::Update(Gesture::Type)
58    */
59   virtual void Update(const Integration::GestureRequest& request);
60
61 public: // TEST FUNCTIONS
62
63   // Enumeration of Gesture Manager methods
64   enum TestFuncEnum
65   {
66     RegisterType,
67     UnregisterType,
68     UpdateType,
69   };
70
71   /** Call this every test */
72   void Initialize();
73   bool WasCalled(TestFuncEnum func);
74   void ResetCallStatistics(TestFuncEnum func);
75
76 private:
77
78   struct TestFunctions
79   {
80     TestFunctions();
81     void Reset();
82
83     bool Register;
84     bool Unregister;
85     bool Update;
86   };
87
88   TestFunctions mFunctionsCalled;
89 };
90
91 } // Dali
92
93 #endif // __DALI_TEST_GESTURE_MANAGER_H__