Apply the changed function interface 36/315336/2
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 26 Nov 2024 08:00:36 +0000 (17:00 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Sun, 1 Dec 2024 23:39:27 +0000 (08:39 +0900)
Related change:
- https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/315332

Change-Id: Iae9f11915682042325a89a86dc2fd07d7ae5dc50
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
test/smoke_tests/smoke_test.cc

index 1507129030b77724426b0eb1539b0f0bcb3feb77..29faec7a72a7c3472fc66963c20ff8cdb12bc147 100644 (file)
@@ -624,9 +624,12 @@ TEST_F(SmokeTest, UserDefinedPlugins) {
 
   ASSERT_EQ(backend.Install(path), ci::AppInstaller::Result::OK);
   ASSERT_TRUE(ValidatePackage(pkgid, {appid}, params));
-  std::vector<std::string> res;
   ci::PkgQueryInterface pkg_query(pkgid, params.test_user.uid);
-  ASSERT_TRUE(pkg_query.PrivilegesForPkgId(&res));
+  std::vector<std::tuple<int, std::string, std::string>> privileges;
+  ASSERT_TRUE(pkg_query.PrivilegesForPkgId(&privileges));
+  std::vector<std::string> res;
+  for (auto& priv : privileges)
+    res.emplace_back(std::get<1>(priv));
   ASSERT_TRUE(std::find(res.begin(), res.end(), call_privilege) != res.end());
   ASSERT_TRUE(std::find(res.begin(), res.end(), location_privilege)
           != res.end());