extern int utc_shortcut_set_remove_cb_p(void);
extern int utc_shortcut_remove_from_home_n(void);
extern int utc_shortcut_remove_from_home_p(void);
+extern int utc_shortcut_unset_request_cb_n(void);
+extern int utc_shortcut_unset_request_cb_p(void);
+extern int utc_shortcut_unset_remove_cb_n(void);
+extern int utc_shortcut_unset_remove_cb_p(void);
testcase tc_array[] = {
{"utc_shortcut_add_to_home_n", utc_shortcut_add_to_home_n, NULL, NULL},
{"utc_shortcut_set_remove_cb_p", utc_shortcut_set_remove_cb_p, NULL, NULL},
{"utc_shortcut_remove_from_home_n", utc_shortcut_remove_from_home_n, NULL, NULL},
{"utc_shortcut_remove_from_home_p", utc_shortcut_remove_from_home_p, NULL, NULL},
+ {"utc_shortcut_unset_request_cb_n", utc_shortcut_unset_request_cb_n, NULL, NULL},
+ {"utc_shortcut_unset_request_cb_p", utc_shortcut_unset_request_cb_p, NULL, NULL},
+ {"utc_shortcut_unset_remove_cb_n", utc_shortcut_unset_remove_cb_n, NULL, NULL},
+ {"utc_shortcut_unset_remove_cb_p", utc_shortcut_unset_remove_cb_p, NULL, NULL},
{NULL, NULL}
};
return 0;
}
+/**
+ * @testcase utc_shortcut_unset_request_cb_n
+ * @since_tizen 3.0
+ * @description Negative test case of shortcut_unset_request_cb()
+ */
+int utc_shortcut_unset_request_cb_n(void)
+{
+ int ret;
+
+ ret = shortcut_set_request_cb(NULL, "temp");
+ assert_eq(ret, SHORTCUT_ERROR_INVALID_PARAMETER);
+
+ shortcut_unset_request_cb();
+
+ return 0;
+}
+
+/**
+ * @testcase utc_shortcut_unset_request_cb_p
+ * @since_tizen 3.0
+ * @description Positive test case of shortcut_unset_request_cb()
+ */
+int utc_shortcut_unset_request_cb_p(void)
+{
+ int ret;
+
+ ret = shortcut_set_request_cb(_request_cb, "temp");
+ assert_eq(ret, SHORTCUT_ERROR_NONE);
+
+ shortcut_unset_request_cb();
+
+ return 0;
+}
+/**
+ * @testcase utc_shortcut_unset_remove_cb_n
+ * @since_tizen 3.0
+ * @description Negative test case of shortcut_unset_remove_cb()
+ */
+int utc_shortcut_unset_remove_cb_n(void)
+{
+ int ret;
+
+ ret = shortcut_set_remove_cb(NULL, "temp");
+ assert_eq(ret, SHORTCUT_ERROR_INVALID_PARAMETER);
+
+ shortcut_unset_remove_cb();
+
+ return 0;
+}
+
+/**
+ * @testcase utc_shortcut_unset_remove_cb_p
+ * @since_tizen 3.0
+ * @description Positive test case of shortcut_unset_remove_cb()
+ */
+int utc_shortcut_unset_remove_cb_p(void)
+{
+ int ret;
+
+ ret = shortcut_set_remove_cb(_remove_cb, "temp");
+ assert_eq(ret, SHORTCUT_ERROR_NONE);
+
+ shortcut_unset_remove_cb();
+ return 0;
+}
int list_cb(const char *package_name, const char *icon, const char *name, const char *extra_key, const char *extra_data, void *user_data)
{