extern int utc_sync_manager_add_data_change_sync_job_n4(void);
extern int utc_sync_manager_remove_sync_job_p(void);
extern int utc_sync_manager_remove_sync_job_p2(void);
-extern int utc_sync_manager_remove_sync_job_p3(void);
extern int utc_sync_manager_remove_sync_job_n(void);
extern int utc_sync_manager_foreach_sync_job_p(void);
extern int utc_sync_manager_foreach_sync_job_n(void);
{"utc_sync_manager_add_data_change_sync_job_n4", utc_sync_manager_add_data_change_sync_job_n4, utc_sync_manager_startup, utc_sync_manager_cleanup},
{"utc_sync_manager_remove_sync_job_p", utc_sync_manager_remove_sync_job_p, utc_sync_manager_startup, utc_sync_manager_cleanup},
{"utc_sync_manager_remove_sync_job_p2", utc_sync_manager_remove_sync_job_p2, utc_sync_manager_startup, utc_sync_manager_cleanup},
- {"utc_sync_manager_remove_sync_job_p3", utc_sync_manager_remove_sync_job_p3, utc_sync_manager_startup, utc_sync_manager_cleanup},
{"utc_sync_manager_remove_sync_job_n", utc_sync_manager_remove_sync_job_n, utc_sync_manager_startup, utc_sync_manager_cleanup},
{"utc_sync_manager_foreach_sync_job_p", utc_sync_manager_foreach_sync_job_p, utc_sync_manager_startup, utc_sync_manager_cleanup},
{"utc_sync_manager_foreach_sync_job_n", utc_sync_manager_foreach_sync_job_n, utc_sync_manager_startup, utc_sync_manager_cleanup},
#include "testcase.h"
#include "tct_common.h"
-#include "testcase.h"
-#include "tct_common.h"
-
extern void utc_sync_manager_startup(void);
extern void utc_sync_manager_cleanup(void);
extern int utc_sync_manager_add_data_change_sync_job_n4(void);
extern int utc_sync_manager_remove_sync_job_p(void);
extern int utc_sync_manager_remove_sync_job_p2(void);
-extern int utc_sync_manager_remove_sync_job_p3(void);
extern int utc_sync_manager_remove_sync_job_n(void);
extern int utc_sync_manager_foreach_sync_job_p(void);
extern int utc_sync_manager_foreach_sync_job_n(void);
{"utc_sync_manager_add_data_change_sync_job_n4", utc_sync_manager_add_data_change_sync_job_n4, utc_sync_manager_startup, utc_sync_manager_cleanup},
{"utc_sync_manager_remove_sync_job_p", utc_sync_manager_remove_sync_job_p, utc_sync_manager_startup, utc_sync_manager_cleanup},
{"utc_sync_manager_remove_sync_job_p2", utc_sync_manager_remove_sync_job_p2, utc_sync_manager_startup, utc_sync_manager_cleanup},
- {"utc_sync_manager_remove_sync_job_p3", utc_sync_manager_remove_sync_job_p3, utc_sync_manager_startup, utc_sync_manager_cleanup},
{"utc_sync_manager_remove_sync_job_n", utc_sync_manager_remove_sync_job_n, utc_sync_manager_startup, utc_sync_manager_cleanup},
{"utc_sync_manager_foreach_sync_job_p", utc_sync_manager_foreach_sync_job_p, utc_sync_manager_startup, utc_sync_manager_cleanup},
{"utc_sync_manager_foreach_sync_job_n", utc_sync_manager_foreach_sync_job_n, utc_sync_manager_startup, utc_sync_manager_cleanup},
/**
* @testcase utc_sync_manager_remove_sync_job_p
* @since_tizen 2.4
- * @description Positive test case of removing on-demand sync jobs
- */
-int utc_sync_manager_remove_sync_job_p(void)
-{
- int ret = SYNC_ERROR_NONE;
-
- sync_manager_setup_adapter();
- assert(set_cb);
-
- sync_manager_setup_account();
- assert(created_acc);
-
- user_data = bundle_create();
- bundle_add_str(user_data, "str", "String user_data sample.");
-
- int sync_job_id = 0;
-
- ret = sync_manager_on_demand_sync_job(account, name_on_demand, SYNC_OPTION_NONE, user_data, &sync_job_id);
- assert_eq(ret, SYNC_ERROR_NONE);
-
- wait_for_async();
- ret = is_callback_finished();
- assert_eq(ret, SYNC_ERROR_NONE);
- is_finished = false;
-
- ret = sync_manager_on_demand_sync_job(NULL, name_on_demand, SYNC_OPTION_NO_RETRY, user_data, &sync_job_id);
- assert_eq(ret, SYNC_ERROR_NONE);
-
- wait_for_async();
- ret = is_callback_finished();
- assert_eq(ret, SYNC_ERROR_NONE);
- is_finished = false;
-
- ret = sync_manager_on_demand_sync_job(account, name_on_demand, SYNC_OPTION_EXPEDITED, NULL, &sync_job_id);
- assert_eq(ret, SYNC_ERROR_NONE);
-
- wait_for_async();
- ret = is_callback_finished();
- assert_eq(ret, SYNC_ERROR_NONE);
- is_finished = false;
-
- ret = sync_manager_on_demand_sync_job(NULL, name_on_demand, (SYNC_OPTION_NO_RETRY | SYNC_OPTION_EXPEDITED), NULL, &sync_job_id);
- assert_eq(ret, SYNC_ERROR_NONE);
-
- wait_for_async();
- ret = is_callback_finished();
- assert_eq(ret, SYNC_ERROR_NONE);
- is_finished = false;
-
- ret = sync_manager_on_demand_sync_job(NULL, name_on_demand, SYNC_OPTION_NONE, user_data, &sync_job_id);
- assert_eq(ret, SYNC_ERROR_NONE);
-
- ret = sync_manager_remove_sync_job(sync_job_id);
- assert_eq(ret, SYNC_ERROR_NONE);
-
- bundle_free(user_data);
-
- return 0;
-}
-
-
-/**
- * @testcase utc_sync_manager_remove_sync_job_p2
- * @since_tizen 2.4
* @description Positive test case of removing periodic sync jobs
*/
-int utc_sync_manager_remove_sync_job_p2(void)
+int utc_sync_manager_remove_sync_job_p(void)
{
int ret = SYNC_ERROR_NONE;
/**
- * @testcase utc_sync_manager_remove_sync_job_p3
+ * @testcase utc_sync_manager_remove_sync_job_p2
* @since_tizen 2.4
* @description Positive test case of removing data change sync jobs
*/
-int utc_sync_manager_remove_sync_job_p3(void)
+int utc_sync_manager_remove_sync_job_p2(void)
{
int ret = SYNC_ERROR_NONE;