SM: Rename and use one label generators
[platform/core/test/security-tests.git] / src / security-manager-tests / common / app_install_helper.h
index 5162ba8..2a15dc4 100644 (file)
@@ -23,6 +23,7 @@
 #include <sys/smack.h>
 
 #include <dpl/test/test_runner.h>
+#include <sm_commons.h>
 #include <tzplatform.h>
 
 struct AppInstallHelper {
@@ -90,11 +91,11 @@ struct AppInstallHelper {
     }
 
     std::string generateAppLabel() const {
-        return "User::App::" + getAppId();
+        return generateProcessLabel(getAppId());
     }
 
     std::string generatePkgLabel() const {
-        return "User::Pkg::" + getPkgId();
+        return generatePathRWLabel(getPkgId());
     }
 
     void removePaths() {