Removed On(...)Event()
[platform/core/uifw/dali-core.git] / automated-tests / src / dali / dali-test-suite-utils / test-custom-actor.cpp
index d300568..acfcd05 100644 (file)
@@ -27,7 +27,7 @@ TestCustomActor TestCustomActor::NewNegoSize()
 {
   Impl::TestCustomActor* impl = new Impl::TestCustomActor( true );
   TestCustomActor custom( *impl ); // takes ownership
-  custom.SetName( "SizeNegotiationActor" );
+  custom.SetProperty( Dali::Actor::Property::NAME, "SizeNegotiationActor" );
 
   impl->Initialize();
 
@@ -74,9 +74,9 @@ TestCustomActor TestCustomActor::NewVariant4()
   return custom;
 }
 
-TestCustomActor TestCustomActor::NewVariant5()
+TestCustomActor TestCustomActor::NewVariant5(Integration::Scene scene)
 {
-  Impl::TestCustomActor* impl = new Impl::TestCustomActorVariant5();
+  Impl::TestCustomActor* impl = new Impl::TestCustomActorVariant5(scene);
   TestCustomActor custom( *impl ); // takes ownership
 
   impl->Initialize();
@@ -84,9 +84,9 @@ TestCustomActor TestCustomActor::NewVariant5()
   return custom;
 }
 
-TestCustomActor TestCustomActor::NewVariant6()
+TestCustomActor TestCustomActor::NewVariant6(Integration::Scene scene)
 {
-  Impl::TestCustomActor* impl = new Impl::TestCustomActorVariant6();
+  Impl::TestCustomActor* impl = new Impl::TestCustomActorVariant6(scene);
   TestCustomActor custom( *impl ); // takes ownership
 
   impl->Initialize();
@@ -240,7 +240,7 @@ namespace Impl
 {
 
 TestCustomActor::TestCustomActor()
-: CustomActorImpl( ActorFlags( REQUIRES_TOUCH_EVENTS | REQUIRES_WHEEL_EVENTS | REQUIRES_HOVER_EVENTS | DISABLE_SIZE_NEGOTIATION ) ),
+: CustomActorImpl( ActorFlags( DISABLE_SIZE_NEGOTIATION ) ),
   mDaliProperty( Property::INVALID_INDEX ),
   mSizeSet( Vector3::ZERO ),
   mTargetSize( Vector3::ZERO ),
@@ -251,7 +251,7 @@ TestCustomActor::TestCustomActor()
 }
 
 TestCustomActor::TestCustomActor(bool nego)
-: CustomActorImpl( ActorFlags( REQUIRES_TOUCH_EVENTS | REQUIRES_WHEEL_EVENTS | REQUIRES_HOVER_EVENTS ) ),
+: CustomActorImpl( ActorFlags() ),
   mDaliProperty( Property::INVALID_INDEX ),
   mSizeSet( Vector3::ZERO ),
   mTargetSize( Vector3::ZERO ),
@@ -290,7 +290,7 @@ void TestCustomActor::AddToCallStacks( const char* method )
   mMethodsCalled.push_back( method );
 
   // Combine Actor name with method string
-  std::string nameAndMethod( Self().GetName() );
+  std::string nameAndMethod( Self().GetProperty< std::string >( Dali::Actor::Property::NAME ) );
   if ( 0 == nameAndMethod.size() )
   {
     nameAndMethod = "Unknown: ";
@@ -305,14 +305,14 @@ void TestCustomActor::AddToCallStacks( const char* method )
 }
 
 // From CustomActorImpl
-void TestCustomActor::OnStageConnection( int depth )
+void TestCustomActor::OnSceneConnection( int depth )
 {
-  AddToCallStacks("OnStageConnection");
+  AddToCallStacks("OnSceneConnection");
   mDepth = depth;
 }
-void TestCustomActor::OnStageDisconnection()
+void TestCustomActor::OnSceneDisconnection()
 {
-  AddToCallStacks("OnStageDisconnection");
+  AddToCallStacks("OnSceneDisconnection");
 }
 void TestCustomActor::OnChildAdd(Actor& child)
 {
@@ -336,26 +336,6 @@ void TestCustomActor::OnSizeAnimation(Animation& animation, const Vector3& targe
   mTargetSize = targetSize;
   AddToCallStacks("OnSizeAnimation");
 }
-bool TestCustomActor::OnTouchEvent(const TouchEvent& event)
-{
-  AddToCallStacks("OnTouchEvent");
-  return true;
-}
-bool TestCustomActor::OnHoverEvent(const HoverEvent& event)
-{
-  AddToCallStacks("OnHoverEvent");
-  return true;
-}
-bool TestCustomActor::OnWheelEvent(const WheelEvent& event)
-{
-  AddToCallStacks("OnWheelEvent");
-  return true;
-}
-bool TestCustomActor::OnKeyEvent(const KeyEvent& event)
-{
-  AddToCallStacks("OnKeyEvent");
-  return true;
-}
 void TestCustomActor::OnKeyInputFocusGained()
 {
   AddToCallStacks("OnKeyInputFocusGained");