int error = GESTURE_ERROR_NONE;
error = gesture_start_recognition(handle, gesture_type, GESTURE_OPTION_DEFAULT, gesture_cb, NULL);
- if (is_supported) {
- assert_eq(error, GESTURE_ERROR_INVALID_PARAMETER);
- } else {
- assert_eq(error , GESTURE_ERROR_NOT_SUPPORTED);
- }
-
- error = gesture_stop_recognition(handle);
if(is_supported)
{
- if (support) {
+ if (support)
+ {
assert_eq(error, GESTURE_ERROR_NONE);
- } else {
- assert_eq(error, GESTURE_ERROR_NOT_STARTED);
+ error = gesture_stop_recognition(handle);
+ if(is_supported)
+ {
+ if (support)
+ {
+ assert_eq(error, GESTURE_ERROR_NONE);
+ }
+ else
+ {
+ assert_eq(error, GESTURE_ERROR_NOT_STARTED);
+ }
+ }
+ else
+ {
+ assert_eq(error , GESTURE_ERROR_NOT_SUPPORTED);
+ }
+ }
+ else
+ {
+ assert_eq(error, GESTURE_ERROR_NOT_SUPPORTED);
}
}
else