SM: Rename and use one label generators
[platform/core/test/security-tests.git] / src / security-manager-tests / test_cases_credentials.cpp
index d2811e8..ce5c1f9 100644 (file)
@@ -112,7 +112,7 @@ RUNNER_CHILD_TEST(security_manager_51a_get_id_by_socket)
 
     Api::install(requestInst);
 
-    std::string smackLabel = generateAppLabel(sm_app_id);
+    std::string smackLabel = generateProcessLabel(sm_app_id);
 
     clientTestTemplate([&] (int sock, pid_t) {
         std::string rcvPkgId, rcvAppId;
@@ -140,7 +140,7 @@ RUNNER_CHILD_TEST(security_manager_51b_get_id_by_socket)
 
     Api::install(requestInst);
 
-    std::string smackLabel = generateAppLabel(sm_app_id);
+    std::string smackLabel = generateProcessLabel(sm_app_id);
 
     clientTestTemplate([&] (int sock, pid_t) {
         std::string rcvPkgId, rcvAppId;
@@ -164,7 +164,7 @@ RUNNER_CHILD_TEST(security_manager_51c_get_id_by_socket)
 
     Api::install(requestInst);
 
-    std::string smackLabel = generateAppLabel(sm_app_id);
+    std::string smackLabel = generateProcessLabel(sm_app_id);
 
     clientTestTemplate([&] (int sock, pid_t) {
         std::string rcvPkgId;
@@ -190,7 +190,7 @@ RUNNER_CHILD_TEST(security_manager_51d_get_id_by_socket)
 
     Api::install(requestInst);
 
-    std::string smackLabel = generateAppLabel(sm_app_id);
+    std::string smackLabel = generateProcessLabel(sm_app_id);
 
     clientTestTemplate([&] (int sock, pid_t) {
         std::string rcvAppId;
@@ -216,7 +216,7 @@ RUNNER_CHILD_TEST(security_manager_51e_get_id_by_socket)
 
     Api::install(requestInst);
 
-    std::string smackLabel = generateAppLabel(sm_app_id);
+    std::string smackLabel = generateProcessLabel(sm_app_id);
 
     clientTestTemplate([&] (int sock, pid_t) {
         Api::getPkgIdBySocket(sock, nullptr, nullptr, SECURITY_MANAGER_ERROR_INPUT_PARAM);
@@ -239,7 +239,7 @@ RUNNER_CHILD_TEST(security_manager_52a_get_id_by_pid)
 
     Api::install(requestInst);
 
-    std::string smackLabel = generateAppLabel(sm_app_id);
+    std::string smackLabel = generateProcessLabel(sm_app_id);
 
     clientTestTemplate([&] (int, pid_t pid) {
         std::string rcvPkgId, rcvAppId;
@@ -267,7 +267,7 @@ RUNNER_CHILD_TEST(security_manager_52b_get_id_by_pid)
 
     Api::install(requestInst);
 
-    std::string smackLabel = generateAppLabel(sm_app_id);
+    std::string smackLabel = generateProcessLabel(sm_app_id);
 
     clientTestTemplate([&] (int, pid_t pid) {
         std::string rcvPkgId, rcvAppId;
@@ -291,7 +291,7 @@ RUNNER_CHILD_TEST(security_manager_52c_get_id_by_pid)
 
     Api::install(requestInst);
 
-    std::string smackLabel = generateAppLabel(sm_app_id);
+    std::string smackLabel = generateProcessLabel(sm_app_id);
 
     clientTestTemplate([&] (int, pid_t pid) {
         std::string rcvPkgId;
@@ -317,7 +317,7 @@ RUNNER_CHILD_TEST(security_manager_52d_get_id_by_pid)
 
     Api::install(requestInst);
 
-    std::string smackLabel = generateAppLabel(sm_app_id);
+    std::string smackLabel = generateProcessLabel(sm_app_id);
 
     clientTestTemplate([&] (int, pid_t pid) {
         std::string rcvAppId;
@@ -343,7 +343,7 @@ RUNNER_CHILD_TEST(security_manager_52e_get_id_by_pid)
 
     Api::install(requestInst);
 
-    std::string smackLabel = generateAppLabel(sm_app_id);
+    std::string smackLabel = generateProcessLabel(sm_app_id);
 
     clientTestTemplate([&] (int sock, pid_t) {
         Api::getPkgIdByPid(sock, nullptr, nullptr, SECURITY_MANAGER_ERROR_INPUT_PARAM);