%if "%{USE_GCOV}" == "1"
export CXXFLAGS+=" -DTIZEN_TEST_GCOV "
%endif
+%if "%{tizen_profile_name}" == "tv"
+export CXXFLAGS+=" -DDISABLE_GESTURE_TESTS "
+%endif
%autogen
%configure --prefix=/usr
static Eina_Bool _cb_work_timeout(void *data);
/* callbacks - gesture */
+#ifndef DISABLE_GESTURE_TESTS
static Eina_Bool _cb_gesture_tap(void *data, int type, void *event);
static Eina_Bool _cb_gesture_edge_swipe(void *data, int type, void *event);
static Eina_Bool _cb_gesture_edge_drag(void *data, int type, void *event);
+#endif
/**********************
listeners
EINA_SAFETY_ON_NULL_RETURN_VAL(inputGenerator, EINA_FALSE);
// init gesture handler
+ #ifndef DISABLE_GESTURE_TESTS
gestureHandler = efl_util_gesture_initialize();
EINA_SAFETY_ON_NULL_RETURN_VAL(gestureHandler, EINA_FALSE);
+ #endif
// add signal handlers
res = addSignalHandlers();
efl_util_input_deinitialize_generator(inputGenerator);
// deinit gesture handler
+#ifndef DISABLE_GESTURE_TESTS
efl_util_gesture_deinitialize(gestureHandler);
+#endif
}
Eina_Bool
EINA_SAFETY_ON_NULL_GOTO(eh, err);
ev.eh_list = eina_list_append(ev.eh_list, eh);
+#ifndef DISABLE_GESTURE_TESTS
eh = ecore_event_handler_add(EFL_UTIL_EVENT_GESTURE_TAP, _cb_gesture_tap, this);
EINA_SAFETY_ON_NULL_GOTO(eh, err);
ev.eh_list = eina_list_append(ev.eh_list, eh);
eh = ecore_event_handler_add(EFL_UTIL_EVENT_GESTURE_EDGE_DRAG, _cb_gesture_edge_drag, this);
EINA_SAFETY_ON_NULL_GOTO(eh, err);
ev.eh_list = eina_list_append(ev.eh_list, eh);
+#endif
ev.key.ecore_state = EINA_FALSE;
}
}
+#ifndef DISABLE_GESTURE_TESTS
static Eina_Bool
_cb_gesture_tap(void *data, int type, void *event)
{
return EINA_TRUE;
}
+#endif
void
_verifyTCGetBufferSize(tbm_surface_h buffer, int *buffer_w, int *buffer_h, int *stride)
unsigned int state_smcb;
unsigned int type;
} effect;
+#ifndef DISABLE_GESTURE_TESTS
struct
{
Ecore_Timer *timer;
Eina_Bool get_event;
} edge;
} gesture;
+#endif
} ev;
struct
{
Eina_Bool generateTouchDown(int idx, int x, int y);
Eina_Bool generateTouchMove(int idx, int x, int y);
Eina_Bool generateTouchUp(int idx, int x, int y);
+#ifndef DISABLE_GESTURE_TESTS
Eina_Bool generateTapGesture();
Eina_Bool generateEdgeSwipeGesture();
Eina_Bool generateEdgeDragGesture();
+#endif
Eina_Bool setSplashLaunch(const char *path, int type);
Eina_Bool setSplashOwner();
Eina_Bool setWinEffect(etWin *tw);
Eldbus_Proxy *getDbusProxy() { return dbus.ds_proxy; }
Eldbus_Object *getDbusObject() { return dbus.ds_obj; }
int getLogDomain() { return logDomain; }
+#ifndef DISABLE_GESTURE_TESTS
efl_util_gesture_h getGestureHandler() { return gestureHandler; }
+#endif
Eina_Bool verifyTC(std::string basetype, std::string tcname);
void parseTargetInfo(int argc, char **argv);
protected:
Eina_Bool initProtocols();
efl_util_inputgen_h inputGenerator = NULL;
+#ifndef DISABLE_GESTURE_TESTS
efl_util_gesture_h gestureHandler = NULL;
+#endif
efl_util_screenshot_h screenshot = NULL;
};
eina_stringshare_del(etRunner::get().ev.key.name);
key_name = NULL;
};
-
+#ifndef DISABLE_GESTURE_TESTS
void test_gesture_edge_swipe(int fingers, efl_util_gesture_edge_e edge);
void test_gesture_edge_drag(int fingers, efl_util_gesture_edge_e edge);
+#endif
protected:
etWin *tw_shared = NULL;
etWin *tw_topposition = NULL;
etWin *tw_orexcl = NULL;
etWin *tw_excl = NULL;
+#ifndef DISABLE_GESTURE_TESTS
etWin *tw_gesture = NULL;
+#endif
std::string testCaseName;
std::string testName;
ASSERT_EQ(etRunner::get().verifyTC(testCaseName, testName), EINA_TRUE);
}
-
+#ifndef DISABLE_GESTURE_TESTS
TEST_F(etTestInput, gesture_tap22)
{
int ret = EFL_UTIL_ERROR_NONE;
ASSERT_EQ(etRunner::get().verifyTC(testCaseName, testName), EINA_TRUE);
}
+#endif
\ No newline at end of file