From: shiva.jm Date: Mon, 20 Jun 2016 15:17:42 +0000 (+0530) Subject: [UTC][dali-toolkit][NON-ACR] Adding missing dali-toolkit testcases X-Git-Tag: Beta_RC10~20^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7c699bc9586ee09b26bac14e4d419db33c2879f;p=test%2Ftct%2Fnative%2Fapi.git [UTC][dali-toolkit][NON-ACR] Adding missing dali-toolkit testcases This patch includes missing APIs for the following classes : - control-impl - default-item-layout - flex-container - item-range - style-manager - page-factory Change-Id: Icc2c37429bb0dc896ca79c1c90d9b4b00e05a36a Signed-off-by: shiva.jm --- diff --git a/src/utc/dali-toolkit/CMakeLists.txt b/src/utc/dali-toolkit/CMakeLists.txt index 1d1a306..73c46bc 100755 --- a/src/utc/dali-toolkit/CMakeLists.txt +++ b/src/utc/dali-toolkit/CMakeLists.txt @@ -60,6 +60,16 @@ SET(TC_SOURCES fixed-ruler/utc-dali-fixed-ruler-common.cpp ruler/utc-dali-ruler.cpp ruler/utc-dali-ruler-common.cpp + control-impl/utc-dali-control-impl.cpp + control-impl/utc-dali-control-impl-common.cpp + style-manager/utc-dali-style-manager-common.cpp + style-manager/utc-dali-style-manager.cpp + flex-container/utc-dali-flex-container-common.cpp + flex-container/utc-dali-flex-container.cpp + item-range/utc-dali-item-range-common.cpp + item-range/utc-dali-item-range.cpp + default-item-layout/utc-dali-default-item-layout.cpp + default-item-layout/utc-dali-default-item-layout-common.cpp ) LIST(APPEND TC_SOURCES diff --git a/src/utc/dali-toolkit/control-impl/utc-dali-control-impl-common.cpp b/src/utc/dali-toolkit/control-impl/utc-dali-control-impl-common.cpp new file mode 100755 index 0000000..29fefd9 --- /dev/null +++ b/src/utc/dali-toolkit/control-impl/utc-dali-control-impl-common.cpp @@ -0,0 +1,150 @@ +#include "utc-dali-control-impl-common.h" + +//Add helper function definitions here + +namespace Dali +{ + + namespace Toolkit + { + + DummyControl::DummyControl() + { + } + + DummyControl::DummyControl(const DummyControl& control) + : Control( control ) + { + } + + DummyControl::~DummyControl() + { + } + + DummyControl DummyControl::DownCast( BaseHandle handle ) + { + return Control::DownCast(handle); + } + + DummyControl& DummyControl::operator=(const DummyControl& control) + { + Control::operator=( control ); + return *this; + } + + // Used to test signal connections + void DummyControlImpl::CustomSlot1( Actor actor ) + { + mCustomSlot1Called = true; + } + + DummyControl DummyControlImpl::New() + { + IntrusivePtr< DummyControlImpl > impl = new DummyControlImpl; + DummyControl control( *impl ); + impl->Initialize(); + return control; + } + + DummyControlImpl::DummyControlImpl() + : Control( ControlBehaviour( REQUIRES_TOUCH_EVENTS | REQUIRES_HOVER_EVENTS | REQUIRES_STYLE_CHANGE_SIGNALS ) ), + mCustomSlot1Called(false) + { + } + + + DummyControlImpl::~DummyControlImpl() + { + } + + DummyControl DummyControlImplOverride::New() + { + IntrusivePtr< DummyControlImplOverride > impl = new DummyControlImplOverride; + DummyControl control( *impl ); + impl->Initialize(); + return control; + } + + + DummyControlImplOverride::DummyControlImplOverride() + : DummyControlImpl(), + initializeCalled(false), + activatedCalled(false), + themeChangeCalled( false ), + fontChangeCalled( false ), + pinchCalled(false), + panCalled(false), + tapCalled(false), + longPressCalled(false), + stageConnectionCalled(false), + stageDisconnectionCalled(false), + childAddCalled(false), + childRemoveCalled(false), + sizeSetCalled(false), + sizeAnimationCalled(false), + touchEventCalled(false), + hoverEventCalled(false), + wheelEventCalled(false), + keyEventCalled(false), + keyInputFocusGained(false), + keyInputFocusLost(false) + { + } + + DummyControlImplOverride::~DummyControlImplOverride() { } + + + void DummyControlImplOverride::OnInitialize() { initializeCalled = true; } + bool DummyControlImplOverride::OnAccessibilityActivated() { activatedCalled = true; return true; } + void DummyControlImplOverride::OnStyleChange( Toolkit::StyleManager styleManager, StyleChange::Type change ) + { + themeChangeCalled = change == StyleChange::THEME_CHANGE; + fontChangeCalled = change == StyleChange::DEFAULT_FONT_SIZE_CHANGE; + } + void DummyControlImplOverride::OnPinch(const PinchGesture& pinch) { pinchCalled = true; } + void DummyControlImplOverride::OnPan(const PanGesture& pan) { panCalled = true; } + void DummyControlImplOverride::OnTap(const TapGesture& tap) { tapCalled = true; } + void DummyControlImplOverride::OnLongPress(const LongPressGesture& longPress) { longPressCalled = true; } + void DummyControlImplOverride::OnStageConnection( int depth ) { Control::OnStageConnection( depth ); stageConnectionCalled = true; } + void DummyControlImplOverride::OnStageDisconnection() { stageDisconnectionCalled = true; Control::OnStageDisconnection(); } + void DummyControlImplOverride::OnChildAdd(Actor& child) { childAddCalled = true; } + void DummyControlImplOverride::OnChildRemove(Actor& child) { childRemoveCalled = true; } + void DummyControlImplOverride::OnSizeSet(const Vector3& targetSize) { Control::OnSizeSet( targetSize ); sizeSetCalled = true; } + void DummyControlImplOverride::OnSizeAnimation(Animation& animation, const Vector3& targetSize) { Control::OnSizeAnimation( animation, targetSize ); sizeAnimationCalled = true; } + bool DummyControlImplOverride::OnTouchEvent(const TouchEvent& event) { touchEventCalled = true; return false; } + bool DummyControlImplOverride::OnHoverEvent(const HoverEvent& event) { hoverEventCalled = true; return false; } + bool DummyControlImplOverride::OnWheelEvent(const WheelEvent& event) { wheelEventCalled = true; return false; } + bool DummyControlImplOverride::OnKeyEvent(const KeyEvent& event) { keyEventCalled = true; return false;} + void DummyControlImplOverride::OnKeyInputFocusGained() { keyInputFocusGained = true; } + void DummyControlImplOverride::OnKeyInputFocusLost() { keyInputFocusLost = true; } + + DummyControl DummyControl::New( bool override ) + { + DummyControl control; + + if (override) + { + control = DummyControlImplOverride::New(); + } + else + { + control = DummyControlImpl::New(); + } + + return control; + } + + DummyControl::DummyControl( DummyControlImpl& implementation ) + : Control( implementation ) + { + } + + DummyControl::DummyControl( Dali::Internal::CustomActor* internal ) + : Control( internal ) + { + VerifyCustomActorPointer(internal); + } + + } // namespace Toolkit + +} // namespace Dali diff --git a/src/utc/dali-toolkit/control-impl/utc-dali-control-impl-common.h b/src/utc/dali-toolkit/control-impl/utc-dali-control-impl-common.h new file mode 100755 index 0000000..4f422b4 --- /dev/null +++ b/src/utc/dali-toolkit/control-impl/utc-dali-control-impl-common.h @@ -0,0 +1,146 @@ +#ifndef _UTC_DALI_CONTROL_IMPL_COMMON_H_ +#define _UTC_DALI_CONTROL_IMPL_COMMON_H_ + +#include "dali-common.h" +#include + +using namespace Dali; +using namespace Toolkit; + +#define SUITE_NAME "CONTROL_IMPL_UTC" +#define CONTROL_IMAGE_NAME "dali_imagemodule_image.png" + +// HELPER FUNCTIONS + +namespace Dali +{ + + namespace Toolkit + { + + class DummyControlImpl; + + /** + * Control does not have a New method so use this dummy class for the handle. + */ + class DummyControl : public Control + { + public: + + DummyControl(); + DummyControl(const DummyControl& control); + ~DummyControl(); + + static DummyControl New( bool override = false ); + + static DummyControl DownCast( BaseHandle handle ); + + + DummyControl& operator=(const DummyControl& control); + + public: // Not intended for application developers + + DummyControl( DummyControlImpl& implementation ); + DummyControl( Dali::Internal::CustomActor* internal ); + }; + + /** + * Cannot create an instance of Internal::Control, so use this dummy class for the implementation. + * This class does not override any of Internal::Control's behaviour. + */ + class DummyControlImpl : public Internal::Control + { + public: + + static DummyControl New(); + + public: + inline void EnableGestureDetection(Gesture::Type type) { Internal::Control::EnableGestureDetection(type); } + inline void DisableGestureDetection(Gesture::Type type) { Internal::Control::DisableGestureDetection(type); } + inline PinchGestureDetector GetPinchGestureDetector() const { return Internal::Control::GetPinchGestureDetector(); } + inline PanGestureDetector GetPanGestureDetector() const { return Internal::Control::GetPanGestureDetector(); } + inline TapGestureDetector GetTapGestureDetector() const { return Internal::Control::GetTapGestureDetector(); } + inline LongPressGestureDetector GetLongPressGestureDetector() const { return Internal::Control::GetLongPressGestureDetector(); } + + // Used to test signal connections + void CustomSlot1( Actor actor ); + + bool mCustomSlot1Called; + + protected: + + DummyControlImpl(); + + virtual ~DummyControlImpl(); + }; + + /** + * Cannot create an instance of Internal::Control, so use this dummy class for the implementation. + * This class DOES override Internal::Control's behaviour. + */ + class DummyControlImplOverride : public DummyControlImpl + { + public: + + static DummyControl New(); + + private: + + DummyControlImplOverride(); + + virtual ~DummyControlImplOverride(); + + private: // From Internal::Control + + virtual void OnInitialize(); + virtual bool OnAccessibilityActivated(); + virtual void OnStyleChange( Toolkit::StyleManager styleManager, StyleChange::Type change ); + virtual void OnPinch(const PinchGesture& pinch); + virtual void OnPan(const PanGesture& pan); + virtual void OnTap(const TapGesture& tap); + virtual void OnLongPress(const LongPressGesture& longPress); + + private: // From CustomActorImpl + + virtual void OnStageConnection( int depth ); + virtual void OnStageDisconnection(); + virtual void OnChildAdd(Actor& child); + virtual void OnChildRemove(Actor& child); + virtual void OnSizeSet(const Vector3& targetSize); + virtual void OnSizeAnimation(Animation& animation, const Vector3& targetSize); + virtual bool OnTouchEvent(const TouchEvent& event); + virtual bool OnHoverEvent(const HoverEvent& event); + virtual bool OnWheelEvent(const WheelEvent& event); + virtual bool OnKeyEvent(const KeyEvent& event); + virtual void OnKeyInputFocusGained(); + virtual void OnKeyInputFocusLost(); + + public: + + bool initializeCalled; + bool activatedCalled; + bool themeChangeCalled; + bool fontChangeCalled; + bool pinchCalled; + bool panCalled; + bool tapCalled; + bool longPressCalled; + bool stageConnectionCalled; + bool stageDisconnectionCalled; + bool childAddCalled; + bool childRemoveCalled; + bool sizeSetCalled; + bool sizeAnimationCalled; + bool touchEventCalled; + bool hoverEventCalled; + bool wheelEventCalled; + bool keyEventCalled; + bool keyInputFocusGained; + bool keyInputFocusLost; + }; + + } // namespace Toolkit + +} // namespace Dali + +#endif //_UTC_DALI_CONTROL_IMPL_COMMON_H_ diff --git a/src/utc/dali-toolkit/control-impl/utc-dali-control-impl.cpp b/src/utc/dali-toolkit/control-impl/utc-dali-control-impl.cpp new file mode 100755 index 0000000..6eaffe4 --- /dev/null +++ b/src/utc/dali-toolkit/control-impl/utc-dali-control-impl.cpp @@ -0,0 +1,1783 @@ +#include "utc-dali-control-impl-common.h" + +extern int gArgc; +extern char ** gArgv; +extern int test_return_value; + +//& set: ControlImpl + +/** + * @function utc_Dali_ControlImpl_startup + * @description Called before each test + * @parameter NA + * @return NA + */ + +void utc_Dali_ControlImpl_startup(void) +{ + test_return_value=0; +} + +/** + * @function utc_Dali_ControlImpl_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ + +void utc_Dali_ControlImpl_cleanup(void) +{ + +} + +/**Check for key input focus status**/ +bool gKeyInputFocusCallBackCalled1 = false; + +/** + * @function CbControlKeyInputFocusGainCallback + * @description Callback for key input focus + * @since_tizen 2.4 + */ + +void CbControlKeyInputFocusCallback1( Control control ) +{ + // checking the pre-condition if the control has been initialized + if( control ) + { + LOG_I("Callback for key input focus is called."); + gKeyInputFocusCallBackCalled1 = true; + } +} + +void ControlImplNewP(); +void ControlImplEnableGestureDetectorP(); +void ControlImplDisableGestureDetectorP(); +void ControlImplGetLongPressGestureDetectorP(); +void ControlImplGetPanGestureDetectorP(); +void ControlImplGetPinchGestureDetectorP(); +void ControlImplGetTapGestureDetectorP(); +void ControlImplClearBackgroundP(); +void ControlImplClearKeyInputFocusP(); +void ControlImplSetAndHasKeyInputFocusP(); +void ControlImplKeyInputFocusGainedSignalP(); +void ControlImplKeyInputFocusLostSignalP(); +void ControlImplSetGetStyleNameP(); +void ControlImplSetGetBackgroundImageColorP(); +void ControlImplKeyEventSignalP(); +void ControlImplGetControlExtensionP(); +void ControlImplGetNextKeyboardFocusableActorP(); +void ControlImplOnAccessibilityPanP(); +void ControlImplOnAccessibilityTouchP(); +void ControlImplOnAccessibilityActivatedP(); +void ControlImplOnKeyInputFocusGainedP(); +void ControlImplOnKeyInputFocusLostP(); +void ControlImplOnStyleChangeN(); +void ControlImplOnInitializeP(); +void ControlImplSignalConnectedP(); +void ControlImplSignalDisconnectedP(); +void ControlImplOnPinchP(); +void ControlImplOnPanP(); +void ControlImplOnTapP(); +void ControlImplOnLongPressP(); +void ControlImpOnAccessibilityValueChangeP(); +void ControlImpIsKeyboardNavigationSupportedP(); +void ControlImpIsKeyboardFocusGroupP(); +void ControlImpOnAccessibilityZoomP(); +void ControlImpKeyboardEnterP(); +void ControlImpOnControlChildAddP(); +void ControlImpOnControlChildRemoveP(); +void ControlImpOnKeyboardEnterP(); +void ControlImpOnKeyboardFocusChangeCommittedP(); +void ControlImpSetAsKeyboardFocusGroupP(); +void ControlImpSetKeyboardNavigationSupportP(); +void ControlImpSetBackgroundP(); + +namespace +{ + enum TEST_CASES_LIST_CONTROL + { + CONTROL_IMPL_NEW_P, + CONTROL_IMPL_ENABLE_GESTURE_DETECTOR_P, + CONTROL_IMPL_DISABLE_GESTURE_DETECTOR_P, + CONTROL_IMPL_GET_PINCH_GESTURE_DETECTOR_P, + CONTROL_IMPL_GET_PAN_GESTURE_DETECTOR_P, + CONTROL_IMPL_GET_TAP_GESTURE_DETECTOR_P, + CONTROL_IMPL_GET_LONG_PRESS_GESTURE_DETECTOR_P, + CONTROL_IMPL_CLEAR_BACKGROUND_P, + CONTROL_IMPL_CLEAR_KEY_INPUT_FOCUS_P, + CONTROL_IMPL_SET_AND_HAS_KEY_INPUT_FOCUS_P, + CONTROL_IMPL_KEY_INPUT_FOCUS_GAINED_SIGNAL_P, + CONTROL_IMPL_KEY_INPUT_FOCUS_LOST_SIGNAL_P, + CONTROL_IMPL_SET_GET_STYLE_NAME_P, + CONTROL_IMPL_SET_GET_BACKGROUND_IMAGE_COLOR_P, + CONTROL_IMPL_KEY_EVENT_SIGNAL_P, + CONTROL_IMPL_GET_CONTROL_EXTENSION_P, + CONTROL_IMPL_GET_NEXT_KEYBOARD_FOCUSABLE_ACTOR_P, + CONTROL_IMPL_ON_ACCESSIBILITY_PAN_P, + CONTROL_IMPL_ON_ACCESSIBILITY_TOUCH_P, + CONTROL_IMPL_ON_ACCESSIBILITY_ACTIVATED_P, + CONTROL_IMPL_ON_KEY_INPUT_FOCUS_GAINED_P, + CONTROL_IMPL_ON_KEY_INPUT_FOCUS_LOST_P, + CONTROL_IMPL_ON_STYLE_CHANGE_P, + CONTROL_IMPL_ON_INITIALIZE_P, + CONTROL_IMPL_ON_SIGNAL_CONNECTED_P, + CONTROL_IMPL_ON_SIGNAL_DISCONNECTED_P, + CONTROL_IMPL_ON_PINCH_P, + CONTROL_IMPL_ON_PAN_P, + CONTROL_IMPL_ON_LONG_PRESS_P, + CONTROL_IMPL_ON_TAP_P, + CONTROL_IMPL_ON_ACCESSIBILITY_VALUE_CHANGE_P, + CONTROL_IMPL_ON_ACCESSIBILITY_ZOOM_P, + CONTROL_IMPL_IS_KEYBOARD_NAVIGATION_SUPPORTED_P, + CONTROL_IMPL_IS_KEYBOARD_FOCUS_GROUP_P, + CONTROL_IMPL_KEYBOARD_ENTER_P, + CONTROL_IMPL_ON_CONTROL_CHILD_ADD_P, + CONTROL_IMPL_ON_CONTROL_CHILD_REMOVE_P, + CONTROL_IMPL_ON_KEYBOARD_ENTER_P, + CONTROL_IMPL_ON_KEYBOARD_FOCUS_CHANGE_COMMITTED_P, + CONTROL_IMPL_SET_AS_KEYBOARD_FOCUS_GROUP_P, + CONTROL_IMPL_SET_KEYBOARD_NAVIGATION_SUPPORT_P, + CONTROL_IMPL_SET_BACKGROUND_P, + }; + + struct Control_TestApp : public ConnectionTracker + { + Control_TestApp( Application& app, int test_case ) + : mApplication( app ), + mTestCase( test_case ) + { + mApplication.InitSignal().Connect( this, &Control_TestApp::OnInit ); + } + + void OnInit(Application& app) + { + ExcuteTest(); + mTimer = Timer::New( INTERVAL ); + mTimer.TickSignal().Connect( this, &Control_TestApp::Tick ); + mTimer.Start(); + } + + bool Tick() + { + mTimer.Stop(); + mApplication.Quit(); + return true; + } + + void ExcuteTest() + { + switch (mTestCase) + { + case CONTROL_IMPL_NEW_P: + ControlImplNewP(); + break; + case CONTROL_IMPL_ENABLE_GESTURE_DETECTOR_P: + ControlImplEnableGestureDetectorP(); + break; + case CONTROL_IMPL_DISABLE_GESTURE_DETECTOR_P: + ControlImplDisableGestureDetectorP(); + break; + case CONTROL_IMPL_GET_PINCH_GESTURE_DETECTOR_P: + ControlImplGetPinchGestureDetectorP(); + break; + case CONTROL_IMPL_GET_PAN_GESTURE_DETECTOR_P: + ControlImplGetPanGestureDetectorP(); + break; + case CONTROL_IMPL_GET_TAP_GESTURE_DETECTOR_P: + ControlImplGetTapGestureDetectorP(); + break; + case CONTROL_IMPL_GET_LONG_PRESS_GESTURE_DETECTOR_P: + ControlImplGetLongPressGestureDetectorP(); + break; + case CONTROL_IMPL_CLEAR_BACKGROUND_P: + ControlImplClearBackgroundP(); + break; + case CONTROL_IMPL_CLEAR_KEY_INPUT_FOCUS_P: + ControlImplClearKeyInputFocusP(); + break; + case CONTROL_IMPL_SET_AND_HAS_KEY_INPUT_FOCUS_P: + ControlImplSetAndHasKeyInputFocusP(); + break; + case CONTROL_IMPL_KEY_INPUT_FOCUS_GAINED_SIGNAL_P: + ControlImplKeyInputFocusGainedSignalP(); + break; + case CONTROL_IMPL_KEY_INPUT_FOCUS_LOST_SIGNAL_P: + ControlImplKeyInputFocusLostSignalP(); + break; + case CONTROL_IMPL_SET_GET_STYLE_NAME_P: + ControlImplSetGetStyleNameP(); + break; + case CONTROL_IMPL_SET_GET_BACKGROUND_IMAGE_COLOR_P: + ControlImplSetGetBackgroundImageColorP(); + break; + case CONTROL_IMPL_KEY_EVENT_SIGNAL_P: + ControlImplKeyEventSignalP(); + break; + case CONTROL_IMPL_GET_CONTROL_EXTENSION_P: + ControlImplGetControlExtensionP(); + break; + case CONTROL_IMPL_GET_NEXT_KEYBOARD_FOCUSABLE_ACTOR_P: + ControlImplGetNextKeyboardFocusableActorP(); + break; + case CONTROL_IMPL_ON_ACCESSIBILITY_PAN_P: + ControlImplOnAccessibilityPanP(); + break; + case CONTROL_IMPL_ON_ACCESSIBILITY_TOUCH_P: + ControlImplOnAccessibilityTouchP(); + break; + case CONTROL_IMPL_ON_ACCESSIBILITY_ACTIVATED_P: + ControlImplOnAccessibilityActivatedP(); + break; + case CONTROL_IMPL_ON_KEY_INPUT_FOCUS_GAINED_P: + ControlImplOnKeyInputFocusGainedP(); + break; + case CONTROL_IMPL_ON_KEY_INPUT_FOCUS_LOST_P: + ControlImplOnKeyInputFocusLostP(); + break; + case CONTROL_IMPL_ON_STYLE_CHANGE_P: + ControlImplOnStyleChangeN(); + break; + case CONTROL_IMPL_ON_INITIALIZE_P: + ControlImplOnInitializeP(); + break; + case CONTROL_IMPL_ON_SIGNAL_CONNECTED_P: + ControlImplSignalConnectedP(); + break; + case CONTROL_IMPL_ON_SIGNAL_DISCONNECTED_P: + ControlImplSignalDisconnectedP(); + break; + case CONTROL_IMPL_ON_PINCH_P: + ControlImplOnPinchP(); + break; + case CONTROL_IMPL_ON_PAN_P: + ControlImplOnPanP(); + break; + case CONTROL_IMPL_ON_TAP_P: + ControlImplOnTapP(); + break; + case CONTROL_IMPL_ON_LONG_PRESS_P: + ControlImplOnLongPressP(); + break; + case CONTROL_IMPL_SET_BACKGROUND_P: + ControlImpSetBackgroundP(); + break; + case CONTROL_IMPL_ON_CONTROL_CHILD_REMOVE_P: + ControlImpOnControlChildRemoveP(); + break; + case CONTROL_IMPL_ON_CONTROL_CHILD_ADD_P: + ControlImpOnControlChildAddP(); + break; + case CONTROL_IMPL_KEYBOARD_ENTER_P: + ControlImpKeyboardEnterP(); + break; + case CONTROL_IMPL_IS_KEYBOARD_FOCUS_GROUP_P: + ControlImpIsKeyboardFocusGroupP(); + break; + case CONTROL_IMPL_IS_KEYBOARD_NAVIGATION_SUPPORTED_P: + ControlImpIsKeyboardNavigationSupportedP(); + break; + case CONTROL_IMPL_ON_ACCESSIBILITY_ZOOM_P: + ControlImpOnAccessibilityZoomP(); + break; + case CONTROL_IMPL_ON_ACCESSIBILITY_VALUE_CHANGE_P: + ControlImpOnAccessibilityValueChangeP(); + break; + case CONTROL_IMPL_SET_KEYBOARD_NAVIGATION_SUPPORT_P: + ControlImpSetKeyboardNavigationSupportP(); + break; + case CONTROL_IMPL_SET_AS_KEYBOARD_FOCUS_GROUP_P: + ControlImpSetAsKeyboardFocusGroupP(); + break; + case CONTROL_IMPL_ON_KEYBOARD_FOCUS_CHANGE_COMMITTED_P: + ControlImpOnKeyboardFocusChangeCommittedP(); + break; + case CONTROL_IMPL_ON_KEYBOARD_ENTER_P: + ControlImpOnKeyboardEnterP(); + break; + } + } + + // Data + Application& mApplication; + int mTestCase; + Timer mTimer; + }; + +} // unnamed namespace + + +/** + * ############################## + * TC Logic Implementation Area. + * ############################## + **/ + +void ControlImplNewP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL( !dummy, "ControlImpl::New() is failed." ); + + DaliLog::PrintPass(); +} + +void ControlImplEnableGestureDetectorP() +{ + DummyControl dummy = DummyControl::New(); + DummyControlImpl& dummyImpl = static_cast(dummy.GetImplementation()); + + DALI_CHECK_FAIL( dummyImpl.GetPinchGestureDetector(), "Wrong Gesture" ); + dummyImpl.EnableGestureDetection(Gesture::Pinch); + DALI_CHECK_FAIL( !dummyImpl.GetPinchGestureDetector(), "EnableGestureDetection is failed" ); + + DALI_CHECK_FAIL( dummyImpl.GetPanGestureDetector(), "Wrong Gesture" ); + dummyImpl.EnableGestureDetection(Gesture::Pan); + DALI_CHECK_FAIL( !dummyImpl.GetPanGestureDetector(), "EnableGestureDetection is failed" ); + + DALI_CHECK_FAIL( dummyImpl.GetTapGestureDetector(), "Wrong Gesture" ); + dummyImpl.EnableGestureDetection(Gesture::Tap); + DALI_CHECK_FAIL( !dummyImpl.GetTapGestureDetector(), "EnableGestureDetection is failed" ); + + DALI_CHECK_FAIL( dummyImpl.GetLongPressGestureDetector(), "Wrong Gesture" ); + dummyImpl.EnableGestureDetection(Gesture::LongPress); + DALI_CHECK_FAIL( !dummyImpl.GetLongPressGestureDetector(), "EnableGestureDetection is failed" ); + + DaliLog::PrintPass(); +} + +void ControlImplDisableGestureDetectorP() +{ + DummyControl dummy = DummyControl::New(); + DummyControlImpl& dummyImpl = static_cast(dummy.GetImplementation()); + + dummyImpl.EnableGestureDetection( Gesture::Type(Gesture::Pinch | Gesture::Pan | Gesture::Tap | Gesture::LongPress) ); + + DALI_CHECK_FAIL( !dummyImpl.GetPinchGestureDetector(), "EnableGestureDetection is failed" ); + dummyImpl.DisableGestureDetection(Gesture::Pinch); + DALI_CHECK_FAIL( dummyImpl.GetPinchGestureDetector(), "DisableGestureDetection is failed" ); + + DALI_CHECK_FAIL( !dummyImpl.GetPanGestureDetector(), "EnableGestureDetection is failed" ); + dummyImpl.DisableGestureDetection(Gesture::Pan); + DALI_CHECK_FAIL( dummyImpl.GetPanGestureDetector(), "DisableGestureDetection is failed" ); + + DALI_CHECK_FAIL( !dummyImpl.GetTapGestureDetector(), "EnableGestureDetection is failed" ); + dummyImpl.DisableGestureDetection(Gesture::Tap); + DALI_CHECK_FAIL( dummyImpl.GetTapGestureDetector(), "DisableGestureDetection is failed" ); + + DALI_CHECK_FAIL( !dummyImpl.GetLongPressGestureDetector(), "EnableGestureDetection is failed" ); + dummyImpl.DisableGestureDetection(Gesture::LongPress); + DALI_CHECK_FAIL( dummyImpl.GetLongPressGestureDetector(), "DisableGestureDetection is failed" ); + + DaliLog::PrintPass(); +} + +void ControlImplGetPinchGestureDetectorP() +{ + PinchGestureDetector pinchDetector; + Vector3 vec3ControlSize(100.0f, 100.0f, 100.0f); + Stage stage; + + stage = Stage::GetCurrent(); + DALI_CHECK_FAIL(!stage, "stage is not created."); + + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is not created."); + + dummy.SetSize( vec3ControlSize ); + dummy.SetAnchorPoint(AnchorPoint::TOP_LEFT); + stage.Add(dummy); + + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + DALI_CHECK_FAIL( control.GetPinchGestureDetector(), "Wrong Gesture" ); + + control.EnableGestureDetection(Gesture::Pinch); + pinchDetector = control.GetPinchGestureDetector(); + + DALI_CHECK_FAIL( !pinchDetector, "GetPinchGestureDetector has failed because pinchDetector is empty." ); + stage.Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImplGetPanGestureDetectorP() +{ + PanGestureDetector panDetector; + Stage stage; + Vector3 vec3ControlSize(100.0f, 100.0f, 100.0f); + + stage = Stage::GetCurrent(); + DALI_CHECK_FAIL(!stage, "stage is not created."); + + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is not created."); + + dummy.SetSize( vec3ControlSize ); + dummy.SetAnchorPoint(AnchorPoint::TOP_LEFT); + stage.Add(dummy); + + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + DALI_CHECK_FAIL( control.GetPanGestureDetector(), "Wrong Gesture" ); + + control.EnableGestureDetection(Gesture::Pan); + panDetector = control.GetPanGestureDetector(); + + DALI_CHECK_FAIL( !panDetector, "GetPanGestureDetector has failed because panDetector is empty." ); + stage.Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImplGetTapGestureDetectorP() +{ + TapGestureDetector tapDetector; + Stage stage; + Vector3 vec3ControlSize(100.0f, 100.0f, 100.0f); + + stage = Stage::GetCurrent(); + DALI_CHECK_FAIL(!stage, "stage is not created."); + + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is not created."); + + dummy.SetSize( vec3ControlSize ); + dummy.SetAnchorPoint(AnchorPoint::TOP_LEFT); + stage.Add(dummy); + + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + DALI_CHECK_FAIL( control.GetTapGestureDetector(), "Wrong Gesture" ); + + control.EnableGestureDetection(Gesture::Tap); + tapDetector = control.GetTapGestureDetector(); + + DALI_CHECK_FAIL( !tapDetector, "GetTapGestureDetector has failed because tapDetector is empty." ); + stage.Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImplGetLongPressGestureDetectorP() +{ + LongPressGestureDetector longPressDetector; + Stage stage; + Vector3 vec3ControlSize(100.0f, 100.0f, 100.0f); + + stage = Stage::GetCurrent(); + DALI_CHECK_FAIL(!stage, "stage is not created."); + + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is not created."); + + dummy.SetSize( vec3ControlSize ); + dummy.SetAnchorPoint(AnchorPoint::TOP_LEFT); + stage.Add(dummy); + + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + DALI_CHECK_FAIL( control.GetLongPressGestureDetector(), "Wrong Gesture" ); + + control.EnableGestureDetection(Gesture::LongPress); + longPressDetector = control.GetLongPressGestureDetector(); + + DALI_CHECK_FAIL( !longPressDetector, "GetLongPressGestureDetector has failed because longPressDetector is empty." ); + stage.Remove(dummy); + + DaliLog::PrintPass(); +} + + +void ControlImplClearBackgroundP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is not created."); + + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + control.SetBackgroundColor(Color::MAGENTA); + Vector4 vec4GetBackgroundColor = control.GetBackgroundColor(); + DALI_CHECK_FAIL( vec4GetBackgroundColor != Color::MAGENTA, "ControlImpl::SetBackground() is failed." ); + + control.ClearBackground(); + Vector4 vec4GetBackgroundColor2 = control.GetBackgroundColor(); + DALI_CHECK_FAIL( vec4GetBackgroundColor == vec4GetBackgroundColor2, "ControlImpl::ClearBackground() is failed." ); + + DaliLog::PrintPass(); +} + +void ControlImplClearKeyInputFocusP() +{ + bool bHasKeyFocus = false; + Stage stage = Stage::GetCurrent(); + DALI_CHECK_FAIL(!stage, "Stage::GetCurrent() is failed." ); + + Control dummy = PushButton::New(); + DALI_CHECK_FAIL( !dummy, "Control handle is not initialized with push button." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + stage.Add( dummy ); + + control.SetKeyInputFocus(); + bHasKeyFocus = control.HasKeyInputFocus(); + DALI_CHECK_FAIL( !bHasKeyFocus, "SetKeyInputFocus has failed because control has no focus." ); + + control.ClearKeyInputFocus(); + bHasKeyFocus = control.HasKeyInputFocus(); + + DALI_CHECK_FAIL( bHasKeyFocus, "ClearKeyInputFocus has failed because instead of clearing it is still on focus." ); + stage.Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImplSetAndHasKeyInputFocusP() +{ + bool bHasKeyFocus = false; + Stage stage = Stage::GetCurrent(); + DALI_CHECK_FAIL(!stage, "Stage::GetCurrent() is failed." ); + + Control dummy = PushButton::New(); + DALI_CHECK_FAIL( !dummy, "Control handle is not initialized with push button." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + stage.Add( dummy ); + + control.SetKeyInputFocus(); + bHasKeyFocus = control.HasKeyInputFocus(); + + DALI_CHECK_FAIL( !bHasKeyFocus, "SetKeyInputFocus has failed because control has no focus." ); + stage.Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImplKeyInputFocusGainedSignalP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Stage::GetCurrent().Add( dummy ); + + gKeyInputFocusCallBackCalled1 = false; + control.KeyInputFocusGainedSignal().Connect(&CbControlKeyInputFocusCallback1); + + control.SetKeyInputFocus(); + DALI_CHECK_FAIL( !gKeyInputFocusCallBackCalled1, "Control KeyInputFocusGainedSignal is failed to connect the callback." ); + DALI_CHECK_FAIL( !control.HasKeyInputFocus(), "SetKeyInputFocus is failed to set Control Key Input Focus." ); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImplKeyInputFocusLostSignalP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Stage::GetCurrent().Add( dummy ); + + gKeyInputFocusCallBackCalled1 = false; + control.KeyInputFocusLostSignal().Connect(&CbControlKeyInputFocusCallback1); + + control.SetKeyInputFocus(); + DALI_CHECK_FAIL( !control.HasKeyInputFocus(), "SetKeyInputFocus is failed to set Control Key Input Focus." ); + DALI_CHECK_FAIL( gKeyInputFocusCallBackCalled1, "Control KeyInputFocusLostSignal should not be emitted before clearing key input focus." ); + + control.ClearKeyInputFocus(); + DALI_CHECK_FAIL( !gKeyInputFocusCallBackCalled1, "Control KeyInputFocusLostSignal is failed to connect the callback." ); + DALI_CHECK_FAIL( control.HasKeyInputFocus(), "ClearKeyInputFocus is failed to clear Control Key Input Focus." ); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImplSetGetStyleNameP() +{ + const string STYLE_NAME = "textlabel"; + string strGetStyle = ""; + + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + control.SetStyleName(STYLE_NAME); + strGetStyle = control.GetStyleName(); + DALI_CHECK_FAIL( strGetStyle != STYLE_NAME, "Set Style Name is mismatched with Get Style Name." ); + + DaliLog::PrintPass(); +} + +void ControlImplSetGetBackgroundImageColorP() +{ + string strActualPathOne = getResourceFullPath(CONTROL_IMAGE_NAME); + if( strActualPathOne == "" ) + { + LOG_E( "Unable to get resource path from app data directory." ); + test_return_value = 1; + return; + } + + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + DALI_CHECK_FAIL( control.GetBackgroundColor() != Color::TRANSPARENT, "Control New instance Background Color is not Transparent." ); + + Image image = ResourceImage::New(strActualPathOne); + control.SetBackgroundImage( image ); + DALI_CHECK_FAIL( !dummy, "Control New instance Background image is not Set" ); + + control.SetBackgroundColor( Color::GREEN ); + DALI_CHECK_FAIL( control.GetBackgroundColor() != Color::GREEN, "Control Background Color is not GREEN." ); + + control.ClearBackground(); + DALI_CHECK_FAIL( control.GetBackgroundColor() != Color::TRANSPARENT, "Control Background Color is not TRANSPARENT after Clear." ); + strActualPathOne.clear(); + + DaliLog::PrintPass(); +} + +void ControlImplKeyEventSignalP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Stage::GetCurrent().Add( dummy ); + try + { + control.KeyEventSignal(); + } + catch(DaliException& de) + { + LOG_E("KeyEventSignal with image is failed."); + DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__); + if( dummy ) + { + LOG_I("Callback for key input focus is called."); + gKeyInputFocusCallBackCalled1 = true; + } + + } + control.SetKeyInputFocus(); + DALI_CHECK_FAIL( !control.HasKeyInputFocus(), "SetKeyInputFocus is failed to set Control Key Input Focus." ); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImplGetControlExtensionP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + DALI_CHECK_FAIL( NULL != control.GetControlExtension(), "GetControlExtension is failed" ); + + DaliLog::PrintPass(); +} + +void ControlImplGetNextKeyboardFocusableActorP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Actor currentFocusedActor; + Actor result = control.GetNextKeyboardFocusableActor( currentFocusedActor, Control::KeyboardFocus::LEFT, false ); + + DALI_CHECK_FAIL( result != currentFocusedActor, "GetNextKeyboardFocusableActor is failed" ); + + DaliLog::PrintPass(); +} + +void ControlImplOnAccessibilityPanP(void) +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + PanGesture pan; + DALI_CHECK_FAIL( control.OnAccessibilityPan( pan ), "OnAccessibilityPan is failed" ); + + DaliLog::PrintPass(); +} + +void ControlImplOnAccessibilityTouchP(void) +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + TouchEvent touch; + DALI_CHECK_FAIL( control.OnAccessibilityTouch( touch ), "OnAccessibilityTouch is failed" ); + + DaliLog::PrintPass(); +} + +void ControlImplOnAccessibilityActivatedP(void) +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + DALI_CHECK_FAIL( control.OnAccessibilityActivated(), "OnAccessibilityActivated is failed" ); + + // Invoke the control's activate action + TypeInfo type = TypeRegistry::Get().GetTypeInfo( "Control" ); + DALI_CHECK_FAIL( !type, "TypeRegistry is failed" ); + + BaseHandle handle = type.CreateInstance(); + DALI_CHECK_FAIL( !handle, "CreateInstance is failed" ); + + Property::Map attributes; + DALI_CHECK_FAIL( handle.DoAction("accessibilityActivated", attributes), "OnAccessibilityTouch is failed" ); + + DaliLog::PrintPass(); +} + +void ControlImplOnKeyInputFocusGainedP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + try + { + control.OnKeyInputFocusGained(); + } + catch(DaliException& de) + { + LOG_E("OnKeyInputFocusGained with image is failed."); + DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__); + if( dummy ) + { + LOG_I("Callback for key input focus is called."); + gKeyInputFocusCallBackCalled1 = true; + } + + } + + DaliLog::PrintPass(); +} + +void ControlImplOnKeyInputFocusLostP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + try + { + control.OnKeyInputFocusLost(); + } + catch(DaliException& de) + { + LOG_E("OnKeyInputFocusLost with image is failed."); + DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__); + if( dummy ) + { + LOG_I("Callback for key input focus is called."); + gKeyInputFocusCallBackCalled1 = true; + } + + } + + DaliLog::PrintPass(); +} + +void ControlImplOnStyleChangeN() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + // test that style manager is being used, passing an empty handle does nothing but does not crash either + Dali::Toolkit::StyleManager styleManager; + + try + { + control.OnStyleChange( styleManager, StyleChange::THEME_CHANGE ); + } + catch(DaliException& de) + { + LOG_E("OnStyleChange with image is failed."); + DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__); + if( dummy ) + { + LOG_I("Callback for key input focus is called."); + gKeyInputFocusCallBackCalled1 = true; + } + + } + + DaliLog::PrintPass(); +} + +void ControlImplOnInitializeP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + try + { + control.OnInitialize(); + } + catch(DaliException& de) + { + LOG_E("OnInitialize with image is failed."); + DaliLog::PrintV(LOG_ERROR, SUITE_NAME, "Dali Exception Thrown, location: %s, condition: %s, at [LINE: %d]", de.location, de.condition, __LINE__); + if( dummy ) + { + LOG_I("Callback for key input focus is called."); + gKeyInputFocusCallBackCalled1 = true; + } + + } + + DaliLog::PrintPass(); +} + +void ControlImplSignalConnectedP() +{ + DaliLog::PrintPass(); +} + +void ControlImplSignalDisconnectedP() +{ + DaliLog::PrintPass(); +} + +void ControlImplOnPinchP() +{ + DaliLog::PrintPass(); +} + +void ControlImplOnLongPressP() +{ + DaliLog::PrintPass(); +} + +void ControlImplOnPanP() +{ + DaliLog::PrintPass(); +} + +void ControlImplOnTapP() +{ + DaliLog::PrintPass(); +} + +void ControlImpOnAccessibilityValueChangeP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Stage::GetCurrent().Add(dummy); + control.OnAccessibilityValueChange( true ); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImpIsKeyboardNavigationSupportedP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Stage::GetCurrent().Add(dummy); + control.IsKeyboardNavigationSupported(); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImpIsKeyboardFocusGroupP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Stage::GetCurrent().Add(dummy); + control.IsKeyboardFocusGroup(); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImpOnAccessibilityZoomP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Stage::GetCurrent().Add(dummy); + control.OnAccessibilityZoom(); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImpKeyboardEnterP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Stage::GetCurrent().Add(dummy); + control.OnKeyboardEnter(); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImpOnControlChildAddP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Actor actor = Actor::New(); + Stage::GetCurrent().Add(dummy); + control.OnControlChildAdd(actor); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} +void ControlImpSetBackgroundP() +{ + DaliLog::PrintPass(); +} + +void ControlImpOnControlChildRemoveP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Actor actor = Actor::New(); + Stage::GetCurrent().Add(dummy); + control.OnControlChildAdd(actor); + control.OnControlChildRemove(actor); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImpOnKeyboardEnterP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Stage::GetCurrent().Add(dummy); + control.OnKeyboardEnter(); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImpOnKeyboardFocusChangeCommittedP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Actor actor = Actor::New(); + Stage::GetCurrent().Add(dummy); + control.OnKeyboardFocusChangeCommitted(actor); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImpSetAsKeyboardFocusGroupP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Actor actor = Actor::New(); + Stage::GetCurrent().Add(dummy); + control.SetAsKeyboardFocusGroup(true); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + +void ControlImpSetKeyboardNavigationSupportP() +{ + DummyControl dummy = DummyControl::New(); + DALI_CHECK_FAIL(!dummy, "Control::New() is failed." ); + DummyControlImpl& control = static_cast(dummy.GetImplementation()); + + Actor actor = Actor::New(); + Stage::GetCurrent().Add(dummy); + control.SetKeyboardNavigationSupport(true); + Stage::GetCurrent().Remove(dummy); + + DaliLog::PrintPass(); +} + + +/** + * End of TC Logic Implementation Area. + **/ + +/** + * @testcase UtcDaliControlImplNewP + * @since_tizen 2.4 + * @description Checks correct allocation of memory to object + */ + +int UtcDaliControlImplNewP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_NEW_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplEnableGestureDetectorP + * @since_tizen 2.4 + * @description Enables Gestures as Pinch, Pan, Tap, LongPress. + */ + +int UtcDaliControlImplEnableGestureDetectorP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ENABLE_GESTURE_DETECTOR_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplDisableGestureDetectorP + * @since_tizen 2.4 + * @description Disables Gestures as Pinch, Pan, Tap, LongPress. + */ + +int UtcDaliControlImplDisableGestureDetectorP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_DISABLE_GESTURE_DETECTOR_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplGetPinchGestureDetectorP + * @since_tizen 2.4 + * @description Checks whether GetPinchGestureDetector api is executed successfully or not + */ + +int UtcDaliControlImplGetPinchGestureDetectorP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_GET_PINCH_GESTURE_DETECTOR_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplGetPanGestureDetectorP + * @since_tizen 2.4 + * @description Checks whether GetPanGestureDetector api is executed successfully or not + */ + +int UtcDaliControlImplGetPanGestureDetectorP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_GET_PAN_GESTURE_DETECTOR_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplGetTapGestureDetectorP + * @since_tizen 2.4 + * @description Checks whether GetTapGestureDetector api is executed successfully or not + */ + +int UtcDaliControlImplGetTapGestureDetectorP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_GET_TAP_GESTURE_DETECTOR_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplGetLongPressGestureDetectorP + * @since_tizen 2.4 + * @description Checks whether GetLongPressGestureDetector api is executed successfully or not + */ + +int UtcDaliControlImplGetLongPressGestureDetectorP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_GET_LONG_PRESS_GESTURE_DETECTOR_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplClearBackgroundP + * @since_tizen 2.4 + * @description Clears the background of control handle + */ + +int UtcDaliControlImplClearBackgroundP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_CLEAR_BACKGROUND_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplClearKeyInputFocusP + * @since_tizen 2.4 + * @description Checks whether ClearKeyInputFocus api are executed successfully or not + */ + +int UtcDaliControlImplClearKeyInputFocusP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_CLEAR_KEY_INPUT_FOCUS_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplSetAndHasKeyInputFocusP + * @since_tizen 2.4 + * @description Checks whether SetKeyInputFocus and HasKeyInputFocus apis are executed successfully or not + */ + +int UtcDaliControlImplSetAndHasKeyInputFocusP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_SET_AND_HAS_KEY_INPUT_FOCUS_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplKeyInputFocusGainedSignalP + * @since_tizen 2.4 + * @description Checks whether KeyInputFocusGainedSignal can emmit and call to callback function. + */ + +int UtcDaliControlImplKeyInputFocusGainedSignalP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_KEY_INPUT_FOCUS_GAINED_SIGNAL_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplKeyInputFocusLostSignalP + * @since_tizen 2.4 + * @description Checks whether KeyInputFocusLostSignal can emmit and call to callback function. + */ + +int UtcDaliControlImplKeyInputFocusLostSignalP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_KEY_INPUT_FOCUS_LOST_SIGNAL_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplSetGetStyleNameP + * @since_tizen 2.4 + * @description Checks whether Sets the name of the style to be applied to the control is executed successfully or not + */ + +int UtcDaliControlImplSetGetStyleNameP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_SET_GET_STYLE_NAME_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplSetGetBackgroundImageColorP + * @since_tizen 2.4 + * @description Checks whether Sets Background Color or Image can properly set the control Background color or not. + */ + +int UtcDaliControlImplSetGetBackgroundImageColorP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_SET_GET_BACKGROUND_IMAGE_COLOR_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplKeyEventSignalP + * @since_tizen 2.4 + * @description Checks whether KeyEventSignal can emmit and call to callback function. + */ + +int UtcDaliControlImplKeyEventSignalP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_KEY_EVENT_SIGNAL_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplGetControlExtensionP + * @since_tizen 2.4 + * @description Retrieve the extension for this control + */ + +int UtcDaliControlImplGetControlExtensionP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_GET_CONTROL_EXTENSION_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplGetNextKeyboardFocusableActorP + * @since_tizen 2.4 + * @description Gets the next keyboard focusable actor in this control towards the given direction. + */ + +int UtcDaliControlImplGetNextKeyboardFocusableActorP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_GET_NEXT_KEYBOARD_FOCUSABLE_ACTOR_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnAccessibilityActivatedP + * @since_tizen 2.4 + * @description This method is called when the control is accessibility activated. + */ + +int UtcDaliControlImplOnAccessibilityActivatedP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_ACCESSIBILITY_ACTIVATED_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnAccessibilityTouchP + * @since_tizen 2.4 + * @description This method is used to respond to the accessibility touch + */ + +int UtcDaliControlImplOnAccessibilityTouchP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_ACCESSIBILITY_TOUCH_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnAccessibilityPanP + * @since_tizen 2.4 + * @description This method is used to respond to the accessibility pan + */ + +int UtcDaliControlImplOnAccessibilityPanP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_ACCESSIBILITY_PAN_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnStyleChangeN + * @since_tizen 2.4 + * @description This method gives notifications when the style changes. + */ + +int UtcDaliControlImplOnStyleChangeN(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_STYLE_CHANGE_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnKeyInputFocusLostP + * @since_tizen 2.4 + * @description Called when the control loses key input focus. + */ + +int UtcDalilControlImplOnKeyInputFocusLostP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_KEY_INPUT_FOCUS_LOST_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnKeyInputFocusGainedP + * @since_tizen 2.4 + * @description Called when the control gains key input focus. + */ + +int UtcDaliControlImplOnKeyInputFocusGainedP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_KEY_INPUT_FOCUS_GAINED_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplSignalConnectedP + * @since_tizen 2.4 + * @description Called when a signal is connected. + */ + +int UtcDaliControlImplSignalConnectedP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_SIGNAL_CONNECTED_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplSignalDisconnectedP + * @since_tizen 2.4 + * @description Called when a signal is disconnected. + */ + +int UtcDaliControlImplSignalDisconnectedP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_SIGNAL_DISCONNECTED_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnInitializeP + * @since_tizen 2.4 + * @description Check that the Control has been initialized. + */ + +int UtcDaliControlImplOnInitializeP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_INITIALIZE_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnPinchP + * @since_tizen 2.4 + * @description Detect pinch gesture on control. + */ + +int UtcDaliControlImplOnPinchP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_PINCH_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnPanP + * @since_tizen 2.4 + * @description Detect pan gesture on control. + */ + +int UtcDaliControlImplOnPanP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_PAN_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnTapP + * @since_tizen 2.4 + * @description Detect tap gesture on control. + */ + +int UtcDaliControlImplOnTapP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_TAP_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImplOnLongPressP + * @since_tizen 2.4 + * @description Detect long press gesture on control. + */ + +int UtcDaliControlImplOnLongPressP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_LONG_PRESS_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpOnAccessibilityValueChangeP + * @since_tizen 2.4 + * @description check response to the accessibility up and down action + */ + +int UtcDaliControlImpOnAccessibilityValueChangeP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_ACCESSIBILITY_VALUE_CHANGE_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpIsKeyboardNavigationSupportedP + * @since_tizen 2.4 + * @description Gets whether this control supports two dimensional keyboard navigation. + */ + +int UtcDaliControlImpIsKeyboardNavigationSupportedP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_IS_KEYBOARD_NAVIGATION_SUPPORTED_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpIsKeyboardFocusGroupP + * @since_tizen 2.4 + * @description Gets whether this control is a focus group for keyboard navigation. + */ + +int UtcDaliControlImpIsKeyboardFocusGroupP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_IS_KEYBOARD_FOCUS_GROUP_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpOnAccessibilityZoomP + * @since_tizen 2.4 + * @description check response to the accessibility zoom action. + */ + +int UtcDaliControlImpOnAccessibilityZoomP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_ACCESSIBILITY_ZOOM_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpKeyboardEnterP + * @since_tizen 2.4 + * @description Check when the control has enter pressed on it. + */ + +int UtcDaliControlImpKeyboardEnterP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_KEYBOARD_ENTER_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpOnControlChildAddP + * @since_tizen 2.4 + * @description Checks whether an Actor is added to the control. + */ + +int UtcDaliControlImpOnControlChildAddP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_CONTROL_CHILD_ADD_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpOnControlChildRemoveP + * @since_tizen 2.4 + * @description Checks whether an Actor is added to the control. + */ + +int UtcDaliControlImpOnControlChildRemoveP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_CONTROL_CHILD_REMOVE_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpOnKeyboardEnterP + * @since_tizen 2.4 + * @description checks when the control has enter pressed on it. + */ + +int UtcDaliControlImpOnKeyboardEnterP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_KEYBOARD_ENTER_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpOnKeyboardFocusChangeCommittedP + * @since_tizen 2.4 + * @description Checks when control has chosen focusable actor will be focused. + */ + +int UtcDaliControlImpOnKeyboardFocusChangeCommittedP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_ON_KEYBOARD_FOCUS_CHANGE_COMMITTED_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpSetAsKeyboardFocusGroupP + * @since_tizen 2.4 + * @description checks whether this control is a focus group for keyboard navigation. + */ + +int UtcDaliControlImpSetAsKeyboardFocusGroupP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_SET_AS_KEYBOARD_FOCUS_GROUP_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpSetKeyboardNavigationSupportP + * @since_tizen 2.4 + * @description Sets whether this control supports two dimensional + */ + +int UtcDaliControlImpSetKeyboardNavigationSupportP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_SET_KEYBOARD_NAVIGATION_SUPPORT_P ); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliControlImpSetBackgroundP + * @since_tizen 2.4 + * @description check the setting of the background with a property map. + */ + +int UtcDaliControlImpSetBackgroundP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + Control_TestApp testApp( application, CONTROL_IMPL_SET_BACKGROUND_P ); + application.MainLoop(); + + return test_return_value; +} + diff --git a/src/utc/dali-toolkit/default-item-layout/utc-dali-default-item-layout-common.cpp b/src/utc/dali-toolkit/default-item-layout/utc-dali-default-item-layout-common.cpp new file mode 100755 index 0000000..31ce3a6 --- /dev/null +++ b/src/utc/dali-toolkit/default-item-layout/utc-dali-default-item-layout-common.cpp @@ -0,0 +1 @@ +#include "utc-dali-default-item-layout-common.h" diff --git a/src/utc/dali-toolkit/default-item-layout/utc-dali-default-item-layout-common.h b/src/utc/dali-toolkit/default-item-layout/utc-dali-default-item-layout-common.h new file mode 100755 index 0000000..f350b0f --- /dev/null +++ b/src/utc/dali-toolkit/default-item-layout/utc-dali-default-item-layout-common.h @@ -0,0 +1,12 @@ +#ifndef _UTC_DALI_DEFAULT_ITEM_LAYOUT_COMMON_H_ +#define _UTC_DALI_DEFAULT_ITEM_LAYOUT_COMMON_H_ + +#include "dali-common.h" +#include + +using namespace Dali; +using namespace Toolkit; + +#define SUITE_NAME "ITEM_LAYOUT_UTC" + +#endif //_UTC_DALI_DEFAULT_ITEM_LAYOUT_COMMON_H_ diff --git a/src/utc/dali-toolkit/default-item-layout/utc-dali-default-item-layout.cpp b/src/utc/dali-toolkit/default-item-layout/utc-dali-default-item-layout.cpp new file mode 100755 index 0000000..a32b476 --- /dev/null +++ b/src/utc/dali-toolkit/default-item-layout/utc-dali-default-item-layout.cpp @@ -0,0 +1,117 @@ +#include "utc-dali-default-item-layout-common.h" + +//& set: DefaultItemlayout + +extern int gArgc; +extern char ** gArgv; +extern int test_return_value; + +/** + * @function utc_Dali_DefaultItemLayout_startup + * @description Called before each test + * @parameter NA + * @return NA + */ + +void utc_Dali_DefaultItemLayout_startup(void) +{ + test_return_value=0; +} + +/** + * @function utc_Dali_ItemLayout_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ + +void utc_Dali_DefaultItemLayout_cleanup(void) +{ + +} + +void DefaultItemLayoutNewP(); + +namespace +{ + enum TEST_CASES_LIST_ITEM_LAYOUT + { + DEFAULT_ITEM_LAYOUT_NEW_P + }; + + struct DefaultItemLayout_TestApp : public ConnectionTracker + { + DefaultItemLayout_TestApp( Application& app, int test_case ) + : mApplication( app ), + mTestCase( test_case ) + { + mApplication.InitSignal().Connect( this, &DefaultItemLayout_TestApp::OnInit ); + } + + void OnInit(Application& app) + { + ExcuteTest(); + mTimer = Timer::New( INTERVAL ); + mTimer.TickSignal().Connect( this, &DefaultItemLayout_TestApp::Tick ); + mTimer.Start(); + } + + bool Tick() + { + mTimer.Stop(); + mApplication.Quit(); + return true; + } + + void ExcuteTest() + { + switch (mTestCase) + { + case DEFAULT_ITEM_LAYOUT_NEW_P: + DefaultItemLayoutNewP(); + break; + } + } + // Data + Application& mApplication; + int mTestCase; + Timer mTimer; + }; + +} // unnamed namespace + +/** + * ############################## + * TC Logic Implementation Area. + * ############################## + **/ + +void DefaultItemLayoutNewP() +{ + ItemLayoutPtr gridLayout = DefaultItemLayout::New( DefaultItemLayout::GRID ); + DALI_CHECK_FAIL(!gridLayout, "GridLayout::New() is failed."); + + DaliLog::PrintPass(); +} + +/** + * End of TC Logic Implementation Area. + **/ + +/** + * @testcase UtcDaliDefaultItemLayoutNewP + * @since_tizen 2.4 + * @description Gets the Extension of Item Layout + */ + +int UtcDaliDefaultItemLayoutNewP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + DefaultItemLayout_TestApp testApp( application, DEFAULT_ITEM_LAYOUT_NEW_P); + application.MainLoop(); + + return test_return_value; +} diff --git a/src/utc/dali-toolkit/flex-container/utc-dali-flex-container-common.cpp b/src/utc/dali-toolkit/flex-container/utc-dali-flex-container-common.cpp new file mode 100755 index 0000000..e71c6ff --- /dev/null +++ b/src/utc/dali-toolkit/flex-container/utc-dali-flex-container-common.cpp @@ -0,0 +1 @@ +#include "utc-dali-flex-container-common.h" diff --git a/src/utc/dali-toolkit/flex-container/utc-dali-flex-container-common.h b/src/utc/dali-toolkit/flex-container/utc-dali-flex-container-common.h new file mode 100755 index 0000000..083faf6 --- /dev/null +++ b/src/utc/dali-toolkit/flex-container/utc-dali-flex-container-common.h @@ -0,0 +1,14 @@ +#ifndef _UTC_DALI_FLEX_CONTAINER_COMMON_H_ +#define _UTC_DALI_FLEX_CONTAINER_COMMON_H_ + +#include "dali-common.h" +#include + +using namespace Dali; +using namespace Toolkit; + + +#define SUITE_NAME "FLEX_CONTAINER_UTC" + + +#endif //_UTC_DALI_FLEX_CONTAINER_COMMON_H_ diff --git a/src/utc/dali-toolkit/flex-container/utc-dali-flex-container.cpp b/src/utc/dali-toolkit/flex-container/utc-dali-flex-container.cpp new file mode 100755 index 0000000..e30de1c --- /dev/null +++ b/src/utc/dali-toolkit/flex-container/utc-dali-flex-container.cpp @@ -0,0 +1,699 @@ +#include "utc-dali-flex-container-common.h" + +extern int gArgc; +extern char ** gArgv; +extern int test_return_value; + + +/** + * @function utc_Dali_FlexContainer_startup + * @description Called before each test + * @parameter NA + * @return NA + */ + +void utc_Dali_FlexContainer_startup(void) +{ + test_return_value=0; +} + +/** + * @function utc_Dali_FlexContainer_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ + +void utc_Dali_FlexContainer_cleanup(void) +{ + +} + +void FlexContainerConstructor(); +void FlexContainerCopyConstructor(); +void FlexContainerCopyConstructorP2(); +void FlexContainerAlignment(); +void FlexContainerChildProperty(); +void FlexContainerContentDirection(); +void FlexContainerDownCastP(); +void FlexContainerDownCastN(); +void FlexContainerFlexDirection(); +void FlexContainerJustification(); +void FlexContainerNew(); +void FlexContainerOperatorAssignment(); +void FlexContainerProperty(); +void FlexContainerPropertyRange(); +void FlexContainerWrapType(); + +namespace +{ + const char* const PROPERTY_NAME_CONTENT_DIRECTION = "contentDirection"; + const char* const PROPERTY_NAME_FLEX_DIRECTION = "flexDirection"; + const char* const PROPERTY_NAME_FLEX_WRAP = "flexWrap"; + const char* const PROPERTY_NAME_JUSTIFY_CONTENT = "justifyContent"; + const char* const PROPERTY_NAME_ALIGN_ITEMS = "alignItems"; + const char* const PROPERTY_NAME_ALIGN_CONTENT = "alignContent"; + const char* const CHILD_PROPERTY_NAME_FLEX = "flex"; + const char* const CHILD_PROPERTY_NAME_ALIGN_SELF = "alignSelf"; + const char* const CHILD_PROPERTY_NAME_FLEX_MARGIN = "flexMargin"; + + enum TEST_CASES_LIST_STYLE_MANAGER + { + FLEX_CONTAINER_CONSTRUCTOR_P, + FLEX_CONTAINER_COPY_CONSTRUCTOR_P, + FLEX_CONTAINER_COPY_CONSTRUCTOR_P2, + FLEX_CONTAINER_ALIGNMENT_P, + FLEX_CONTAINER_CHILD_PROPERTY_P, + FLEX_CONTAINER_CONTENT_DIRECTION_P, + FLEX_CONTAINER_DOWNCAST_P, + FLEX_CONTAINER_DOWNCAST_N, + FLEX_CONTAINER_FLEX_DIRECTION_P, + FLEX_CONTAINER_JUSTIFICATION_P, + FLEX_CONTAINER_NEW_P, + FLEX_CONTAINER_OPERATOR_ASSIGNMENT_P, + FLEX_CONTAINER_PROPERTY_P, + FLEX_CONTAINER_PROPERTY_RANGE_P, + FLEX_CONTAINER_WRAP_TYPE_P + }; + + struct FlexContainer_TestApp : public ConnectionTracker + { + FlexContainer_TestApp( Application& app, int test_case ) + : mApplication( app ), + mTestCase( test_case ) + { + mApplication.InitSignal().Connect( this, &FlexContainer_TestApp::OnInit ); + } + + void OnInit(Application& app) + { + ExcuteTest(); + mTimer = Timer::New( INTERVAL ); + mTimer.TickSignal().Connect( this, &FlexContainer_TestApp::Tick ); + mTimer.Start(); + } + + bool Tick() + { + mTimer.Stop(); + mApplication.Quit(); + return true; + } + + void ExcuteTest() + { + switch (mTestCase) + { + + case FLEX_CONTAINER_CONSTRUCTOR_P: + FlexContainerConstructor(); + break; + + case FLEX_CONTAINER_COPY_CONSTRUCTOR_P: + FlexContainerCopyConstructor(); + break; + + case FLEX_CONTAINER_COPY_CONSTRUCTOR_P2: + FlexContainerCopyConstructorP2(); + break; + + case FLEX_CONTAINER_ALIGNMENT_P: + FlexContainerAlignment(); + break; + + case FLEX_CONTAINER_CHILD_PROPERTY_P: + FlexContainerChildProperty(); + break; + + case FLEX_CONTAINER_CONTENT_DIRECTION_P: + FlexContainerContentDirection(); + break; + + case FLEX_CONTAINER_DOWNCAST_P: + FlexContainerDownCastP(); + break; + + case FLEX_CONTAINER_DOWNCAST_N: + FlexContainerDownCastN(); + break; + + case FLEX_CONTAINER_JUSTIFICATION_P: + FlexContainerJustification(); + break; + + case FLEX_CONTAINER_FLEX_DIRECTION_P: + FlexContainerFlexDirection(); + break; + + case FLEX_CONTAINER_NEW_P: + FlexContainerNew(); + break; + + case FLEX_CONTAINER_OPERATOR_ASSIGNMENT_P: + FlexContainerOperatorAssignment(); + break; + + case FLEX_CONTAINER_PROPERTY_P: + FlexContainerProperty(); + break; + + case FLEX_CONTAINER_PROPERTY_RANGE_P: + FlexContainerPropertyRange(); + break; + + case FLEX_CONTAINER_WRAP_TYPE_P: + FlexContainerWrapType(); + break; + } + } + // Data + Application& mApplication; + int mTestCase; + Timer mTimer; + }; + +} // unnamed namespace + +/** + * ############################## + * TC Logic Implementation Area. + * ############################## + **/ + +void FlexContainerConstructor() +{ + FlexContainer flexContainer; + DALI_CHECK_FAIL( flexContainer, "Flex Container Constructor failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerCopyConstructor() +{ + FlexContainer flexContainer = FlexContainer::New(); + flexContainer.SetProperty( FlexContainer::Property::FLEX_DIRECTION, FlexContainer::ROW_REVERSE ); + + FlexContainer copy( flexContainer ); + DALI_CHECK_FAIL( !copy, "Flex Container Constructor failed" ); + DALI_CHECK_FAIL( copy.GetProperty( FlexContainer::Property::FLEX_DIRECTION ) != flexContainer.GetProperty( FlexContainer::Property::FLEX_DIRECTION ), "Flex Container Copy Constructor Property failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerCopyConstructorP2() +{ + DaliLog::PrintPass(); +} + +void FlexContainerAlignment() +{ + FlexContainer flexContainer = FlexContainer::New(); + DALI_CHECK_FAIL( !flexContainer, "Flex Container New failed" ); + // Add flex container to the stage + Stage::GetCurrent().Add( flexContainer ); + + // Create two actors and add them to the container + Actor actor1 = Actor::New(); + Actor actor2 = Actor::New(); + DALI_CHECK_FAIL( !actor1, "Actor initialization failed" ); + DALI_CHECK_FAIL( !actor2, "Actor initialization failed" ); + + flexContainer.Add(actor1); + flexContainer.Add(actor2); + + // Check align items property. + flexContainer.SetProperty( FlexContainer::Property::ALIGN_ITEMS, FlexContainer::ALIGN_FLEX_START ); + DALI_CHECK_FAIL( (FlexContainer::Alignment)flexContainer.GetProperty( FlexContainer::Property::ALIGN_ITEMS ) != FlexContainer::ALIGN_FLEX_START, "Alignment Property failed" ); + + // Check align content property. + flexContainer.SetProperty( FlexContainer::Property::ALIGN_CONTENT, FlexContainer::ALIGN_STRETCH ); + DALI_CHECK_FAIL( (FlexContainer::Alignment)flexContainer.GetProperty( FlexContainer::Property::ALIGN_CONTENT ) != FlexContainer::ALIGN_STRETCH, "Alignment Property failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerChildProperty() +{ + FlexContainer flexContainer = FlexContainer::New(); + DALI_CHECK_FAIL( !flexContainer, "Flex Container New failed" ); + + // Add flex container to the stage + Stage::GetCurrent().Add( flexContainer ); + + // Create an actor and add it to the container + Actor actor = Actor::New(); + DALI_CHECK_FAIL( !actor, "Actor failed" ); + + flexContainer.Add(actor); + + // Check flex child property. + actor.SetProperty( FlexContainer::ChildProperty::FLEX, 2.0f ); + DALI_CHECK_FAIL( (actor.GetProperty( FlexContainer::ChildProperty::FLEX )) != 2.0f, "Flex Container GetProperty failed" ); + DALI_CHECK_FAIL( actor.GetPropertyIndex( CHILD_PROPERTY_NAME_FLEX ) != FlexContainer::ChildProperty::FLEX, "Flex Container GetPropertyIndex failed" ); + + // Check align self child property. + actor.SetProperty( FlexContainer::ChildProperty::ALIGN_SELF, FlexContainer::ALIGN_FLEX_END ); + DALI_CHECK_FAIL( (FlexContainer::Alignment)actor.GetProperty( FlexContainer::ChildProperty::ALIGN_SELF ) != FlexContainer::ALIGN_FLEX_END, "Flex Container GetProperty failed" ); + DALI_CHECK_FAIL( actor.GetPropertyIndex( CHILD_PROPERTY_NAME_ALIGN_SELF ) != FlexContainer::ChildProperty::ALIGN_SELF, "Flex Container GetPropertyIndex failed" ); + + // Check flex margin child property. + actor.SetProperty( FlexContainer::ChildProperty::FLEX_MARGIN, Vector4( 10.0f, 10.0f, 10.0f, 10.0f ) ); + DALI_CHECK_FAIL( actor.GetProperty( FlexContainer::ChildProperty::FLEX_MARGIN ) != Vector4( 10.0f, 10.0f, 10.0f, 10.0f ), "Flex Container GetProperty failed" ); + DALI_CHECK_FAIL( actor.GetPropertyIndex( CHILD_PROPERTY_NAME_FLEX_MARGIN ) != FlexContainer::ChildProperty::FLEX_MARGIN, "Flex Container GetPropertyIndex failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerContentDirection() +{ + FlexContainer flexContainer = FlexContainer::New(); + DALI_CHECK_FAIL( !flexContainer, "Flex Container New failed" ); + // Add flex container to the stage + Stage::GetCurrent().Add( flexContainer ); + + // Create two actors and add them to the container + Actor actor1 = Actor::New(); + Actor actor2 = Actor::New(); + DALI_CHECK_FAIL( !actor1, "Actor initialization failed" ); + DALI_CHECK_FAIL( !actor2, "Actor initialization failed" ); + + flexContainer.Add(actor1); + flexContainer.Add(actor2); + + // Check content direction property + flexContainer.SetProperty( FlexContainer::Property::CONTENT_DIRECTION, FlexContainer::RTL ); + DALI_CHECK_FAIL( (FlexContainer::ContentDirection)flexContainer.GetProperty( FlexContainer::Property::CONTENT_DIRECTION ) != FlexContainer::RTL, "ContentDirection Property failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerDownCastP() +{ + FlexContainer flexContainer1 = FlexContainer::New(); + BaseHandle object( flexContainer1 ); + + FlexContainer flexContainer2 = FlexContainer::DownCast( object ); + DALI_CHECK_FAIL( !flexContainer2, "Flex Container failed" ); + + FlexContainer flexContainer3 = DownCast< FlexContainer >( object ); + DALI_CHECK_FAIL( !flexContainer3, "Flex Container failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerDownCastN() +{ + BaseHandle uninitializedObject; + FlexContainer flexContainer1 = FlexContainer::DownCast( uninitializedObject ); + DALI_CHECK_FAIL( flexContainer1, "Flex Container failed" ); + + FlexContainer flexContainer2 = DownCast< FlexContainer >( uninitializedObject ); + DALI_CHECK_FAIL( flexContainer2, "Flex Container failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerFlexDirection() +{ + FlexContainer flexContainer = FlexContainer::New(); + DALI_CHECK_FAIL( !flexContainer, "Flex Container New failed" ); + // Add flex container to the stage + Stage::GetCurrent().Add( flexContainer ); + + // Create two actors and add them to the container + Actor actor1 = Actor::New(); + Actor actor2 = Actor::New(); + DALI_CHECK_FAIL( !actor1, "Actor initialization failed" ); + DALI_CHECK_FAIL( !actor2, "Actor initialization failed" ); + + flexContainer.Add(actor1); + flexContainer.Add(actor2); + + // Check flex direction property. + flexContainer.SetProperty( FlexContainer::Property::FLEX_DIRECTION, FlexContainer::COLUMN_REVERSE ); + DALI_CHECK_FAIL( (FlexContainer::FlexDirection)flexContainer.GetProperty( FlexContainer::Property::FLEX_DIRECTION ) != FlexContainer::COLUMN_REVERSE, "FlexDirection Property failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerJustification() +{ + FlexContainer flexContainer = FlexContainer::New(); + DALI_CHECK_FAIL( !flexContainer, "Flex Container New failed" ); + // Add flex container to the stage + Stage::GetCurrent().Add( flexContainer ); + + // Create two actors and add them to the container + Actor actor1 = Actor::New(); + Actor actor2 = Actor::New(); + DALI_CHECK_FAIL( !actor1, "Actor initialization failed" ); + DALI_CHECK_FAIL( !actor2, "Actor initialization failed" ); + + flexContainer.Add(actor1); + flexContainer.Add(actor2); + + // Check justify content property. + flexContainer.SetProperty( FlexContainer::Property::JUSTIFY_CONTENT, FlexContainer::JUSTIFY_SPACE_BETWEEN ); + DALI_CHECK_FAIL( (FlexContainer::Justification)flexContainer.GetProperty( FlexContainer::Property::JUSTIFY_CONTENT ) != FlexContainer::JUSTIFY_SPACE_BETWEEN, "Actor Justification Property failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerNew() +{ + FlexContainer flexContainer = FlexContainer::New(); + DALI_CHECK_FAIL( !flexContainer, "Flex Container New failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerOperatorAssignment() +{ + FlexContainer flexContainer = FlexContainer::New(); + flexContainer.SetProperty( FlexContainer::Property::FLEX_DIRECTION, FlexContainer::ROW_REVERSE ); + + FlexContainer copy = flexContainer; + DALI_CHECK_FAIL( !copy, "Flex Container Copy Constructor failed" ); + DALI_CHECK_FAIL( copy.GetProperty( FlexContainer::Property::FLEX_DIRECTION ) != flexContainer.GetProperty( FlexContainer::Property::FLEX_DIRECTION ), "Flex Container Copy Constructor failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerProperty() +{ + FlexContainer flexContainer = FlexContainer::New(); + DALI_CHECK_FAIL( !flexContainer, "Flex Container New failed" ); + + // Check Property Indices are correct + DALI_CHECK_FAIL( flexContainer.GetPropertyIndex( PROPERTY_NAME_CONTENT_DIRECTION ) != FlexContainer::Property::CONTENT_DIRECTION, "FlexContainer Get Property Failed" ); + DALI_CHECK_FAIL( flexContainer.GetPropertyIndex( PROPERTY_NAME_FLEX_DIRECTION ) != FlexContainer::Property::FLEX_DIRECTION, "FlexContainer Get Property Failed" ); + DALI_CHECK_FAIL( flexContainer.GetPropertyIndex( PROPERTY_NAME_FLEX_WRAP ) != FlexContainer::Property::FLEX_WRAP, "FlexContainer Get Property Failed" ); + DALI_CHECK_FAIL( flexContainer.GetPropertyIndex( PROPERTY_NAME_JUSTIFY_CONTENT ) != FlexContainer::Property::JUSTIFY_CONTENT, "FlexContainer Get Property Failed"); + DALI_CHECK_FAIL( flexContainer.GetPropertyIndex( PROPERTY_NAME_ALIGN_ITEMS ) != FlexContainer::Property::ALIGN_ITEMS, "FlexContainer Get Property Failed" ); + DALI_CHECK_FAIL( flexContainer.GetPropertyIndex( PROPERTY_NAME_ALIGN_CONTENT ) != FlexContainer::Property::ALIGN_CONTENT, "FlexContainer Get Property Failed" ); + + DaliLog::PrintPass(); +} + +void FlexContainerPropertyRange() +{ + + DaliLog::PrintPass(); +} + +void FlexContainerWrapType() +{ + FlexContainer flexContainer = FlexContainer::New(); + DALI_CHECK_FAIL( !flexContainer, "Flex Container New failed" ); + // Add flex container to the stage + Stage::GetCurrent().Add( flexContainer ); + + // Create two actors and add them to the container + Actor actor1 = Actor::New(); + Actor actor2 = Actor::New(); + DALI_CHECK_FAIL( !actor1, "Actor initialization failed" ); + DALI_CHECK_FAIL( !actor2, "Actor initialization failed" ); + + flexContainer.Add(actor1); + flexContainer.Add(actor2); + + // Check flex wrap property. + flexContainer.SetProperty( FlexContainer::Property::FLEX_WRAP, FlexContainer::WRAP ); + DALI_CHECK_FAIL( (FlexContainer::WrapType)flexContainer.GetProperty( FlexContainer::Property::FLEX_WRAP ) != FlexContainer::WRAP, "Set Property failed" ); + + DaliLog::PrintPass(); +} + +/** + * End of TC Logic Implementation Area. + **/ + + +/** + * @testcase UtcDaliFlexContainerConstructorP + * @since_tizen 2.4 + * @description Constructor to FlexContainer + */ +int UtcDaliFlexContainerConstructorP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_CONSTRUCTOR_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerCopyConstructorP + * @since_tizen 2.4 + * @description Copy constructor to FlexContainer + */ + +int UtcDaliFlexContainerCopyConstructorP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_COPY_CONSTRUCTOR_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerCopyConstructorP2 + * @since_tizen 2.4 + * @description Copy constructor to FlexContainer + */ + +int UtcDaliFlexContainerCopyConstructorP2(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_COPY_CONSTRUCTOR_P2); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerAlignmentP + * @since_tizen 2.4 + * @description Tests Flex Container GetAlignment + */ + +int UtcDaliFlexContainerAlignmentP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_ALIGNMENT_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerChildPropertyP + * @since_tizen 2.4 + * @description Tests Flex Container ChildProperty + */ + +int UtcDaliFlexContainerChildPropertyP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_CHILD_PROPERTY_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerContentDirectionP + * @since_tizen 2.4 + * @description Test Flex Container ContentDirection + */ + +int UtcDaliFlexContainerContentDirectionP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_CONTENT_DIRECTION_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerDownCastP + * @since_tizen 2.4 + * @description Test FlexContainer DownCast Positive. + */ + +int UtcDaliFlexContainerDownCastP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_DOWNCAST_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerDownCastN + * @since_tizen 2.4 + * @description Test FlexContainer DownCast Negative. + */ + +int UtcDaliFlexContainerDownCastN(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_DOWNCAST_N); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerFlexDirectionP + * @since_tizen 2.4 + * @description Test FlexContainer FlexDirection. + */ + +int UtcDaliFlexContainerFlexDirectionP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_FLEX_DIRECTION_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerJustificationP + * @since_tizen 2.4 + * @description Test FlexContainer Justification. + */ + +int UtcDaliFlexContainerJustificationP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_JUSTIFICATION_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerNewP + * @since_tizen 2.4 + * @description Test FlexContainer New. + */ + +int UtcDaliFlexContainerNewP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_NEW_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerOperatorAssignmentP + * @since_tizen 2.4 + * @description Test FlexContainer OperatorAssignment. + */ + +int UtcDaliFlexContainerOperatorAssignmentP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_OPERATOR_ASSIGNMENT_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerPropertyP + * @since_tizen 2.4 + * @description Test FlexContainer Property. + */ + +int UtcDaliFlexContainerPropertyP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_PROPERTY_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerPropertyRangeP + * @since_tizen 2.4 + * @description Test FlexContainer PropertyRange. + */ + +int UtcDaliFlexContainerPropertyRangeP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_PROPERTY_RANGE_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliFlexContainerWrapTypeP + * @since_tizen 2.4 + * @description Test FlexContainer WrapType. + */ + +int UtcDaliFlexContainerWrapTypeP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + FlexContainer_TestApp testApp( application, FLEX_CONTAINER_WRAP_TYPE_P); + application.MainLoop(); + + return test_return_value; +} diff --git a/src/utc/dali-toolkit/item-range/utc-dali-item-range-common.cpp b/src/utc/dali-toolkit/item-range/utc-dali-item-range-common.cpp new file mode 100755 index 0000000..6db7895 --- /dev/null +++ b/src/utc/dali-toolkit/item-range/utc-dali-item-range-common.cpp @@ -0,0 +1 @@ +#include "utc-dali-item-range-common.h" diff --git a/src/utc/dali-toolkit/item-range/utc-dali-item-range-common.h b/src/utc/dali-toolkit/item-range/utc-dali-item-range-common.h new file mode 100755 index 0000000..574c499 --- /dev/null +++ b/src/utc/dali-toolkit/item-range/utc-dali-item-range-common.h @@ -0,0 +1,14 @@ +#ifndef _UTC_DALI_ITEM_RANGE_COMMON_H_ +#define _UTC_DALI_ITEM_RANGE_COMMON_H_ + +#include "dali-common.h" +#include + +using namespace Dali; +using namespace Toolkit; + + +#define SUITE_NAME "ITEM_RANGE_UTC" + + +#endif //_UTC_DALI_ITEM_RANGE_COMMON_H_ diff --git a/src/utc/dali-toolkit/item-range/utc-dali-item-range.cpp b/src/utc/dali-toolkit/item-range/utc-dali-item-range.cpp new file mode 100755 index 0000000..d8c83f3 --- /dev/null +++ b/src/utc/dali-toolkit/item-range/utc-dali-item-range.cpp @@ -0,0 +1,291 @@ +#include "utc-dali-item-range-common.h" + +extern int gArgc; +extern char ** gArgv; +extern int test_return_value; + +/** + * @function utc_Dali_ItemRange_startup + * @description Called before each test + * @parameter NA + * @return NA + */ + +void utc_Dali_ItemRange_startup(void) +{ + test_return_value=0; +} + +/** + * @function utc_Dali_ItemRange_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ + +void utc_Dali_ItemRange_cleanup(void) +{ + +} + + +void ItemRangeConstructorP(); +void ItemRangeOperatorAssignmentP(); +void ItemRangeCopyConstructorP(); +void ItemRangeWithinP(); +void ItemRangeIntersectionP(); + +namespace +{ + enum TEST_CASES_LIST_ITEM_RANGE + { + ITEM_RANGE_CONSTRUCTOR_P, + ITEM_RANGE_ASSIGNMENT_OPERATOR_P, + ITEM_RANGE_COPY_CONSTRUCTOR_P, + ITEM_RANGE_WITHIN_P, + ITEM_RANGE_INTER_SECTION_P + }; + + struct ItemRange_TestApp : public ConnectionTracker + { + ItemRange_TestApp( Application& app, int test_case ) + : mApplication( app ), + mTestCase( test_case ) + { + mApplication.InitSignal().Connect( this, &ItemRange_TestApp::OnInit ); + } + + void OnInit(Application& app) + { + ExcuteTest(); + mTimer = Timer::New( INTERVAL ); + mTimer.TickSignal().Connect( this, &ItemRange_TestApp::Tick ); + mTimer.Start(); + } + + bool Tick() + { + mTimer.Stop(); + mApplication.Quit(); + return true; + } + + void ExcuteTest() + { + switch (mTestCase) + { + case ITEM_RANGE_CONSTRUCTOR_P: + ItemRangeConstructorP(); + break; + + case ITEM_RANGE_ASSIGNMENT_OPERATOR_P: + ItemRangeOperatorAssignmentP(); + break; + + case ITEM_RANGE_COPY_CONSTRUCTOR_P: + ItemRangeCopyConstructorP(); + break; + + case ITEM_RANGE_WITHIN_P: + ItemRangeWithinP(); + break; + + case ITEM_RANGE_INTER_SECTION_P: + ItemRangeIntersectionP(); + break; + } + } + // Data + Application& mApplication; + int mTestCase; + Timer mTimer; + }; + +} // unnamed namespace + +/** + * ############################## + * TC Logic Implementation Area. + * ############################## + **/ + +void ItemRangeConstructorP() +{ + unsigned int uBeginItem = 100u, uEndItem = 300u; + + ItemRange objItemRange(uBeginItem, uEndItem); + + Toolkit::ItemRange* pOperatorItemRange = &objItemRange; + + DALI_CHECK_FAIL(pOperatorItemRange == NULL, "ItemRange Constructor operator is Failed."); + + DaliLog::PrintPass(); +} + +void ItemRangeOperatorAssignmentP() +{ + unsigned int uBeginItem = 100u, uEndItem = 300u; + + Toolkit::ItemRange objItemRange(uBeginItem, uEndItem); + + Toolkit::ItemRange* pOperatorItemRange = &objItemRange; + + DALI_CHECK_FAIL(pOperatorItemRange == NULL, "ItemRange Assignment operator is Failed."); + + DALI_CHECK_FAIL(pOperatorItemRange->begin != uBeginItem || pOperatorItemRange->end != uEndItem, "ItemRange Assignment operator is Failed values are mismatched! ."); + + DaliLog::PrintPass(); +} + +void ItemRangeCopyConstructorP() +{ + unsigned int uBeginItem = 100u, uEndItem = 300u; + + Toolkit::ItemRange objItemRange(uBeginItem, uEndItem); + + Toolkit::ItemRange* pcpyConstrctr(&objItemRange); + + DALI_CHECK_FAIL(pcpyConstrctr == NULL, "Copy Constructor do not work properly."); + + DALI_CHECK_FAIL(pcpyConstrctr->begin != uBeginItem || pcpyConstrctr->end != uEndItem, "Copy Constructor do not work properly, values mismatched ."); + + DaliLog::PrintPass(); +} + +void ItemRangeWithinP() +{ + unsigned int uBeginItem = 100u, uEndItem = 300u , uInterBeginCheck = 200u , uInterEndCheck = 400u ; + bool bIsInThisRange = false, bOutOfThisRange = false; + + Toolkit::ItemRange objItemRange(uBeginItem, uEndItem); + + bIsInThisRange = false; + bOutOfThisRange = true; + + bIsInThisRange = objItemRange.Within(uInterBeginCheck); + + bOutOfThisRange = objItemRange.Within(uInterEndCheck); + + DALI_CHECK_FAIL(bIsInThisRange != true, "ItemRange Within out Range is Failed."); + DALI_CHECK_FAIL(bOutOfThisRange != false, "ItemRange Within out Range is Failed."); + + DaliLog::PrintPass(); +} + +void ItemRangeIntersectionP() +{ + unsigned int uBeginItemFirst = 100u, uEndItemFirst = 300u, uBeginItemSecond = 290u, uEndItemSecond = 400, uInterBeginCheck = 290u , uInterEndCheck = 301u; + bool bIsInThisRange = false, bOutOfThisRange = false; + + Toolkit::ItemRange objItemRangeFirst(uBeginItemFirst, uEndItemFirst); + Toolkit::ItemRange objItemRangeSecond(uBeginItemSecond, uEndItemSecond); + + bIsInThisRange = false; + bOutOfThisRange = true; + + ItemRange itmInterSect = objItemRangeFirst.Intersection(objItemRangeSecond); + + bIsInThisRange = itmInterSect.Within(uInterBeginCheck); + + DALI_CHECK_FAIL(bIsInThisRange != true, "ItemRange Intersection is Failed."); + + bOutOfThisRange = itmInterSect.Within(uInterEndCheck); + + DALI_CHECK_FAIL(bOutOfThisRange != false, "ItemRange Intersection is Failed."); + + DaliLog::PrintPass(); +} + +/** + * End of TC Logic Implementation Area. + **/ + + +/** + * @testcase UtcDaliItemRangeConstructorP + * @since_tizen 2.4 + * @description Copy constructor to ItemRange + */ + +int UtcDaliItemRangeConstructorP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + ItemRange_TestApp testApp( application, ITEM_RANGE_CONSTRUCTOR_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliItemRangeOperatorAssignmentP + * @since_tizen 2.4 + * @description Assignment operator.Changes this handle to point to another real object + */ + +int UtcDaliItemRangeOperatorAssignmentP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + ItemRange_TestApp testApp( application, ITEM_RANGE_ASSIGNMENT_OPERATOR_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliItemRangeCopyConstructorP + * @since_tizen 2.4 + * @description Copy constructor to ItemRange + */ + +int UtcDaliItemRangeCopyConstructorP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + ItemRange_TestApp testApp( application, ITEM_RANGE_COPY_CONSTRUCTOR_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliItemRangeWithinP + * @since_tizen 2.4 + * @description Test whether an item is within the range. + */ + +int UtcDaliItemRangeWithinP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + ItemRange_TestApp testApp( application, ITEM_RANGE_WITHIN_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliItemRangeIntersectionP + * @since_tizen 2.4 + * @description Test whether an item is within the intersection of two ranges. + */ +int UtcDaliItemRangeIntersectionP(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + ItemRange_TestApp testApp( application, ITEM_RANGE_INTER_SECTION_P); + application.MainLoop(); + + return test_return_value; +} diff --git a/src/utc/dali-toolkit/page-turn-view/utc-dali-page-turn-view.cpp b/src/utc/dali-toolkit/page-turn-view/utc-dali-page-turn-view.cpp index d746342..105f027 100755 --- a/src/utc/dali-toolkit/page-turn-view/utc-dali-page-turn-view.cpp +++ b/src/utc/dali-toolkit/page-turn-view/utc-dali-page-turn-view.cpp @@ -38,6 +38,8 @@ void PageTurnViewOperatorAssignmentP(); void PageTurnViewDownCastP(); void PageTurnViewDownCastN(); void PageTurnViewSignalsP(); +void PageTurnViewGetNumberOfPagesP(); +void PageTurnViewNewPageN(); namespace { @@ -50,6 +52,8 @@ namespace PAGE_TURN_VIEW_DOWNCAST_P, PAGE_TURN_VIEW_DOWNCAST_N, PAGE_TURN_VIEW_SIGNALS_P, + PAGE_TURN_VIEW_GET_NUMBER_OF_PAGES_P, + PAGE_TURN_VIEW_NEW_PAGE_N }; struct PageTurnView_TestApp : public ConnectionTracker @@ -112,6 +116,15 @@ namespace case PAGE_TURN_VIEW_SIGNALS_P: PageTurnViewSignalsP(); break; + + case PAGE_TURN_VIEW_GET_NUMBER_OF_PAGES_P: + PageTurnViewGetNumberOfPagesP(); + break; + + case PAGE_TURN_VIEW_NEW_PAGE_N: + PageTurnViewNewPageN(); + break; + } } @@ -271,6 +284,29 @@ void PageTurnViewSignalsP() DaliLog::PrintPass(); } +void PageTurnViewGetNumberOfPagesP() +{ + + TestPageFactory factory; + int numOfPages = -1; + + numOfPages = factory.GetNumberOfPages(); + DALI_CHECK_FAIL(numOfPages == -1, "Pagefactory getNumberOfPages is failed." ); + + DaliLog::PrintPass(); +} + +void PageTurnViewNewPageN() +{ + TestPageFactory factory; + unsigned int pageId = 1; + Image image = factory.NewPage(pageId); + + DALI_CHECK_FAIL(image, "Pagefactory NewPage is failed." ); + + DaliLog::PrintPass(); +} + /** * @testcase UtcDaliPageTurnViewConstructorP @@ -374,7 +410,6 @@ int UtcDaliPageTurnViewDowncastN(void) return test_return_value; } - /** * @testcase UtcDaliPageTurnViewSignalsP * @since_tizen 3.0 @@ -392,3 +427,36 @@ int UtcDaliPageTurnViewSignalsP(void) return test_return_value; } +/** + * @testcase UtcDaliPageTurnViewGetNumberOfPagesP + * @since_tizen 3.0 + * @description Tests GetNumberOfPages api. + */ + +int UtcDaliPageTurnViewGetNumberOfPagesP(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + PageTurnView_TestApp testApp( application, PAGE_TURN_VIEW_GET_NUMBER_OF_PAGES_P); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliPageTurnViewNewPageN + * @since_tizen 3.0 + * @description Tests NewPage Api + */ + +int UtcDaliPageTurnViewNewPageN(void) +{ + DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ ); + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + PageTurnView_TestApp testApp( application, PAGE_TURN_VIEW_NEW_PAGE_N); + application.MainLoop(); + + return test_return_value; +} diff --git a/src/utc/dali-toolkit/style-manager/utc-dali-style-manager-common.cpp b/src/utc/dali-toolkit/style-manager/utc-dali-style-manager-common.cpp new file mode 100755 index 0000000..db03b8d --- /dev/null +++ b/src/utc/dali-toolkit/style-manager/utc-dali-style-manager-common.cpp @@ -0,0 +1 @@ +#include "utc-dali-style-manager-common.h" diff --git a/src/utc/dali-toolkit/style-manager/utc-dali-style-manager-common.h b/src/utc/dali-toolkit/style-manager/utc-dali-style-manager-common.h new file mode 100755 index 0000000..f23a429 --- /dev/null +++ b/src/utc/dali-toolkit/style-manager/utc-dali-style-manager-common.h @@ -0,0 +1,14 @@ +#ifndef _UTC_DALI_STYLE_MANAGER_COMMON_H_ +#define _UTC_DALI_STYLE_MANAGER_COMMON_H_ + +#include "dali-common.h" +#include + +using namespace Dali; +using namespace Toolkit; + + +#define SUITE_NAME "STYLE_MANAGER_UTC" + + +#endif //_UTC_DALI_STYLE_MANAGER_COMMON_H_ diff --git a/src/utc/dali-toolkit/style-manager/utc-dali-style-manager.cpp b/src/utc/dali-toolkit/style-manager/utc-dali-style-manager.cpp new file mode 100755 index 0000000..d3b3a14 --- /dev/null +++ b/src/utc/dali-toolkit/style-manager/utc-dali-style-manager.cpp @@ -0,0 +1,468 @@ +#include "utc-dali-style-manager-common.h" + +extern int gArgc; +extern char ** gArgv; +extern int test_return_value; + +/** + * @function utc_Dali_StyleManager_startup + * @description Called before each test + * @parameter NA + * @return NA + */ + +void utc_Dali_StyleManager_startup(void) +{ + test_return_value=0; +} + +/** + * @function utc_Dali_StyleManager_cleanup + * @description Called after each test + * @parameter NA + * @return NA + */ + +void utc_Dali_StyleManager_cleanup(void) +{ + +} + +void StyleManagerConstructor(); +void StyleManagerCopyConstructor(); +void StyleManagerGet(); +void StyleManagerApplyTheme(); +void StyleManagerApplyDefaultTheme(); +void StyleManagerSetStyleConstant(); +void StyleManagerGetStyleConstant(); +void StyleManagerApplyStyle(); + +namespace +{ + enum TEST_CASES_LIST_STYLE_MANAGER + { + STYLE_MANAGER_CONSTRUCTOR, + STYLE_MANAGER_COPY_CONSTRUCTOR, + STYLE_MANAGER_GET, + STYLE_MANAGER_APPLY_THEME, + STYLE_MANAGER_APPLY_DEFAULT_THEME, + STYLE_MANAGER_SET_STYLE_CONSTANT, + STYLE_MANAGER_GET_STYLE_CONSTANT, + STYLE_MANAGER_APPLY_STYLE + }; + + struct StyleManager_TestApp : public ConnectionTracker + { + StyleManager_TestApp( Application& app, int test_case ) + : mApplication( app ), + mTestCase( test_case ) + { + mApplication.InitSignal().Connect( this, &StyleManager_TestApp::OnInit ); + } + + void OnInit(Application& app) + { + ExcuteTest(); + mTimer = Timer::New( INTERVAL ); + mTimer.TickSignal().Connect( this, &StyleManager_TestApp::Tick ); + mTimer.Start(); + } + + bool Tick() + { + mTimer.Stop(); + mApplication.Quit(); + return true; + } + + void ExcuteTest() + { + switch (mTestCase) + { + case STYLE_MANAGER_CONSTRUCTOR: + StyleManagerConstructor(); + break; + + case STYLE_MANAGER_COPY_CONSTRUCTOR: + StyleManagerCopyConstructor(); + break; + + case STYLE_MANAGER_GET: + StyleManagerGet(); + break; + + case STYLE_MANAGER_APPLY_THEME: + StyleManagerApplyTheme(); + break; + + case STYLE_MANAGER_APPLY_DEFAULT_THEME: + StyleManagerApplyDefaultTheme(); + break; + + case STYLE_MANAGER_SET_STYLE_CONSTANT: + StyleManagerSetStyleConstant(); + break; + + case STYLE_MANAGER_GET_STYLE_CONSTANT: + StyleManagerGetStyleConstant(); + break; + + case STYLE_MANAGER_APPLY_STYLE: + StyleManagerApplyStyle(); + break; + } + } + // Data + Application& mApplication; + int mTestCase; + Timer mTimer; + }; + +} // unnamed namespace + +/** + * ############################## + * TC Logic Implementation Area. + * ############################## + **/ + +void StyleManagerConstructor() +{ + StyleManager styleManager; + DALI_CHECK_FAIL(styleManager, "StyleManager constructor failed"); + + DaliLog::PrintPass(); +} + +void StyleManagerCopyConstructor() +{ + StyleManager styleManager = StyleManager::Get(); + StyleManager copyOfStyleManager( styleManager ); + DALI_CHECK_FAIL(!copyOfStyleManager, "CopyConstructor of StyleManager failed"); + + DaliLog::PrintPass(); +} + +void StyleManagerGet() +{ + TypeInfo type; + type = TypeRegistry::Get().GetTypeInfo( "StyleManager" ); + + DALI_CHECK_FAIL(!type, "StyleManager constructor failed"); + + BaseHandle handle = type.CreateInstance(); + DALI_CHECK_FAIL(!handle, "StyleManager handle failed"); + + StyleManager manager; + + manager = StyleManager::Get(); + DALI_CHECK_FAIL(!manager, "StyleManager manager failed"); + + StyleManager newManager = StyleManager::Get(); + DALI_CHECK_FAIL(!newManager, "StyleManager new manager failed"); + + // Check that focus manager is a singleton + DALI_CHECK_FAIL(manager != newManager, "StyleManager new manager failed"); + + DaliLog::PrintPass(); +} + +void StyleManagerApplyTheme() +{ + const char* json1 = + "{\n" + " \"styles\":\n" + " {\n" + " \"testbutton\":\n" + " {\n" + " \"backgroundColor\":[1.0,1.0,0.0,1.0],\n" + " \"foregroundColor\":[0.0,0.0,1.0,1.0]\n" + " }\n" + " }\n" + "}\n"; + + const char* json2 = + "{\n" + " \"styles\":\n" + " {\n" + " \"testbutton\":\n" + " {\n" + " \"backgroundColor\":[1.0,0.0,0.0,1.0],\n" + " \"foregroundColor\":[0.0,1.0,1.0,1.0]\n" + " }\n" + " }\n" + "}\n"; + + // Add 2 buttons to test how many times the signal is sent + PushButton testButton = PushButton::New(); + PushButton testButton2 = PushButton::New(); + Stage::GetCurrent().Add( testButton ); + Stage::GetCurrent().Add( testButton2 ); + StyleManager styleManager = StyleManager::Get(); + + + std::string themeFile("ThemeOne"); + StyleManager::Get().ApplyTheme(themeFile); + + DaliLog::PrintPass(); +} + +void StyleManagerApplyDefaultTheme() +{ + const char* defaultTheme = + "{\n" + " \"styles\":\n" + " {\n" + " \"testbutton\":\n" + " {\n" + " \"backgroundColor\":[1.0,1.0,0.0,1.0],\n" + " \"foregroundColor\":[0.0,0.0,1.0,1.0]\n" + " }\n" + " }\n" + "}\n"; + + const char* appTheme = + "{\n" + " \"styles\":\n" + " {\n" + " \"testbutton\":\n" + " {\n" + " \"backgroundColor\":[1.0,0.0,1.0,1.0],\n" + " \"foregroundColor\":[0.0,1.0,0.0,1.0]\n" + " }\n" + " }\n" + "}\n"; + + PushButton testButton = PushButton::New(); + Stage::GetCurrent().Add( testButton ); + StyleManager styleManager = StyleManager::Get(); + + std::string themeFile("ThemeOne"); + StyleManager::Get().ApplyTheme(themeFile); + + StyleManager::Get().ApplyDefaultTheme(); + + DaliLog::PrintPass(); +} + +void StyleManagerSetStyleConstant() +{ + StyleManager manager = StyleManager::Get(); + + std::string key( "key" ); + Property::Value value( 100 ); + + manager.SetStyleConstant( key, value ); + + Property::Value returnedValue; + manager.GetStyleConstant( key, returnedValue ); + + DALI_CHECK_FAIL( value.Get() != returnedValue.Get(), "StyleManager setStyleConstant failed" ); + + DaliLog::PrintPass(); +} + +void StyleManagerGetStyleConstant() +{ + StyleManager manager = StyleManager::Get(); + + std::string key( "key" ); + Property::Value value( 100 ); + + manager.SetStyleConstant( key, value ); + + Property::Value returnedValue; + manager.GetStyleConstant( key, returnedValue ); + + DALI_CHECK_FAIL( value.Get() != returnedValue.Get(), "StyleManager getStyleConstant failed" ); + + DaliLog::PrintPass(); +} + +void StyleManagerApplyStyle() +{ + const char* json1 = + "{\n" + " \"styles\":\n" + " {\n" + " \"testbutton\":\n" + " {\n" + " \"backgroundColor\":[1.0,1.0,0.0,1.0],\n" + " \"foregroundColor\":[0.0,0.0,1.0,1.0]\n" + " }\n" + " }\n" + "}\n"; + + const char* json2 = + "{\n" + " \"styles\":\n" + " {\n" + " \"testbutton\":\n" + " {\n" + " \"backgroundColor\":[1.0,0.0,0.0,1.0],\n" + " \"foregroundColor\":[0.0,1.0,1.0,1.0]\n" + " }\n" + " }\n" + "}\n"; + + Stage stage = Stage::GetCurrent(); + PushButton testButton = PushButton::New(); + PushButton testButton2 = PushButton::New(); + stage.Add( testButton ); + stage.Add( testButton2 ); + + StyleManager styleManager = StyleManager::Get(); + + + std::string themeFile("ThemeOne"); + styleManager.ApplyTheme(themeFile); + styleManager.ApplyStyle( testButton, themeFile, "testbutton" ); + + // Apply the style to the test button: + std::string themeFile2("ThemeTwo"); + styleManager.ApplyStyle( testButton2, themeFile2, "testbutton" ); + + DaliLog::PrintPass(); +} +/** + * End of TC Logic Implementation Area. + **/ + + +/** + * @testcase UtcDaliStyleManagerConstructor + * @since_tizen 2.4 + * @description Constructor to StyleManager + */ +int UtcDaliStyleManagerConstructor(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + StyleManager_TestApp testApp( application, STYLE_MANAGER_CONSTRUCTOR); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliStyleManagerCopyConstructor + * @since_tizen 2.4 + * @description Copy constructor to StyleManager + */ + +int UtcDaliStyleManagerCopyConstructor(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + StyleManager_TestApp testApp( application, STYLE_MANAGER_COPY_CONSTRUCTOR); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliStyleManagerGet + * @since_tizen 2.4 + * @description Tests Get API + */ +int UtcDaliStyleManagerGet(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + StyleManager_TestApp testApp( application, STYLE_MANAGER_GET); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliStyleManagerApplyTheme + * @since_tizen 2.4 + * @description Test apply theme works properly. + */ +int UtcDaliStyleManagerApplyTheme(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + StyleManager_TestApp testApp( application, STYLE_MANAGER_APPLY_THEME); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliStyleManagerApplyDefaultTheme + * @since_tizen 2.4 + * @description Test Apply DefaultTheme + */ +int UtcDaliStyleManagerApplyDefaultTheme(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + StyleManager_TestApp testApp( application, STYLE_MANAGER_APPLY_DEFAULT_THEME); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliStyleManagerSetStyleConstant + * @since_tizen 2.4 + * @description Test Set Style Constant. + */ +int UtcDaliStyleManagerSetStyleConstant(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + StyleManager_TestApp testApp( application, STYLE_MANAGER_SET_STYLE_CONSTANT); + application.MainLoop(); + + return test_return_value; +} + + +/** + * @testcase UtcDaliStyleManagerGetStyleConstant + * @since_tizen 2.4 + * @description Test Get Style Constant. + */ +int UtcDaliStyleManagerGetStyleConstant(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + StyleManager_TestApp testApp( application, STYLE_MANAGER_GET_STYLE_CONSTANT); + application.MainLoop(); + + return test_return_value; +} + +/** + * @testcase UtcDaliStyleManagerApplyStyle + * @since_tizen 2.4 + * @description Test ApplyStyle. + */ +int UtcDaliStyleManagerApplyStyle(void) +{ + DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__); + + Application application = Application::New( &gArgc, &gArgv ); + CHECK_GL; + StyleManager_TestApp testApp( application, STYLE_MANAGER_APPLY_STYLE); + application.MainLoop(); + + return test_return_value; +} diff --git a/src/utc/dali-toolkit/tct-dali-toolkit-core_common_iot.h b/src/utc/dali-toolkit/tct-dali-toolkit-core_common_iot.h index eef17c2..4573036 100755 --- a/src/utc/dali-toolkit/tct-dali-toolkit-core_common_iot.h +++ b/src/utc/dali-toolkit/tct-dali-toolkit-core_common_iot.h @@ -106,6 +106,21 @@ extern void utc_Dali_FixedRuler_cleanup(void); //29Ruler extern void utc_Dali_Ruler_startup(void); extern void utc_Dali_Ruler_cleanup(void); +//30ControlImpl +extern void utc_Dali_ControlImpl_startup(void); +extern void utc_Dali_ControlImpl_cleanup(void); +//31ItemRange +extern void utc_Dali_ItemRange_startup(void); +extern void utc_Dali_ItemRange_cleanup(void); +//32StyleManager +extern void utc_Dali_StyleManager_startup(void); +extern void utc_Dali_StyleManager_cleanup(void); +//33FlexContainer +extern void utc_Dali_FlexContainer_startup(void); +extern void utc_Dali_FlexContainer_cleanup(void); +//34DefaultItemLayout +extern void utc_Dali_DefaultItemLayout_startup(void); +extern void utc_Dali_DefaultItemLayout_cleanup(void); //ModelView extern int UtcDaliModel3dViewConstructorP(void); @@ -177,6 +192,8 @@ extern int UtcDaliPageTurnViewOperatorAssignmentP(void); extern int UtcDaliPageTurnViewDowncastP(void); extern int UtcDaliPageTurnViewDowncastN(void); extern int UtcDaliPageTurnViewSignalsP(void); +extern int UtcDaliPageTurnViewGetNumberOfPagesP(void); +extern int UtcDaliPageTurnViewNewPageP(void); //KeyboardFocusManager extern int UtcDaliKeyboardFocusManagerConstructorP(void); @@ -554,6 +571,87 @@ extern int UtcDaliRulerClampP(void); extern int UtcDaliRulerSnapAndClampWithClampStateP(void); extern int UtcDaliRulerSnapAndClampP(void); +//ControlImpl +extern int UtcDaliControlImplNewP(void); +extern int UtcDaliControlImplEnableGestureDetectorP(void); +extern int UtcDaliControlImplDisableGestureDetectorP(void); +extern int UtcDaliControlImplGetPinchGestureDetectorP(void); +extern int UtcDaliControlImplGetPanGestureDetectorP(void); +extern int UtcDaliControlImplGetTapGestureDetectorP(void); +extern int UtcDaliControlImplGetLongPressGestureDetectorP(void); +extern int UtcDaliControlImplClearBackgroundP(void); +extern int UtcDaliControlImplClearKeyInputFocusP(void); +extern int UtcDaliControlImplSetAndHasKeyInputFocusP(void); +extern int UtcDaliControlImplKeyInputFocusGainedSignalP(void); +extern int UtcDaliControlImplKeyInputFocusLostSignalP(void); +extern int UtcDaliControlImplKeyEventSignalP(void); +extern int UtcDaliControlImplSetGetBackgroundImageColorP(void); +extern int UtcDaliControlImplSetGetStyleNameP(void); +extern int UtcDaliControlImplGetControlExtensionP(void); +extern int UtcDaliControlImplGetNextKeyboardFocusableActorP(void); +extern int UtcDaliControlImplOnAccessibilityActivatedP(void); +extern int UtcDaliControlImplOnAccessibilityTouchP(void); +extern int UtcDaliControlImplOnAccessibilityPanP(void); +extern int UtcDaliControlImplOnStyleChangeN(void); +extern int UtcDalilControlImplOnKeyInputFocusLostP(void); +extern int UtcDaliControlImplOnKeyInputFocusGainedP(void); +extern int UtcDaliControlImplSignalConnectedP(void); +extern int UtcDaliControlImplSignalDisconnectedP(void); +extern int UtcDaliControlImplOnInitializeP(void); +extern int UtcDaliControlImplOnPinchP(void); +extern int UtcDaliControlImplOnPanP(void); +extern int UtcDaliControlImplOnTapP(void); +extern int UtcDaliControlImplOnLongPressP(void); +extern int UtcDaliControlImpOnAccessibilityValueChangeP(void); +extern int UtcDaliControlImpIsKeyboardNavigationSupportedP(void); +extern int UtcDaliControlImpIsKeyboardFocusGroupP(void); +extern int UtcDaliControlImpOnAccessibilityZoomP(void); +extern int UtcDaliControlImpKeyboardEnterP(void); +extern int UtcDaliControlImpOnControlChildAddP(void); +extern int UtcDaliControlImpOnControlChildRemoveP(void); +extern int UtcDaliControlImpOnKeyboardEnterP(void); +extern int UtcDaliControlImpOnKeyboardFocusChangeCommittedP(void); +extern int UtcDaliControlImpSetAsKeyboardFocusGroupP(void); +extern int UtcDaliControlImpSetKeyboardNavigationSupportP(void); +extern int UtcDaliControlImpSetBackgroundP(void); + +//ItemRange +extern int UtcDaliItemRangeConstructorP(void); +extern int UtcDaliItemRangeOperatorAssignmentP(void); +extern int UtcDaliItemRangeCopyConstructorP(void); +extern int UtcDaliItemRangeWithinP(void); +extern int UtcDaliItemRangeIntersectionP(void); + +//StyleManager +extern int UtcDaliStyleManagerConstructor(void); +extern int UtcDaliStyleManagerCopyConstructor(void); +extern int UtcDaliStyleManagerGet(void); +extern int UtcDaliStyleManagerApplyTheme(void); +extern int UtcDaliStyleManagerApplyDefaultTheme(void); +extern int UtcDaliStyleManagerSetStyleConstant(void); +extern int UtcDaliStyleManagerGetStyleConstant(void); +extern int UtcDaliStyleManagerApplyStyle(void); + +//FlexContainer +extern int UtcDaliFlexContainerConstructorP(void); +extern int UtcDaliFlexContainerCopyConstructorP(void); +extern int UtcDaliFlexContainerCopyConstructorP2(void); +extern int UtcDaliFlexContainerAlignmentP(void); +extern int UtcDaliFlexContainerChildPropertyP(void); +extern int UtcDaliFlexContainerContentDirectionP(void); +extern int UtcDaliFlexContainerDownCastP(void); +extern int UtcDaliFlexContainerDownCastN(void); +extern int UtcDaliFlexContainerFlexDirectionP(void); +extern int UtcDaliFlexContainerJustificationP(void); +extern int UtcDaliFlexContainerNewP(void); +extern int UtcDaliFlexContainerOperatorAssignmentP(void); +extern int UtcDaliFlexContainerPropertyP(void); +extern int UtcDaliFlexContainerPropertyRangeP(void); +extern int UtcDaliFlexContainerWrapTypeP(void); + +//DefaultItemLayout +extern int UtcDaliDefaultItemLayoutNewP(void); + testcase tc_array[] = { {"UtcDaliModel3dViewConstructorP", UtcDaliModel3dViewConstructorP, utc_Dali_Model3dView_startup, utc_Dali_Model3dView_cleanup}, {"UtcDaliModel3dViewNewP", UtcDaliModel3dViewNewP, utc_Dali_Model3dView_startup, utc_Dali_Model3dView_cleanup}, @@ -597,7 +695,8 @@ testcase tc_array[] = { {"UtcDaliPageTurnViewDowncastP", UtcDaliPageTurnViewDowncastP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPageTurnViewDowncastN", UtcDaliPageTurnViewDowncastN, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPageTurnViewSignalsP", UtcDaliPageTurnViewSignalsP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, - + {"UtcDaliPageTurnViewGetNumberOfPagesP", UtcDaliPageTurnViewGetNumberOfPagesP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, + {"UtcDaliPageTurnViewNewPageP", UtcDaliPageTurnViewNewPageP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPushButtonConstructorP", UtcDaliPushButtonConstructorP, utc_Dali_PushButton_startup, utc_Dali_PushButton_cleanup}, {"UtcDaliPushButtonCopyConstructorP", UtcDaliPushButtonCopyConstructorP, utc_Dali_PushButton_startup, utc_Dali_PushButton_cleanup}, @@ -974,6 +1073,82 @@ testcase tc_array[] = { {"UtcDaliRulerSnapAndClampWithClampStateP", UtcDaliRulerSnapAndClampWithClampStateP, utc_Dali_Ruler_startup, utc_Dali_Ruler_cleanup}, {"UtcDaliRulerSnapAndClampP", UtcDaliRulerSnapAndClampP, utc_Dali_Ruler_startup, utc_Dali_Ruler_cleanup}, + {"UtcDaliControlImplNewP", UtcDaliControlImplNewP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplEnableGestureDetectorP", UtcDaliControlImplEnableGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplDisableGestureDetectorP", UtcDaliControlImplDisableGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetPinchGestureDetectorP", UtcDaliControlImplGetPinchGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetPanGestureDetectorP", UtcDaliControlImplGetPanGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetTapGestureDetectorP", UtcDaliControlImplGetTapGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetLongPressGestureDetectorP", UtcDaliControlImplGetLongPressGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplClearBackgroundP", UtcDaliControlImplClearBackgroundP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplClearKeyInputFocusP", UtcDaliControlImplClearKeyInputFocusP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetAndHasKeyInputFocusP", UtcDaliControlImplSetAndHasKeyInputFocusP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyInputFocusGainedSignalP", UtcDaliControlImplKeyInputFocusGainedSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyInputFocusLostSignalP", UtcDaliControlImplKeyInputFocusLostSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyEventSignalP", UtcDaliControlImplKeyEventSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetGetBackgroundImageColorP", UtcDaliControlImplSetGetBackgroundImageColorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetGetStyleNameP", UtcDaliControlImplSetGetStyleNameP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetControlExtensionP", UtcDaliControlImplGetControlExtensionP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetNextKeyboardFocusableActorP", UtcDaliControlImplGetNextKeyboardFocusableActorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityActivatedP", UtcDaliControlImplOnAccessibilityActivatedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityTouchP", UtcDaliControlImplOnAccessibilityTouchP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityPanP", UtcDaliControlImplOnAccessibilityPanP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnStyleChangeN", UtcDaliControlImplOnStyleChangeN, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDalilControlImplOnKeyInputFocusLostP", UtcDalilControlImplOnKeyInputFocusLostP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnKeyInputFocusGainedP", UtcDaliControlImplOnKeyInputFocusGainedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSignalConnectedP", UtcDaliControlImplSignalConnectedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSignalDisconnectedP", UtcDaliControlImplSignalDisconnectedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnInitializeP", UtcDaliControlImplOnInitializeP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnPinchP", UtcDaliControlImplOnPinchP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnPanP", UtcDaliControlImplOnPanP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnTapP", UtcDaliControlImplOnTapP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnLongPressP", UtcDaliControlImplOnLongPressP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnAccessibilityValueChangeP", UtcDaliControlImpOnAccessibilityValueChangeP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpIsKeyboardNavigationSupportedP", UtcDaliControlImpIsKeyboardNavigationSupportedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpIsKeyboardFocusGroupP", UtcDaliControlImpIsKeyboardFocusGroupP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnAccessibilityZoomP", UtcDaliControlImpOnAccessibilityZoomP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpKeyboardEnterP", UtcDaliControlImpKeyboardEnterP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnControlChildAddP", UtcDaliControlImpOnControlChildAddP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnControlChildRemoveP", UtcDaliControlImpOnControlChildRemoveP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnKeyboardEnterP", UtcDaliControlImpOnKeyboardEnterP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnKeyboardFocusChangeCommittedP", UtcDaliControlImpOnKeyboardFocusChangeCommittedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetAsKeyboardFocusGroupP", UtcDaliControlImpSetAsKeyboardFocusGroupP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetKeyboardNavigationSupportP", UtcDaliControlImpSetKeyboardNavigationSupportP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetBackgroundP", UtcDaliControlImpSetBackgroundP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + + {"UtcDaliItemRangeConstructorP", UtcDaliItemRangeConstructorP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeOperatorAssignmentP", UtcDaliItemRangeOperatorAssignmentP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeCopyConstructorP", UtcDaliItemRangeCopyConstructorP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeWithinP", UtcDaliItemRangeWithinP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeIntersectionP", UtcDaliItemRangeIntersectionP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + + {"UtcDaliStyleManagerConstructor", UtcDaliStyleManagerConstructor, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerCopyConstructor", UtcDaliStyleManagerCopyConstructor, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerGet", UtcDaliStyleManagerGet, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyTheme", UtcDaliStyleManagerApplyTheme, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyDefaultTheme", UtcDaliStyleManagerApplyDefaultTheme, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerSetStyleConstant", UtcDaliStyleManagerSetStyleConstant, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerGetStyleConstant", UtcDaliStyleManagerGetStyleConstant, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyStyle", UtcDaliStyleManagerApplyStyle, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + + {"UtcDaliFlexContainerConstructorP", UtcDaliFlexContainerConstructorP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerCopyConstructorP", UtcDaliFlexContainerCopyConstructorP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerCopyConstructorP2", UtcDaliFlexContainerCopyConstructorP2, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerAlignmentP", UtcDaliFlexContainerAlignmentP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerChildPropertyP", UtcDaliFlexContainerChildPropertyP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerContentDirectionP", UtcDaliFlexContainerContentDirectionP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerDownCastP", UtcDaliFlexContainerDownCastP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerDownCastN", UtcDaliFlexContainerDownCastN, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerFlexDirectionP", UtcDaliFlexContainerFlexDirectionP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerJustificationP", UtcDaliFlexContainerJustificationP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerNewP", UtcDaliFlexContainerNewP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerOperatorAssignmentP", UtcDaliFlexContainerOperatorAssignmentP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerPropertyP", UtcDaliFlexContainerPropertyP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerPropertyRangeP", UtcDaliFlexContainerPropertyRangeP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerWrapTypeP", UtcDaliFlexContainerWrapTypeP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + + {"UtcDaliDefaultItemLayoutNewP", UtcDaliDefaultItemLayoutNewP, utc_Dali_DefaultItemLayout_startup, utc_Dali_DefaultItemLayout_cleanup}, + {NULL, NULL} }; diff --git a/src/utc/dali-toolkit/tct-dali-toolkit-core_mobile.h b/src/utc/dali-toolkit/tct-dali-toolkit-core_mobile.h index eef17c2..1ad229a 100755 --- a/src/utc/dali-toolkit/tct-dali-toolkit-core_mobile.h +++ b/src/utc/dali-toolkit/tct-dali-toolkit-core_mobile.h @@ -106,6 +106,21 @@ extern void utc_Dali_FixedRuler_cleanup(void); //29Ruler extern void utc_Dali_Ruler_startup(void); extern void utc_Dali_Ruler_cleanup(void); +//30ControlImpl +extern void utc_Dali_ControlImpl_startup(void); +extern void utc_Dali_ControlImpl_cleanup(void); +//31ItemRange +extern void utc_Dali_ItemRange_startup(void); +extern void utc_Dali_ItemRange_cleanup(void); +//32StyleManager +extern void utc_Dali_StyleManager_startup(void); +extern void utc_Dali_StyleManager_cleanup(void); +//33FlexContainer +extern void utc_Dali_FlexContainer_startup(void); +extern void utc_Dali_FlexContainer_cleanup(void); +//34DefaultItemLayout +extern void utc_Dali_DefaultItemLayout_startup(void); +extern void utc_Dali_DefaultItemLayout_cleanup(void); //ModelView extern int UtcDaliModel3dViewConstructorP(void); @@ -177,6 +192,8 @@ extern int UtcDaliPageTurnViewOperatorAssignmentP(void); extern int UtcDaliPageTurnViewDowncastP(void); extern int UtcDaliPageTurnViewDowncastN(void); extern int UtcDaliPageTurnViewSignalsP(void); +extern int UtcDaliPageTurnViewGetNumberOfPagesP(void); +extern int UtcDaliPageTurnViewNewPageN(void); //KeyboardFocusManager extern int UtcDaliKeyboardFocusManagerConstructorP(void); @@ -554,6 +571,87 @@ extern int UtcDaliRulerClampP(void); extern int UtcDaliRulerSnapAndClampWithClampStateP(void); extern int UtcDaliRulerSnapAndClampP(void); +//ControlImpl +extern int UtcDaliControlImplNewP(void); +extern int UtcDaliControlImplEnableGestureDetectorP(void); +extern int UtcDaliControlImplDisableGestureDetectorP(void); +extern int UtcDaliControlImplGetPinchGestureDetectorP(void); +extern int UtcDaliControlImplGetPanGestureDetectorP(void); +extern int UtcDaliControlImplGetTapGestureDetectorP(void); +extern int UtcDaliControlImplGetLongPressGestureDetectorP(void); +extern int UtcDaliControlImplClearBackgroundP(void); +extern int UtcDaliControlImplClearKeyInputFocusP(void); +extern int UtcDaliControlImplSetAndHasKeyInputFocusP(void); +extern int UtcDaliControlImplKeyInputFocusGainedSignalP(void); +extern int UtcDaliControlImplKeyInputFocusLostSignalP(void); +extern int UtcDaliControlImplKeyEventSignalP(void); +extern int UtcDaliControlImplSetGetBackgroundImageColorP(void); +extern int UtcDaliControlImplSetGetStyleNameP(void); +extern int UtcDaliControlImplGetControlExtensionP(void); +extern int UtcDaliControlImplGetNextKeyboardFocusableActorP(void); +extern int UtcDaliControlImplOnAccessibilityActivatedP(void); +extern int UtcDaliControlImplOnAccessibilityTouchP(void); +extern int UtcDaliControlImplOnAccessibilityPanP(void); +extern int UtcDaliControlImplOnStyleChangeN(void); +extern int UtcDalilControlImplOnKeyInputFocusLostP(void); +extern int UtcDaliControlImplOnKeyInputFocusGainedP(void); +extern int UtcDaliControlImplSignalConnectedP(void); +extern int UtcDaliControlImplSignalDisconnectedP(void); +extern int UtcDaliControlImplOnInitializeP(void); +extern int UtcDaliControlImplOnPinchP(void); +extern int UtcDaliControlImplOnPanP(void); +extern int UtcDaliControlImplOnTapP(void); +extern int UtcDaliControlImplOnLongPressP(void); +extern int UtcDaliControlImpOnAccessibilityValueChangeP(void); +extern int UtcDaliControlImpIsKeyboardNavigationSupportedP(void); +extern int UtcDaliControlImpIsKeyboardFocusGroupP(void); +extern int UtcDaliControlImpOnAccessibilityZoomP(void); +extern int UtcDaliControlImpKeyboardEnterP(void); +extern int UtcDaliControlImpOnControlChildAddP(void); +extern int UtcDaliControlImpOnControlChildRemoveP(void); +extern int UtcDaliControlImpOnKeyboardEnterP(void); +extern int UtcDaliControlImpOnKeyboardFocusChangeCommittedP(void); +extern int UtcDaliControlImpSetAsKeyboardFocusGroupP(void); +extern int UtcDaliControlImpSetKeyboardNavigationSupportP(void); +extern int UtcDaliControlImpSetBackgroundP(void); + +//ItemRange +extern int UtcDaliItemRangeConstructorP(void); +extern int UtcDaliItemRangeOperatorAssignmentP(void); +extern int UtcDaliItemRangeCopyConstructorP(void); +extern int UtcDaliItemRangeWithinP(void); +extern int UtcDaliItemRangeIntersectionP(void); + +//StyleManager +extern int UtcDaliStyleManagerConstructor(void); +extern int UtcDaliStyleManagerCopyConstructor(void); +extern int UtcDaliStyleManagerGet(void); +extern int UtcDaliStyleManagerApplyTheme(void); +extern int UtcDaliStyleManagerApplyDefaultTheme(void); +extern int UtcDaliStyleManagerSetStyleConstant(void); +extern int UtcDaliStyleManagerGetStyleConstant(void); +extern int UtcDaliStyleManagerApplyStyle(void); + +//FlexContainer +extern int UtcDaliFlexContainerConstructorP(void); +extern int UtcDaliFlexContainerCopyConstructorP(void); +extern int UtcDaliFlexContainerCopyConstructorP2(void); +extern int UtcDaliFlexContainerAlignmentP(void); +extern int UtcDaliFlexContainerChildPropertyP(void); +extern int UtcDaliFlexContainerContentDirectionP(void); +extern int UtcDaliFlexContainerDownCastP(void); +extern int UtcDaliFlexContainerDownCastN(void); +extern int UtcDaliFlexContainerFlexDirectionP(void); +extern int UtcDaliFlexContainerJustificationP(void); +extern int UtcDaliFlexContainerNewP(void); +extern int UtcDaliFlexContainerOperatorAssignmentP(void); +extern int UtcDaliFlexContainerPropertyP(void); +extern int UtcDaliFlexContainerPropertyRangeP(void); +extern int UtcDaliFlexContainerWrapTypeP(void); + +//DefaultItemLayout +extern int UtcDaliDefaultItemLayoutNewP(void); + testcase tc_array[] = { {"UtcDaliModel3dViewConstructorP", UtcDaliModel3dViewConstructorP, utc_Dali_Model3dView_startup, utc_Dali_Model3dView_cleanup}, {"UtcDaliModel3dViewNewP", UtcDaliModel3dViewNewP, utc_Dali_Model3dView_startup, utc_Dali_Model3dView_cleanup}, @@ -597,7 +695,8 @@ testcase tc_array[] = { {"UtcDaliPageTurnViewDowncastP", UtcDaliPageTurnViewDowncastP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPageTurnViewDowncastN", UtcDaliPageTurnViewDowncastN, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPageTurnViewSignalsP", UtcDaliPageTurnViewSignalsP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, - + {"UtcDaliPageTurnViewGetNumberOfPagesP", UtcDaliPageTurnViewGetNumberOfPagesP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, + {"UtcDaliPageTurnViewNewPageN", UtcDaliPageTurnViewNewPageN, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPushButtonConstructorP", UtcDaliPushButtonConstructorP, utc_Dali_PushButton_startup, utc_Dali_PushButton_cleanup}, {"UtcDaliPushButtonCopyConstructorP", UtcDaliPushButtonCopyConstructorP, utc_Dali_PushButton_startup, utc_Dali_PushButton_cleanup}, @@ -974,6 +1073,82 @@ testcase tc_array[] = { {"UtcDaliRulerSnapAndClampWithClampStateP", UtcDaliRulerSnapAndClampWithClampStateP, utc_Dali_Ruler_startup, utc_Dali_Ruler_cleanup}, {"UtcDaliRulerSnapAndClampP", UtcDaliRulerSnapAndClampP, utc_Dali_Ruler_startup, utc_Dali_Ruler_cleanup}, + {"UtcDaliControlImplNewP", UtcDaliControlImplNewP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplEnableGestureDetectorP", UtcDaliControlImplEnableGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplDisableGestureDetectorP", UtcDaliControlImplDisableGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetPinchGestureDetectorP", UtcDaliControlImplGetPinchGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetPanGestureDetectorP", UtcDaliControlImplGetPanGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetTapGestureDetectorP", UtcDaliControlImplGetTapGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetLongPressGestureDetectorP", UtcDaliControlImplGetLongPressGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplClearBackgroundP", UtcDaliControlImplClearBackgroundP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplClearKeyInputFocusP", UtcDaliControlImplClearKeyInputFocusP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetAndHasKeyInputFocusP", UtcDaliControlImplSetAndHasKeyInputFocusP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyInputFocusGainedSignalP", UtcDaliControlImplKeyInputFocusGainedSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyInputFocusLostSignalP", UtcDaliControlImplKeyInputFocusLostSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyEventSignalP", UtcDaliControlImplKeyEventSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetGetBackgroundImageColorP", UtcDaliControlImplSetGetBackgroundImageColorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetGetStyleNameP", UtcDaliControlImplSetGetStyleNameP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetControlExtensionP", UtcDaliControlImplGetControlExtensionP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetNextKeyboardFocusableActorP", UtcDaliControlImplGetNextKeyboardFocusableActorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityActivatedP", UtcDaliControlImplOnAccessibilityActivatedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityTouchP", UtcDaliControlImplOnAccessibilityTouchP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityPanP", UtcDaliControlImplOnAccessibilityPanP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnStyleChangeN", UtcDaliControlImplOnStyleChangeN, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDalilControlImplOnKeyInputFocusLostP", UtcDalilControlImplOnKeyInputFocusLostP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnKeyInputFocusGainedP", UtcDaliControlImplOnKeyInputFocusGainedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSignalConnectedP", UtcDaliControlImplSignalConnectedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSignalDisconnectedP", UtcDaliControlImplSignalDisconnectedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnInitializeP", UtcDaliControlImplOnInitializeP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnPinchP", UtcDaliControlImplOnPinchP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnPanP", UtcDaliControlImplOnPanP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnTapP", UtcDaliControlImplOnTapP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnLongPressP", UtcDaliControlImplOnLongPressP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnAccessibilityValueChangeP", UtcDaliControlImpOnAccessibilityValueChangeP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpIsKeyboardNavigationSupportedP", UtcDaliControlImpIsKeyboardNavigationSupportedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpIsKeyboardFocusGroupP", UtcDaliControlImpIsKeyboardFocusGroupP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnAccessibilityZoomP", UtcDaliControlImpOnAccessibilityZoomP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpKeyboardEnterP", UtcDaliControlImpKeyboardEnterP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnControlChildAddP", UtcDaliControlImpOnControlChildAddP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnControlChildRemoveP", UtcDaliControlImpOnControlChildRemoveP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnKeyboardEnterP", UtcDaliControlImpOnKeyboardEnterP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnKeyboardFocusChangeCommittedP", UtcDaliControlImpOnKeyboardFocusChangeCommittedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetAsKeyboardFocusGroupP", UtcDaliControlImpSetAsKeyboardFocusGroupP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetKeyboardNavigationSupportP", UtcDaliControlImpSetKeyboardNavigationSupportP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetBackgroundP", UtcDaliControlImpSetBackgroundP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + + {"UtcDaliItemRangeConstructorP", UtcDaliItemRangeConstructorP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeOperatorAssignmentP", UtcDaliItemRangeOperatorAssignmentP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeCopyConstructorP", UtcDaliItemRangeCopyConstructorP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeWithinP", UtcDaliItemRangeWithinP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeIntersectionP", UtcDaliItemRangeIntersectionP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + + {"UtcDaliStyleManagerConstructor", UtcDaliStyleManagerConstructor, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerCopyConstructor", UtcDaliStyleManagerCopyConstructor, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerGet", UtcDaliStyleManagerGet, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyTheme", UtcDaliStyleManagerApplyTheme, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyDefaultTheme", UtcDaliStyleManagerApplyDefaultTheme, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerSetStyleConstant", UtcDaliStyleManagerSetStyleConstant, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerGetStyleConstant", UtcDaliStyleManagerGetStyleConstant, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyStyle", UtcDaliStyleManagerApplyStyle, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + + {"UtcDaliFlexContainerConstructorP", UtcDaliFlexContainerConstructorP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerCopyConstructorP", UtcDaliFlexContainerCopyConstructorP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerCopyConstructorP2", UtcDaliFlexContainerCopyConstructorP2, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerAlignmentP", UtcDaliFlexContainerAlignmentP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerChildPropertyP", UtcDaliFlexContainerChildPropertyP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerContentDirectionP", UtcDaliFlexContainerContentDirectionP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerDownCastP", UtcDaliFlexContainerDownCastP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerDownCastN", UtcDaliFlexContainerDownCastN, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerFlexDirectionP", UtcDaliFlexContainerFlexDirectionP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerJustificationP", UtcDaliFlexContainerJustificationP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerNewP", UtcDaliFlexContainerNewP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerOperatorAssignmentP", UtcDaliFlexContainerOperatorAssignmentP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerPropertyP", UtcDaliFlexContainerPropertyP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerPropertyRangeP", UtcDaliFlexContainerPropertyRangeP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerWrapTypeP", UtcDaliFlexContainerWrapTypeP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + + {"UtcDaliDefaultItemLayoutNewP", UtcDaliDefaultItemLayoutNewP, utc_Dali_DefaultItemLayout_startup, utc_Dali_DefaultItemLayout_cleanup}, + {NULL, NULL} }; diff --git a/src/utc/dali-toolkit/tct-dali-toolkit-core_tv.h b/src/utc/dali-toolkit/tct-dali-toolkit-core_tv.h index eef17c2..4573036 100755 --- a/src/utc/dali-toolkit/tct-dali-toolkit-core_tv.h +++ b/src/utc/dali-toolkit/tct-dali-toolkit-core_tv.h @@ -106,6 +106,21 @@ extern void utc_Dali_FixedRuler_cleanup(void); //29Ruler extern void utc_Dali_Ruler_startup(void); extern void utc_Dali_Ruler_cleanup(void); +//30ControlImpl +extern void utc_Dali_ControlImpl_startup(void); +extern void utc_Dali_ControlImpl_cleanup(void); +//31ItemRange +extern void utc_Dali_ItemRange_startup(void); +extern void utc_Dali_ItemRange_cleanup(void); +//32StyleManager +extern void utc_Dali_StyleManager_startup(void); +extern void utc_Dali_StyleManager_cleanup(void); +//33FlexContainer +extern void utc_Dali_FlexContainer_startup(void); +extern void utc_Dali_FlexContainer_cleanup(void); +//34DefaultItemLayout +extern void utc_Dali_DefaultItemLayout_startup(void); +extern void utc_Dali_DefaultItemLayout_cleanup(void); //ModelView extern int UtcDaliModel3dViewConstructorP(void); @@ -177,6 +192,8 @@ extern int UtcDaliPageTurnViewOperatorAssignmentP(void); extern int UtcDaliPageTurnViewDowncastP(void); extern int UtcDaliPageTurnViewDowncastN(void); extern int UtcDaliPageTurnViewSignalsP(void); +extern int UtcDaliPageTurnViewGetNumberOfPagesP(void); +extern int UtcDaliPageTurnViewNewPageP(void); //KeyboardFocusManager extern int UtcDaliKeyboardFocusManagerConstructorP(void); @@ -554,6 +571,87 @@ extern int UtcDaliRulerClampP(void); extern int UtcDaliRulerSnapAndClampWithClampStateP(void); extern int UtcDaliRulerSnapAndClampP(void); +//ControlImpl +extern int UtcDaliControlImplNewP(void); +extern int UtcDaliControlImplEnableGestureDetectorP(void); +extern int UtcDaliControlImplDisableGestureDetectorP(void); +extern int UtcDaliControlImplGetPinchGestureDetectorP(void); +extern int UtcDaliControlImplGetPanGestureDetectorP(void); +extern int UtcDaliControlImplGetTapGestureDetectorP(void); +extern int UtcDaliControlImplGetLongPressGestureDetectorP(void); +extern int UtcDaliControlImplClearBackgroundP(void); +extern int UtcDaliControlImplClearKeyInputFocusP(void); +extern int UtcDaliControlImplSetAndHasKeyInputFocusP(void); +extern int UtcDaliControlImplKeyInputFocusGainedSignalP(void); +extern int UtcDaliControlImplKeyInputFocusLostSignalP(void); +extern int UtcDaliControlImplKeyEventSignalP(void); +extern int UtcDaliControlImplSetGetBackgroundImageColorP(void); +extern int UtcDaliControlImplSetGetStyleNameP(void); +extern int UtcDaliControlImplGetControlExtensionP(void); +extern int UtcDaliControlImplGetNextKeyboardFocusableActorP(void); +extern int UtcDaliControlImplOnAccessibilityActivatedP(void); +extern int UtcDaliControlImplOnAccessibilityTouchP(void); +extern int UtcDaliControlImplOnAccessibilityPanP(void); +extern int UtcDaliControlImplOnStyleChangeN(void); +extern int UtcDalilControlImplOnKeyInputFocusLostP(void); +extern int UtcDaliControlImplOnKeyInputFocusGainedP(void); +extern int UtcDaliControlImplSignalConnectedP(void); +extern int UtcDaliControlImplSignalDisconnectedP(void); +extern int UtcDaliControlImplOnInitializeP(void); +extern int UtcDaliControlImplOnPinchP(void); +extern int UtcDaliControlImplOnPanP(void); +extern int UtcDaliControlImplOnTapP(void); +extern int UtcDaliControlImplOnLongPressP(void); +extern int UtcDaliControlImpOnAccessibilityValueChangeP(void); +extern int UtcDaliControlImpIsKeyboardNavigationSupportedP(void); +extern int UtcDaliControlImpIsKeyboardFocusGroupP(void); +extern int UtcDaliControlImpOnAccessibilityZoomP(void); +extern int UtcDaliControlImpKeyboardEnterP(void); +extern int UtcDaliControlImpOnControlChildAddP(void); +extern int UtcDaliControlImpOnControlChildRemoveP(void); +extern int UtcDaliControlImpOnKeyboardEnterP(void); +extern int UtcDaliControlImpOnKeyboardFocusChangeCommittedP(void); +extern int UtcDaliControlImpSetAsKeyboardFocusGroupP(void); +extern int UtcDaliControlImpSetKeyboardNavigationSupportP(void); +extern int UtcDaliControlImpSetBackgroundP(void); + +//ItemRange +extern int UtcDaliItemRangeConstructorP(void); +extern int UtcDaliItemRangeOperatorAssignmentP(void); +extern int UtcDaliItemRangeCopyConstructorP(void); +extern int UtcDaliItemRangeWithinP(void); +extern int UtcDaliItemRangeIntersectionP(void); + +//StyleManager +extern int UtcDaliStyleManagerConstructor(void); +extern int UtcDaliStyleManagerCopyConstructor(void); +extern int UtcDaliStyleManagerGet(void); +extern int UtcDaliStyleManagerApplyTheme(void); +extern int UtcDaliStyleManagerApplyDefaultTheme(void); +extern int UtcDaliStyleManagerSetStyleConstant(void); +extern int UtcDaliStyleManagerGetStyleConstant(void); +extern int UtcDaliStyleManagerApplyStyle(void); + +//FlexContainer +extern int UtcDaliFlexContainerConstructorP(void); +extern int UtcDaliFlexContainerCopyConstructorP(void); +extern int UtcDaliFlexContainerCopyConstructorP2(void); +extern int UtcDaliFlexContainerAlignmentP(void); +extern int UtcDaliFlexContainerChildPropertyP(void); +extern int UtcDaliFlexContainerContentDirectionP(void); +extern int UtcDaliFlexContainerDownCastP(void); +extern int UtcDaliFlexContainerDownCastN(void); +extern int UtcDaliFlexContainerFlexDirectionP(void); +extern int UtcDaliFlexContainerJustificationP(void); +extern int UtcDaliFlexContainerNewP(void); +extern int UtcDaliFlexContainerOperatorAssignmentP(void); +extern int UtcDaliFlexContainerPropertyP(void); +extern int UtcDaliFlexContainerPropertyRangeP(void); +extern int UtcDaliFlexContainerWrapTypeP(void); + +//DefaultItemLayout +extern int UtcDaliDefaultItemLayoutNewP(void); + testcase tc_array[] = { {"UtcDaliModel3dViewConstructorP", UtcDaliModel3dViewConstructorP, utc_Dali_Model3dView_startup, utc_Dali_Model3dView_cleanup}, {"UtcDaliModel3dViewNewP", UtcDaliModel3dViewNewP, utc_Dali_Model3dView_startup, utc_Dali_Model3dView_cleanup}, @@ -597,7 +695,8 @@ testcase tc_array[] = { {"UtcDaliPageTurnViewDowncastP", UtcDaliPageTurnViewDowncastP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPageTurnViewDowncastN", UtcDaliPageTurnViewDowncastN, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPageTurnViewSignalsP", UtcDaliPageTurnViewSignalsP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, - + {"UtcDaliPageTurnViewGetNumberOfPagesP", UtcDaliPageTurnViewGetNumberOfPagesP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, + {"UtcDaliPageTurnViewNewPageP", UtcDaliPageTurnViewNewPageP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPushButtonConstructorP", UtcDaliPushButtonConstructorP, utc_Dali_PushButton_startup, utc_Dali_PushButton_cleanup}, {"UtcDaliPushButtonCopyConstructorP", UtcDaliPushButtonCopyConstructorP, utc_Dali_PushButton_startup, utc_Dali_PushButton_cleanup}, @@ -974,6 +1073,82 @@ testcase tc_array[] = { {"UtcDaliRulerSnapAndClampWithClampStateP", UtcDaliRulerSnapAndClampWithClampStateP, utc_Dali_Ruler_startup, utc_Dali_Ruler_cleanup}, {"UtcDaliRulerSnapAndClampP", UtcDaliRulerSnapAndClampP, utc_Dali_Ruler_startup, utc_Dali_Ruler_cleanup}, + {"UtcDaliControlImplNewP", UtcDaliControlImplNewP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplEnableGestureDetectorP", UtcDaliControlImplEnableGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplDisableGestureDetectorP", UtcDaliControlImplDisableGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetPinchGestureDetectorP", UtcDaliControlImplGetPinchGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetPanGestureDetectorP", UtcDaliControlImplGetPanGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetTapGestureDetectorP", UtcDaliControlImplGetTapGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetLongPressGestureDetectorP", UtcDaliControlImplGetLongPressGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplClearBackgroundP", UtcDaliControlImplClearBackgroundP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplClearKeyInputFocusP", UtcDaliControlImplClearKeyInputFocusP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetAndHasKeyInputFocusP", UtcDaliControlImplSetAndHasKeyInputFocusP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyInputFocusGainedSignalP", UtcDaliControlImplKeyInputFocusGainedSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyInputFocusLostSignalP", UtcDaliControlImplKeyInputFocusLostSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyEventSignalP", UtcDaliControlImplKeyEventSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetGetBackgroundImageColorP", UtcDaliControlImplSetGetBackgroundImageColorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetGetStyleNameP", UtcDaliControlImplSetGetStyleNameP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetControlExtensionP", UtcDaliControlImplGetControlExtensionP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetNextKeyboardFocusableActorP", UtcDaliControlImplGetNextKeyboardFocusableActorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityActivatedP", UtcDaliControlImplOnAccessibilityActivatedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityTouchP", UtcDaliControlImplOnAccessibilityTouchP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityPanP", UtcDaliControlImplOnAccessibilityPanP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnStyleChangeN", UtcDaliControlImplOnStyleChangeN, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDalilControlImplOnKeyInputFocusLostP", UtcDalilControlImplOnKeyInputFocusLostP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnKeyInputFocusGainedP", UtcDaliControlImplOnKeyInputFocusGainedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSignalConnectedP", UtcDaliControlImplSignalConnectedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSignalDisconnectedP", UtcDaliControlImplSignalDisconnectedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnInitializeP", UtcDaliControlImplOnInitializeP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnPinchP", UtcDaliControlImplOnPinchP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnPanP", UtcDaliControlImplOnPanP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnTapP", UtcDaliControlImplOnTapP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnLongPressP", UtcDaliControlImplOnLongPressP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnAccessibilityValueChangeP", UtcDaliControlImpOnAccessibilityValueChangeP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpIsKeyboardNavigationSupportedP", UtcDaliControlImpIsKeyboardNavigationSupportedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpIsKeyboardFocusGroupP", UtcDaliControlImpIsKeyboardFocusGroupP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnAccessibilityZoomP", UtcDaliControlImpOnAccessibilityZoomP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpKeyboardEnterP", UtcDaliControlImpKeyboardEnterP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnControlChildAddP", UtcDaliControlImpOnControlChildAddP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnControlChildRemoveP", UtcDaliControlImpOnControlChildRemoveP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnKeyboardEnterP", UtcDaliControlImpOnKeyboardEnterP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnKeyboardFocusChangeCommittedP", UtcDaliControlImpOnKeyboardFocusChangeCommittedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetAsKeyboardFocusGroupP", UtcDaliControlImpSetAsKeyboardFocusGroupP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetKeyboardNavigationSupportP", UtcDaliControlImpSetKeyboardNavigationSupportP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetBackgroundP", UtcDaliControlImpSetBackgroundP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + + {"UtcDaliItemRangeConstructorP", UtcDaliItemRangeConstructorP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeOperatorAssignmentP", UtcDaliItemRangeOperatorAssignmentP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeCopyConstructorP", UtcDaliItemRangeCopyConstructorP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeWithinP", UtcDaliItemRangeWithinP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeIntersectionP", UtcDaliItemRangeIntersectionP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + + {"UtcDaliStyleManagerConstructor", UtcDaliStyleManagerConstructor, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerCopyConstructor", UtcDaliStyleManagerCopyConstructor, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerGet", UtcDaliStyleManagerGet, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyTheme", UtcDaliStyleManagerApplyTheme, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyDefaultTheme", UtcDaliStyleManagerApplyDefaultTheme, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerSetStyleConstant", UtcDaliStyleManagerSetStyleConstant, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerGetStyleConstant", UtcDaliStyleManagerGetStyleConstant, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyStyle", UtcDaliStyleManagerApplyStyle, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + + {"UtcDaliFlexContainerConstructorP", UtcDaliFlexContainerConstructorP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerCopyConstructorP", UtcDaliFlexContainerCopyConstructorP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerCopyConstructorP2", UtcDaliFlexContainerCopyConstructorP2, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerAlignmentP", UtcDaliFlexContainerAlignmentP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerChildPropertyP", UtcDaliFlexContainerChildPropertyP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerContentDirectionP", UtcDaliFlexContainerContentDirectionP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerDownCastP", UtcDaliFlexContainerDownCastP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerDownCastN", UtcDaliFlexContainerDownCastN, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerFlexDirectionP", UtcDaliFlexContainerFlexDirectionP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerJustificationP", UtcDaliFlexContainerJustificationP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerNewP", UtcDaliFlexContainerNewP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerOperatorAssignmentP", UtcDaliFlexContainerOperatorAssignmentP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerPropertyP", UtcDaliFlexContainerPropertyP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerPropertyRangeP", UtcDaliFlexContainerPropertyRangeP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerWrapTypeP", UtcDaliFlexContainerWrapTypeP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + + {"UtcDaliDefaultItemLayoutNewP", UtcDaliDefaultItemLayoutNewP, utc_Dali_DefaultItemLayout_startup, utc_Dali_DefaultItemLayout_cleanup}, + {NULL, NULL} }; diff --git a/src/utc/dali-toolkit/tct-dali-toolkit-core_wearable.h b/src/utc/dali-toolkit/tct-dali-toolkit-core_wearable.h index eef17c2..4573036 100755 --- a/src/utc/dali-toolkit/tct-dali-toolkit-core_wearable.h +++ b/src/utc/dali-toolkit/tct-dali-toolkit-core_wearable.h @@ -106,6 +106,21 @@ extern void utc_Dali_FixedRuler_cleanup(void); //29Ruler extern void utc_Dali_Ruler_startup(void); extern void utc_Dali_Ruler_cleanup(void); +//30ControlImpl +extern void utc_Dali_ControlImpl_startup(void); +extern void utc_Dali_ControlImpl_cleanup(void); +//31ItemRange +extern void utc_Dali_ItemRange_startup(void); +extern void utc_Dali_ItemRange_cleanup(void); +//32StyleManager +extern void utc_Dali_StyleManager_startup(void); +extern void utc_Dali_StyleManager_cleanup(void); +//33FlexContainer +extern void utc_Dali_FlexContainer_startup(void); +extern void utc_Dali_FlexContainer_cleanup(void); +//34DefaultItemLayout +extern void utc_Dali_DefaultItemLayout_startup(void); +extern void utc_Dali_DefaultItemLayout_cleanup(void); //ModelView extern int UtcDaliModel3dViewConstructorP(void); @@ -177,6 +192,8 @@ extern int UtcDaliPageTurnViewOperatorAssignmentP(void); extern int UtcDaliPageTurnViewDowncastP(void); extern int UtcDaliPageTurnViewDowncastN(void); extern int UtcDaliPageTurnViewSignalsP(void); +extern int UtcDaliPageTurnViewGetNumberOfPagesP(void); +extern int UtcDaliPageTurnViewNewPageP(void); //KeyboardFocusManager extern int UtcDaliKeyboardFocusManagerConstructorP(void); @@ -554,6 +571,87 @@ extern int UtcDaliRulerClampP(void); extern int UtcDaliRulerSnapAndClampWithClampStateP(void); extern int UtcDaliRulerSnapAndClampP(void); +//ControlImpl +extern int UtcDaliControlImplNewP(void); +extern int UtcDaliControlImplEnableGestureDetectorP(void); +extern int UtcDaliControlImplDisableGestureDetectorP(void); +extern int UtcDaliControlImplGetPinchGestureDetectorP(void); +extern int UtcDaliControlImplGetPanGestureDetectorP(void); +extern int UtcDaliControlImplGetTapGestureDetectorP(void); +extern int UtcDaliControlImplGetLongPressGestureDetectorP(void); +extern int UtcDaliControlImplClearBackgroundP(void); +extern int UtcDaliControlImplClearKeyInputFocusP(void); +extern int UtcDaliControlImplSetAndHasKeyInputFocusP(void); +extern int UtcDaliControlImplKeyInputFocusGainedSignalP(void); +extern int UtcDaliControlImplKeyInputFocusLostSignalP(void); +extern int UtcDaliControlImplKeyEventSignalP(void); +extern int UtcDaliControlImplSetGetBackgroundImageColorP(void); +extern int UtcDaliControlImplSetGetStyleNameP(void); +extern int UtcDaliControlImplGetControlExtensionP(void); +extern int UtcDaliControlImplGetNextKeyboardFocusableActorP(void); +extern int UtcDaliControlImplOnAccessibilityActivatedP(void); +extern int UtcDaliControlImplOnAccessibilityTouchP(void); +extern int UtcDaliControlImplOnAccessibilityPanP(void); +extern int UtcDaliControlImplOnStyleChangeN(void); +extern int UtcDalilControlImplOnKeyInputFocusLostP(void); +extern int UtcDaliControlImplOnKeyInputFocusGainedP(void); +extern int UtcDaliControlImplSignalConnectedP(void); +extern int UtcDaliControlImplSignalDisconnectedP(void); +extern int UtcDaliControlImplOnInitializeP(void); +extern int UtcDaliControlImplOnPinchP(void); +extern int UtcDaliControlImplOnPanP(void); +extern int UtcDaliControlImplOnTapP(void); +extern int UtcDaliControlImplOnLongPressP(void); +extern int UtcDaliControlImpOnAccessibilityValueChangeP(void); +extern int UtcDaliControlImpIsKeyboardNavigationSupportedP(void); +extern int UtcDaliControlImpIsKeyboardFocusGroupP(void); +extern int UtcDaliControlImpOnAccessibilityZoomP(void); +extern int UtcDaliControlImpKeyboardEnterP(void); +extern int UtcDaliControlImpOnControlChildAddP(void); +extern int UtcDaliControlImpOnControlChildRemoveP(void); +extern int UtcDaliControlImpOnKeyboardEnterP(void); +extern int UtcDaliControlImpOnKeyboardFocusChangeCommittedP(void); +extern int UtcDaliControlImpSetAsKeyboardFocusGroupP(void); +extern int UtcDaliControlImpSetKeyboardNavigationSupportP(void); +extern int UtcDaliControlImpSetBackgroundP(void); + +//ItemRange +extern int UtcDaliItemRangeConstructorP(void); +extern int UtcDaliItemRangeOperatorAssignmentP(void); +extern int UtcDaliItemRangeCopyConstructorP(void); +extern int UtcDaliItemRangeWithinP(void); +extern int UtcDaliItemRangeIntersectionP(void); + +//StyleManager +extern int UtcDaliStyleManagerConstructor(void); +extern int UtcDaliStyleManagerCopyConstructor(void); +extern int UtcDaliStyleManagerGet(void); +extern int UtcDaliStyleManagerApplyTheme(void); +extern int UtcDaliStyleManagerApplyDefaultTheme(void); +extern int UtcDaliStyleManagerSetStyleConstant(void); +extern int UtcDaliStyleManagerGetStyleConstant(void); +extern int UtcDaliStyleManagerApplyStyle(void); + +//FlexContainer +extern int UtcDaliFlexContainerConstructorP(void); +extern int UtcDaliFlexContainerCopyConstructorP(void); +extern int UtcDaliFlexContainerCopyConstructorP2(void); +extern int UtcDaliFlexContainerAlignmentP(void); +extern int UtcDaliFlexContainerChildPropertyP(void); +extern int UtcDaliFlexContainerContentDirectionP(void); +extern int UtcDaliFlexContainerDownCastP(void); +extern int UtcDaliFlexContainerDownCastN(void); +extern int UtcDaliFlexContainerFlexDirectionP(void); +extern int UtcDaliFlexContainerJustificationP(void); +extern int UtcDaliFlexContainerNewP(void); +extern int UtcDaliFlexContainerOperatorAssignmentP(void); +extern int UtcDaliFlexContainerPropertyP(void); +extern int UtcDaliFlexContainerPropertyRangeP(void); +extern int UtcDaliFlexContainerWrapTypeP(void); + +//DefaultItemLayout +extern int UtcDaliDefaultItemLayoutNewP(void); + testcase tc_array[] = { {"UtcDaliModel3dViewConstructorP", UtcDaliModel3dViewConstructorP, utc_Dali_Model3dView_startup, utc_Dali_Model3dView_cleanup}, {"UtcDaliModel3dViewNewP", UtcDaliModel3dViewNewP, utc_Dali_Model3dView_startup, utc_Dali_Model3dView_cleanup}, @@ -597,7 +695,8 @@ testcase tc_array[] = { {"UtcDaliPageTurnViewDowncastP", UtcDaliPageTurnViewDowncastP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPageTurnViewDowncastN", UtcDaliPageTurnViewDowncastN, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPageTurnViewSignalsP", UtcDaliPageTurnViewSignalsP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, - + {"UtcDaliPageTurnViewGetNumberOfPagesP", UtcDaliPageTurnViewGetNumberOfPagesP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, + {"UtcDaliPageTurnViewNewPageP", UtcDaliPageTurnViewNewPageP, utc_Dali_PageTurnView_startup, utc_Dali_PageTurnView_cleanup}, {"UtcDaliPushButtonConstructorP", UtcDaliPushButtonConstructorP, utc_Dali_PushButton_startup, utc_Dali_PushButton_cleanup}, {"UtcDaliPushButtonCopyConstructorP", UtcDaliPushButtonCopyConstructorP, utc_Dali_PushButton_startup, utc_Dali_PushButton_cleanup}, @@ -974,6 +1073,82 @@ testcase tc_array[] = { {"UtcDaliRulerSnapAndClampWithClampStateP", UtcDaliRulerSnapAndClampWithClampStateP, utc_Dali_Ruler_startup, utc_Dali_Ruler_cleanup}, {"UtcDaliRulerSnapAndClampP", UtcDaliRulerSnapAndClampP, utc_Dali_Ruler_startup, utc_Dali_Ruler_cleanup}, + {"UtcDaliControlImplNewP", UtcDaliControlImplNewP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplEnableGestureDetectorP", UtcDaliControlImplEnableGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplDisableGestureDetectorP", UtcDaliControlImplDisableGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetPinchGestureDetectorP", UtcDaliControlImplGetPinchGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetPanGestureDetectorP", UtcDaliControlImplGetPanGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetTapGestureDetectorP", UtcDaliControlImplGetTapGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetLongPressGestureDetectorP", UtcDaliControlImplGetLongPressGestureDetectorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplClearBackgroundP", UtcDaliControlImplClearBackgroundP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplClearKeyInputFocusP", UtcDaliControlImplClearKeyInputFocusP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetAndHasKeyInputFocusP", UtcDaliControlImplSetAndHasKeyInputFocusP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyInputFocusGainedSignalP", UtcDaliControlImplKeyInputFocusGainedSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyInputFocusLostSignalP", UtcDaliControlImplKeyInputFocusLostSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplKeyEventSignalP", UtcDaliControlImplKeyEventSignalP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetGetBackgroundImageColorP", UtcDaliControlImplSetGetBackgroundImageColorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSetGetStyleNameP", UtcDaliControlImplSetGetStyleNameP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetControlExtensionP", UtcDaliControlImplGetControlExtensionP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplGetNextKeyboardFocusableActorP", UtcDaliControlImplGetNextKeyboardFocusableActorP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityActivatedP", UtcDaliControlImplOnAccessibilityActivatedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityTouchP", UtcDaliControlImplOnAccessibilityTouchP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnAccessibilityPanP", UtcDaliControlImplOnAccessibilityPanP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnStyleChangeN", UtcDaliControlImplOnStyleChangeN, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDalilControlImplOnKeyInputFocusLostP", UtcDalilControlImplOnKeyInputFocusLostP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnKeyInputFocusGainedP", UtcDaliControlImplOnKeyInputFocusGainedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSignalConnectedP", UtcDaliControlImplSignalConnectedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplSignalDisconnectedP", UtcDaliControlImplSignalDisconnectedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnInitializeP", UtcDaliControlImplOnInitializeP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnPinchP", UtcDaliControlImplOnPinchP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnPanP", UtcDaliControlImplOnPanP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnTapP", UtcDaliControlImplOnTapP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImplOnLongPressP", UtcDaliControlImplOnLongPressP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnAccessibilityValueChangeP", UtcDaliControlImpOnAccessibilityValueChangeP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpIsKeyboardNavigationSupportedP", UtcDaliControlImpIsKeyboardNavigationSupportedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpIsKeyboardFocusGroupP", UtcDaliControlImpIsKeyboardFocusGroupP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnAccessibilityZoomP", UtcDaliControlImpOnAccessibilityZoomP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpKeyboardEnterP", UtcDaliControlImpKeyboardEnterP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnControlChildAddP", UtcDaliControlImpOnControlChildAddP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnControlChildRemoveP", UtcDaliControlImpOnControlChildRemoveP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnKeyboardEnterP", UtcDaliControlImpOnKeyboardEnterP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpOnKeyboardFocusChangeCommittedP", UtcDaliControlImpOnKeyboardFocusChangeCommittedP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetAsKeyboardFocusGroupP", UtcDaliControlImpSetAsKeyboardFocusGroupP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetKeyboardNavigationSupportP", UtcDaliControlImpSetKeyboardNavigationSupportP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + {"UtcDaliControlImpSetBackgroundP", UtcDaliControlImpSetBackgroundP, utc_Dali_ControlImpl_startup, utc_Dali_ControlImpl_cleanup}, + + {"UtcDaliItemRangeConstructorP", UtcDaliItemRangeConstructorP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeOperatorAssignmentP", UtcDaliItemRangeOperatorAssignmentP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeCopyConstructorP", UtcDaliItemRangeCopyConstructorP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeWithinP", UtcDaliItemRangeWithinP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + {"UtcDaliItemRangeIntersectionP", UtcDaliItemRangeIntersectionP, utc_Dali_ItemRange_startup, utc_Dali_ItemRange_cleanup}, + + {"UtcDaliStyleManagerConstructor", UtcDaliStyleManagerConstructor, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerCopyConstructor", UtcDaliStyleManagerCopyConstructor, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerGet", UtcDaliStyleManagerGet, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyTheme", UtcDaliStyleManagerApplyTheme, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyDefaultTheme", UtcDaliStyleManagerApplyDefaultTheme, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerSetStyleConstant", UtcDaliStyleManagerSetStyleConstant, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerGetStyleConstant", UtcDaliStyleManagerGetStyleConstant, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + {"UtcDaliStyleManagerApplyStyle", UtcDaliStyleManagerApplyStyle, utc_Dali_StyleManager_startup, utc_Dali_StyleManager_cleanup}, + + {"UtcDaliFlexContainerConstructorP", UtcDaliFlexContainerConstructorP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerCopyConstructorP", UtcDaliFlexContainerCopyConstructorP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerCopyConstructorP2", UtcDaliFlexContainerCopyConstructorP2, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerAlignmentP", UtcDaliFlexContainerAlignmentP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerChildPropertyP", UtcDaliFlexContainerChildPropertyP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerContentDirectionP", UtcDaliFlexContainerContentDirectionP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerDownCastP", UtcDaliFlexContainerDownCastP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerDownCastN", UtcDaliFlexContainerDownCastN, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerFlexDirectionP", UtcDaliFlexContainerFlexDirectionP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerJustificationP", UtcDaliFlexContainerJustificationP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerNewP", UtcDaliFlexContainerNewP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerOperatorAssignmentP", UtcDaliFlexContainerOperatorAssignmentP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerPropertyP", UtcDaliFlexContainerPropertyP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerPropertyRangeP", UtcDaliFlexContainerPropertyRangeP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + {"UtcDaliFlexContainerWrapTypeP", UtcDaliFlexContainerWrapTypeP, utc_Dali_FlexContainer_startup, utc_Dali_FlexContainer_cleanup}, + + {"UtcDaliDefaultItemLayoutNewP", UtcDaliDefaultItemLayoutNewP, utc_Dali_DefaultItemLayout_startup, utc_Dali_DefaultItemLayout_cleanup}, + {NULL, NULL} };