From: Zofia Abramowska Date: Wed, 9 Mar 2016 11:38:58 +0000 (+0100) Subject: SM: AppInstallHelper add pkg name setting X-Git-Tag: security-manager_5.5_testing~20^2~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2da9d003e0053131f0efc55e1ab6dcb49bc82ec8;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git SM: AppInstallHelper add pkg name setting Change-Id: I7feba7a77b75e227a0d42c9d7a8d5766979be00e --- diff --git a/src/security-manager-tests/common/app_install_helper.h b/src/security-manager-tests/common/app_install_helper.h index 597e021a..2d401320 100644 --- a/src/security-manager-tests/common/app_install_helper.h +++ b/src/security-manager-tests/common/app_install_helper.h @@ -25,7 +25,11 @@ struct AppInstallHelper { AppInstallHelper(const std::string &name) - : m_name(name) + : m_appName(name), m_pkgName(name) + {} + + AppInstallHelper(const std::string &appName, const std::string &pkgName) + : m_appName(appName), m_pkgName(pkgName) {} std::string getInstallDir() { @@ -44,11 +48,11 @@ struct AppInstallHelper { return getPrivateDir() + "shareme" + std::to_string(i); } std::string getAppId() { - return m_name + "_app_id"; + return m_appName + "_app_id"; } std::string getPkgId() { - return m_name + "_pkg_id"; + return m_pkgName + "_pkg_id"; } void createInstallDir() { @@ -102,7 +106,8 @@ struct AppInstallHelper { } protected: - std::string m_name; + std::string m_appName; + std::string m_pkgName; std::vector m_dirs; std::vector m_files; };