END_TEST;
}
///////////////////////////////////////////////////////////////////////////////
+
+///////////////////////////////////////////////////////////////////////////////
+namespace TestPropertyTypes
+{
+template< typename T >
+void Execute( T value )
+{
+ TestApplication application;
+ bool functorCalled = false;
+
+ Actor actor = Actor::New();
+ Property::Index index = actor.RegisterProperty( "TEMP_PROPERTY_NAME", value );
+
+ Stage::GetCurrent().Add( actor );
+
+ application.SendNotification();
+ application.Render();
+
+ DALI_TEST_EQUALS( functorCalled, false, TEST_LOCATION );
+
+ // Add a constraint
+ Constraint constraint = Constraint::New< T >( actor, index, BasicCalledFunctor< T >( functorCalled ) );
+ DALI_TEST_CHECK( constraint );
+ constraint.Apply();
+
+ application.SendNotification();
+ application.Render();
+
+ DALI_TEST_EQUALS( functorCalled, true, TEST_LOCATION );
+}
+} // namespace UtcDaliConstraintNewFunctor
+
+int UtcDaliConstraintTestPropertyTypesP(void)
+{
+ // Ensure we can use a constraint functor with all supported property types
+
+ TestPropertyTypes::Execute< bool >( false );
+ TestPropertyTypes::Execute< int >( 0 );
+ TestPropertyTypes::Execute< float >( 0.0f );
+ TestPropertyTypes::Execute< Vector2 >( Vector2::ZERO );
+ TestPropertyTypes::Execute< Vector3 >( Vector3::ZERO );
+ TestPropertyTypes::Execute< Vector4 >( Vector4::ZERO );
+ TestPropertyTypes::Execute< Quaternion >( Quaternion::IDENTITY );
+ TestPropertyTypes::Execute< Matrix >( Matrix::IDENTITY );
+ TestPropertyTypes::Execute< Matrix3 >( Matrix3::IDENTITY );
+
+ END_TEST;
+}
+
+int UtcDaliConstraintTestPropertyTypesN(void)
+{
+ // unsigned int not supported so we should assert
+
+ try
+ {
+ TestPropertyTypes::Execute< unsigned int >( 0u );
+ DALI_TEST_CHECK( false ); // Should not come here
+ }
+ catch( ... )
+ {
+ DALI_TEST_CHECK( true );
+ }
+
+
+ END_TEST;
+}
+///////////////////////////////////////////////////////////////////////////////
+
$(platform_abstraction_src_dir)/profiling.cpp \
$(platform_abstraction_src_dir)/input-options.cpp \
$(platform_abstraction_src_dir)/system-overlay.cpp \
- $(platform_abstraction_src_dir)/common/lockless-buffer.cpp \
+ $(platform_abstraction_src_dir)/lockless-buffer.cpp \
$(platform_abstraction_src_dir)/events/event.cpp \
$(platform_abstraction_src_dir)/events/gesture-event.cpp \
$(platform_abstraction_src_dir)/events/hover-event-integ.cpp \
$(platform_abstraction_src_dir)/platform-abstraction.h \
$(platform_abstraction_src_dir)/shader-data.h \
$(platform_abstraction_src_dir)/system-overlay.h \
- $(platform_abstraction_src_dir)/common/lockless-buffer.h
+ $(platform_abstraction_src_dir)/lockless-buffer.h
platform_abstraction_dynamics_header_files = \
$(platform_abstraction_src_dir)/dynamics/dynamics-body-intf.h \