2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
20 #include <dali/dali.h>
21 #include <dali/integration-api/events/event.h>
22 #include <dali/integration-api/events/gesture-event.h>
23 #include <dali-test-suite-utils.h>
27 void utc_dali_event_processing_startup(void)
29 test_return_value = TET_UNDEF;
32 void utc_dali_event_processing_cleanup(void)
34 test_return_value = TET_PASS;
40 struct InvalidEvent : public Integration::Event
42 InvalidEvent() : Event( Event::Type(-1000) ) {}
46 struct InvalidGesture : public Integration::GestureEvent
48 InvalidGesture() : GestureEvent( Gesture::Type(-1000), Gesture::Clear ) {}
54 int UtcDaliInvalidEvent(void)
56 TestApplication application;
61 application.ProcessEvent( event );
62 tet_result( TET_FAIL );
64 catch ( Dali::DaliException& e )
66 DALI_TEST_ASSERT( e, "false", TEST_LOCATION );
71 int UtcDaliInvalidGesture(void)
73 TestApplication application;
78 application.ProcessEvent( event );
79 tet_result( TET_FAIL );
81 catch ( Dali::DaliException& e )
83 DALI_TEST_ASSERT( e, "false", TEST_LOCATION );