return true;
}
+
+pkgmgr_certinfo_x *GetTestCertificate() {
+ pkgmgr_certinfo_x* cert_info = reinterpret_cast<pkgmgr_certinfo_x*>(
+ calloc(1, sizeof(pkgmgr_certinfo_x)));
+
+ cert_info->for_all_users = 1;
+ cert_info->pkgid = strdup("test_pkgid");
+ cert_info->cert_value = strdup("test_certvalue");
+ for (int i = 0; i < MAX_CERT_TYPE; i++) {
+ std::string cert_value(std::to_string(i));
+ cert_value += "test_cert_value";
+ cert_info->cert_info[i] = strdup(cert_value.c_str());
+ cert_info->cert_id[i] = i + 1;
+ }
+
+ return cert_info;
+}
\ No newline at end of file
bool IsEqualDepInfo(const std::vector<dependency_x *>& depA,
const std::vector<dependency_x *>& depB);
+
+pkgmgr_certinfo_x *GetTestCertificate();
\ No newline at end of file