g_bMinicontrolNotSupported = false;
-#ifdef MOBILE //Starts MOBILE
+#if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE/WEARABLE
if ( !TCTCheckSystemInfoFeatureSupported(MINICONTROL_FEATURE, API_NAMESPACE) )
{
g_bMinicontrolNotSupported = true;
}
-#endif //End mobile
+#endif //End mobile/wearable
return;
}
g_itc_minicontrol_viewer_add_p_result = 0;
nRet = minicontrol_viewer_set_event_cb(minicontrol_viewer_event_callback, "user_data");
-#ifdef MOBILE //Starts MOBILE
+#if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE/WEARABLE
if (g_bMinicontrolNotSupported)
{
if(nRet != MINICONTROL_ERROR_NOT_SUPPORTED)
return 0;
}
}
-#endif //End mobile
+#endif //End mobile/wearable
PRINT_RESULT(MINICONTROL_ERROR_NONE, nRet, "minicontrol_viewer_set_event_cb", MinicontrolGetError(nRet));
create_minicontrol_window_thread(NULL);
for ( nEnumEventCounter = 0; nEnumEventCounter < nEnumEventSize; nEnumEventCounter++ )
{
minicontrol_error_e nRet = minicontrol_viewer_send_event(TARGET_APP_ID, event_viewer[nEnumEventCounter], event_arg);
-#ifdef MOBILE //Starts MOBILE
+#if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE/WEARABLE
if (g_bMinicontrolNotSupported)
{
if(nRet != MINICONTROL_ERROR_NOT_SUPPORTED)
return 0;
}
}
-#endif //End mobile
+#endif //End mobile/wearable
PRINT_RESULT(MINICONTROL_ERROR_NONE, nRet, "minicontrol_viewer_send_event", MinicontrolGetError(nRet));
}
return 0;
g_bMinicontrolCallbackHit = false;
minicontrol_error_e nRet = minicontrol_viewer_set_event_cb(minicontrol_viewer_event_callback, NULL);
-#ifdef MOBILE //Starts MOBILE
+#if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE/WEARABLE
if (g_bMinicontrolNotSupported)
{
if(nRet != MINICONTROL_ERROR_NOT_SUPPORTED)
return 0;
}
}
-#endif //End mobile
+#endif //End mobile/wearable
PRINT_RESULT(MINICONTROL_ERROR_NONE, nRet, "minicontrol_viewer_set_event_cb", MinicontrolGetError(nRet));
minicontrol_window = minicontrol_create_window(MINICONTROL_NAME, MINICONTROL_TARGET_VIEWER_QUICK_PANEL, minicontrol_window_callback);
{
minicontrol_window = minicontrol_create_window(MINICONTROL_NAME, event_viewer[nEnumEventCounter], minicontrol_window_callback);
minicontrol_error_e nRet = get_last_result();
-#ifdef MOBILE //Starts MOBILE
+#if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE/WEARABLE
if (g_bMinicontrolNotSupported)
{
if(nRet != MINICONTROL_ERROR_NOT_SUPPORTED)
return 0;
}
}
-#endif //End mobile
+#endif //End mobile/wearable
elm_win_alpha_set(minicontrol_window, EINA_TRUE);
evas_object_resize(minicontrol_window, 480, 800);
minicontrol_window = minicontrol_create_window(MINICONTROL_NAME, MINICONTROL_TARGET_VIEWER_QUICK_PANEL, minicontrol_window_callback);
minicontrol_error_e nRet = get_last_result();
-#ifdef MOBILE //Starts MOBILE
+#if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE/WEARABLE
if (g_bMinicontrolNotSupported)
{
if(nRet != MINICONTROL_ERROR_NOT_SUPPORTED)
return 0;
}
}
-#endif //End mobile
+#endif //End mobile/wearable
if ( minicontrol_window == NULL)
{
FPRINTF("[Line : %d][%s] minicontrol_create_window failed with error %s\\n", __LINE__, API_NAMESPACE, MinicontrolGetError(nRet));
#include "testcase.h"
#include "tct_common.h"
+extern void ITs_minicontrol_startup(void);
+extern void ITs_minicontrol_cleanup(void);
+extern int ITc_minicontrol_viewer_add_p(void);
+extern int ITc_minicontrol_viewer_send_event_p(void);
+extern int ITc_minicontrol_viewer_set_unset_event_cb_p(void);
+extern int ITc_minicontrol_create_window_p(void);
+extern int ITc_minicontrol_send_event_p(void);
testcase tc_array[] = {
+ {"ITc_minicontrol_viewer_add_p",ITc_minicontrol_viewer_add_p,ITs_minicontrol_startup,ITs_minicontrol_cleanup},
+ {"ITc_minicontrol_viewer_send_event_p",ITc_minicontrol_viewer_send_event_p,ITs_minicontrol_startup,ITs_minicontrol_cleanup},
+ {"ITc_minicontrol_viewer_set_unset_event_cb_p",ITc_minicontrol_viewer_set_unset_event_cb_p,ITs_minicontrol_startup,ITs_minicontrol_cleanup},
+ {"ITc_minicontrol_create_window_p",ITc_minicontrol_create_window_p,ITs_minicontrol_startup,ITs_minicontrol_cleanup},
+ {"ITc_minicontrol_send_event_p",ITc_minicontrol_send_event_p,ITs_minicontrol_startup,ITs_minicontrol_cleanup},
{NULL, NULL}
};