create skeleton of mmi_client_set_result_cb and, it's tests
Change-Id: I88d6621612b4cb26ef702089f71d8d28adf1d0f1
return MMI_ERROR_NONE;
}
+
+int mmi_client_set_result_cb(int input_event_type, result_cb callback, void* user_data)
+{
+ return MMI_ERROR_NONE;
+}
int mmi_client_create(void);
int mmi_client_destroy(void);
+int mmi_client_set_result_cb(int input_event_type, result_cb callback, void* user_data);
#ifdef __cplusplus
}
MMI_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< MMI NOT supported */
} mmi_error_e;
+typedef void (*result_cb)(void *user_data, int input_event_type, const char *result_out);
+
#endif //__MMI_COMMON_H__
mmi_client_destroy();
}
+
+TEST_F(MMIMainTest, MMIClientSetResultCb)
+{
+ int res = mmi_init();
+ int input_event_type = 0;
+
+ EXPECT_EQ(res, MMI_ERROR_NONE);
+
+ res = mmi_client_set_result_cb(input_event_type, NULL, NULL);
+ EXPECT_EQ(res, MMI_ERROR_NONE);
+
+ mmi_shutdown();
+}