extern int utc_app_manager_get_shared_data_path_n1(void);
extern int utc_app_manager_get_shared_data_path_n2(void);
extern int utc_app_manager_get_shared_data_path_n3(void);
+extern int utc_app_manager_get_shared_data_path_n4(void);
extern int utc_app_manager_get_shared_resource_path_p(void);
extern int utc_app_manager_get_shared_resource_path_n1(void);
extern int utc_app_manager_get_shared_resource_path_n2(void);
{"utc_app_manager_get_external_shared_data_path_n1", utc_app_manager_get_external_shared_data_path_n1, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_external_shared_data_path_n2", utc_app_manager_get_external_shared_data_path_n2, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_external_shared_data_path_n3", utc_app_manager_get_external_shared_data_path_n3, utc_app_manager_startup, utc_app_manager_cleanup},
+ {"utc_app_manager_get_external_shared_data_path_n4", utc_app_manager_get_external_shared_data_path_n4, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_data_path_p", utc_app_manager_get_shared_data_path_p, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_data_path_n1", utc_app_manager_get_shared_data_path_n1, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_data_path_n2", utc_app_manager_get_shared_data_path_n2, utc_app_manager_startup, utc_app_manager_cleanup},
extern int utc_app_manager_get_shared_data_path_n1(void);
extern int utc_app_manager_get_shared_data_path_n2(void);
extern int utc_app_manager_get_shared_data_path_n3(void);
+extern int utc_app_manager_get_shared_data_path_n4(void);
extern int utc_app_manager_get_shared_resource_path_p(void);
extern int utc_app_manager_get_shared_resource_path_n1(void);
extern int utc_app_manager_get_shared_resource_path_n2(void);
{"utc_app_manager_get_shared_data_path_n1", utc_app_manager_get_shared_data_path_n1, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_data_path_n2", utc_app_manager_get_shared_data_path_n2, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_data_path_n3", utc_app_manager_get_shared_data_path_n3, utc_app_manager_startup, utc_app_manager_cleanup},
+ {"utc_app_manager_get_shared_data_path_n4", utc_app_manager_get_shared_data_path_n4, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_resource_path_p", utc_app_manager_get_shared_resource_path_p, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_resource_path_n1", utc_app_manager_get_shared_resource_path_n1, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_resource_path_n2", utc_app_manager_get_shared_resource_path_n2, utc_app_manager_startup, utc_app_manager_cleanup},
extern int utc_app_manager_get_shared_data_path_n1(void);
extern int utc_app_manager_get_shared_data_path_n2(void);
extern int utc_app_manager_get_shared_data_path_n3(void);
+extern int utc_app_manager_get_shared_data_path_n4(void);
extern int utc_app_manager_get_shared_resource_path_p(void);
extern int utc_app_manager_get_shared_resource_path_n1(void);
extern int utc_app_manager_get_shared_resource_path_n2(void);
{"utc_app_manager_get_shared_data_path_n1", utc_app_manager_get_shared_data_path_n1, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_data_path_n2", utc_app_manager_get_shared_data_path_n2, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_data_path_n3", utc_app_manager_get_shared_data_path_n3, utc_app_manager_startup, utc_app_manager_cleanup},
+ {"utc_app_manager_get_shared_data_path_n4", utc_app_manager_get_shared_data_path_n4, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_resource_path_p", utc_app_manager_get_shared_resource_path_p, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_resource_path_n1", utc_app_manager_get_shared_resource_path_n1, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_resource_path_n2", utc_app_manager_get_shared_resource_path_n2, utc_app_manager_startup, utc_app_manager_cleanup},
extern int utc_app_manager_get_shared_data_path_n1(void);
extern int utc_app_manager_get_shared_data_path_n2(void);
extern int utc_app_manager_get_shared_data_path_n3(void);
+extern int utc_app_manager_get_shared_data_path_n4(void);
extern int utc_app_manager_get_shared_resource_path_p(void);
extern int utc_app_manager_get_shared_resource_path_n1(void);
extern int utc_app_manager_get_shared_resource_path_n2(void);
{"utc_app_manager_get_shared_data_path_n1", utc_app_manager_get_shared_data_path_n1, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_data_path_n2", utc_app_manager_get_shared_data_path_n2, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_data_path_n3", utc_app_manager_get_shared_data_path_n3, utc_app_manager_startup, utc_app_manager_cleanup},
+ {"utc_app_manager_get_shared_data_path_n4", utc_app_manager_get_shared_data_path_n4, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_resource_path_p", utc_app_manager_get_shared_resource_path_p, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_resource_path_n1", utc_app_manager_get_shared_resource_path_n1, utc_app_manager_startup, utc_app_manager_cleanup},
{"utc_app_manager_get_shared_resource_path_n2", utc_app_manager_get_shared_resource_path_n2, utc_app_manager_startup, utc_app_manager_cleanup},
}
}
- TCT_UTCCheckInstalledApp(2, TEST_APPID, TEST_APPID2);
+ TCT_UTCCheckInstalledApp(3, TEST_APPID, TEST_APPID2, "org.tizen.shared_data");
}
/**
}
/**
- * @deprecated Deprecated since 3.0.
* @testcase utc_app_manager_get_shared_data_path_p
* @since_tizen 2.3
* @description Gets the absolute path to the shared data directory of the application specified with an application ID.
int ret = 0;
char *path = NULL;
- ret = app_manager_get_shared_data_path(TEST_APPID, &path);
+ ret = app_manager_get_shared_data_path("org.tizen.shared_data", &path);
free(path);
- assert_eq_with_exit(ret, APP_MANAGER_ERROR_NOT_SUPPORTED);
+ assert_eq_with_exit(ret, APP_MANAGER_ERROR_NONE);
normal_exit(0);
return 0;
}
+
/**
- * @deprecated Deprecated since 3.0.
* @testcase utc_app_manager_get_shared_data_path_n1
* @since_tizen 2.3
* @description If there is no path to return, func has to return an error.
}
/**
- * @deprecated Deprecated since 3.0.
* @testcase utc_app_manager_get_shared_data_path_n2
* @since_tizen 2.3
* @description If there is no an app id to find, func has to return an error.
}
/**
- * @deprecated Deprecated since 3.0.
* @testcase utc_app_manager_get_shared_data_path_n3
* @since_tizen 2.3
* @description If there is wrong an app id to find, func has to return an error.
}
/**
+ * @testcase utc_app_manager_get_shared_data_path_n4
+ * @since_tizen 2.3
+ * @description If the privilege is not declared, func has to return an error.
+ * @scenario Call app_manager_get_shared_data_path func with an app id for test.\n
+ * Check whether result is APP_MANAGER_ERROR_NOT_SUPPORTED.
+ */
+int utc_app_manager_get_shared_data_path_n4(void)
+{
+ int ret;
+ char *path = NULL;
+
+ ret = app_manager_get_shared_data_path(TEST_APPID, &path);
+ assert_eq_with_exit(ret, APP_MANAGER_ERROR_NOT_SUPPORTED);
+ normal_exit(0);
+
+ return 0;
+}
+
+/**
* @testcase utc_app_manager_get_shared_resource_path_p
* @since_tizen 2.3
* @description Gets the absolute path to the shared resource directory of the application specified with an application ID.