Update common test util
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / dummy-control.h
index d4b8b18..d0387d9 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_TOOLKIT_TEST_DUMMY_CONTROL_H__
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -21,6 +21,9 @@
 // INTERNAL INCLUDES
 #include <dali-toolkit/dali-toolkit.h>
 
+// EXTERNAL INCLUDES
+#include <functional>
+
 namespace Dali
 {
 
@@ -28,6 +31,12 @@ namespace Toolkit
 {
 
 class DummyControlImpl;
+class TransitionData;
+
+namespace Visual
+{
+class Base;
+}
 
 /**
  * Control does not have a New method so use this dummy class for the handle.
@@ -126,10 +135,14 @@ class DummyControl : public Toolkit::DummyControlImpl
 {
 public:
 
+  typedef std::function<void( Size )> RelayoutCallbackFunc;
+
   static Toolkit::DummyControl New();
 
   void SetLayout( Property::Index visualIndex, Property::Map& map );
 
+  void SetRelayoutCallback( RelayoutCallbackFunc callback );
+
 private:
 
   DummyControl();
@@ -194,6 +207,8 @@ public:
   bool keyInputFocusLost;
 
   Property::Map mLayouts;
+  RelayoutCallbackFunc mRelayoutCallback;
+
 };
 
 } // namespace Impl