extern int utc_ckmc_allow_deny_n(void);
extern int utc_ckmc_allow_deny_n2(void);
extern int utc_ckmc_deny_access_n3(void);
+extern int utc_ckmc_alias_new_p(void);
+extern int utc_ckmc_alias_new_n(void);
+extern int utc_ckmc_alias_new_n2(void);
+extern int utc_ckmc_alias_new_n3(void);
extern int utc_ckmc_key_new_p(void);
extern int utc_ckmc_key_new_p2(void);
extern int utc_ckmc_key_new_n(void);
{"utc_ckmc_allow_deny_n", utc_ckmc_allow_deny_n, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
{"utc_ckmc_allow_deny_n2", utc_ckmc_allow_deny_n2, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
{"utc_ckmc_deny_access_n3", utc_ckmc_deny_access_n3, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
+ {"utc_ckmc_alias_new_p", utc_ckmc_alias_new_p, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n", utc_ckmc_alias_new_n, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n2", utc_ckmc_alias_new_n2, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n3", utc_ckmc_alias_new_n3, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_p", utc_ckmc_key_new_p, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_p2", utc_ckmc_key_new_p2, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_n", utc_ckmc_key_new_n, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
extern int utc_ckmc_allow_deny_n(void);
extern int utc_ckmc_allow_deny_n2(void);
extern int utc_ckmc_deny_access_n3(void);
+extern int utc_ckmc_alias_new_p(void);
+extern int utc_ckmc_alias_new_n(void);
+extern int utc_ckmc_alias_new_n2(void);
+extern int utc_ckmc_alias_new_n3(void);
extern int utc_ckmc_key_new_p(void);
extern int utc_ckmc_key_new_p2(void);
extern int utc_ckmc_key_new_n(void);
{"utc_ckmc_allow_deny_n", utc_ckmc_allow_deny_n, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
{"utc_ckmc_allow_deny_n2", utc_ckmc_allow_deny_n2, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
{"utc_ckmc_deny_access_n3", utc_ckmc_deny_access_n3, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
+ {"utc_ckmc_alias_new_p", utc_ckmc_alias_new_p, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n", utc_ckmc_alias_new_n, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n2", utc_ckmc_alias_new_n2, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n3", utc_ckmc_alias_new_n3, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_p", utc_ckmc_key_new_p, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_p2", utc_ckmc_key_new_p2, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_n", utc_ckmc_key_new_n, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
extern int utc_ckmc_allow_deny_n(void);
extern int utc_ckmc_allow_deny_n2(void);
extern int utc_ckmc_deny_access_n3(void);
+extern int utc_ckmc_alias_new_p(void);
+extern int utc_ckmc_alias_new_n(void);
+extern int utc_ckmc_alias_new_n2(void);
+extern int utc_ckmc_alias_new_n3(void);
extern int utc_ckmc_key_new_p(void);
extern int utc_ckmc_key_new_p2(void);
extern int utc_ckmc_key_new_n(void);
{"utc_ckmc_allow_deny_n", utc_ckmc_allow_deny_n, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
{"utc_ckmc_allow_deny_n2", utc_ckmc_allow_deny_n2, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
{"utc_ckmc_deny_access_n3", utc_ckmc_deny_access_n3, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
+ {"utc_ckmc_alias_new_p", utc_ckmc_alias_new_p, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n", utc_ckmc_alias_new_n, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n2", utc_ckmc_alias_new_n2, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n3", utc_ckmc_alias_new_n3, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_p", utc_ckmc_key_new_p, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_p2", utc_ckmc_key_new_p2, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_n", utc_ckmc_key_new_n, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
extern int utc_ckmc_allow_deny_n(void);
extern int utc_ckmc_allow_deny_n2(void);
extern int utc_ckmc_deny_access_n3(void);
+extern int utc_ckmc_alias_new_p(void);
+extern int utc_ckmc_alias_new_n(void);
+extern int utc_ckmc_alias_new_n2(void);
+extern int utc_ckmc_alias_new_n3(void);
extern int utc_ckmc_key_new_p(void);
extern int utc_ckmc_key_new_p2(void);
extern int utc_ckmc_key_new_n(void);
{"utc_ckmc_allow_deny_n", utc_ckmc_allow_deny_n, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
{"utc_ckmc_allow_deny_n2", utc_ckmc_allow_deny_n2, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
{"utc_ckmc_deny_access_n3", utc_ckmc_deny_access_n3, utc_key_manager_store_startup, utc_key_manager_store_cleanup},
+ {"utc_ckmc_alias_new_p", utc_ckmc_alias_new_p, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n", utc_ckmc_alias_new_n, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n2", utc_ckmc_alias_new_n2, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
+ {"utc_ckmc_alias_new_n3", utc_ckmc_alias_new_n3, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_p", utc_ckmc_key_new_p, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_p2", utc_ckmc_key_new_p2, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
{"utc_ckmc_key_new_n", utc_ckmc_key_new_n, utc_key_manager_type_startup, utc_key_manager_type_cleanup},
if(path2) free(path2);
}
+/**
+ * @testcase utc_ckmc_alias_new_p
+ * @since_tizen 3.0
+ * @description Creates a new full alias which is a concatenation of owner id and alias.
+ * @scenario Creates a new full alias with system owner id.
+ */
+int utc_ckmc_alias_new_p(void)
+{
+ char *full_alias = NULL;
+ const char *alias = "ckmc_alias_new_p_alias";
+
+ int ret = ckmc_alias_new(ckmc_owner_id_system, alias, &full_alias);
+
+ assert_eq(ret, CKMC_ERROR_NONE);
+ assert_neq(full_alias, NULL);
+
+ free(full_alias);
+
+ return 0;
+}
+
+/**
+ * @testcase utc_ckmc_alias_new_n
+ * @since_tizen 3.0
+ * @description Creates a new full alias which is a concatenation of owner id and alias.
+ * @scenario Creates a new full alias with invalid parameter.
+ */
+int utc_ckmc_alias_new_n(void)
+{
+ const char *alias = "ckmc_alias_new_n_alias";
+
+ int ret = ckmc_alias_new(ckmc_owner_id_system, alias, NULL);
+
+ assert_eq(ret, CKMC_ERROR_INVALID_PARAMETER);
+
+ return 0;
+}
+
+/**
+ * @testcase utc_ckmc_alias_new_n2
+ * @since_tizen 3.0
+ * @description Creates a new full alias which is a concatenation of owner id and alias.
+ * @scenario Creates a new full alias with invalid parameter.
+ */
+int utc_ckmc_alias_new_n2(void)
+{
+ char *full_alias = NULL;
+
+ int ret = ckmc_alias_new(ckmc_owner_id_system, NULL, &full_alias);
+
+ assert_eq(ret, CKMC_ERROR_INVALID_PARAMETER);
+
+ return 0;
+}
+
+/**
+ * @testcase utc_ckmc_alias_new_n3
+ * @since_tizen 3.0
+ * @description Creates a new full alias which is a concatenation of owner id and alias.
+ * @scenario Creates a new full alias with invalid parameter.
+ */
+int utc_ckmc_alias_new_n3(void)
+{
+ char *full_alias = NULL;
+ const char *alias = "ckmc_alias_new_n_alias";
+
+ int ret = ckmc_alias_new(NULL, alias, &full_alias);
+
+ assert_eq(ret, CKMC_ERROR_INVALID_PARAMETER);
+
+ return 0;
+}
+
/**
* @testcase utc_ckmc_key_new_p