Reworking handling privileges for hybrid application
[platform/core/appfw/wgt-backend.git] / src / unit_tests / manifest_test.cc
index 46a8e36..52f9a81 100644 (file)
@@ -184,8 +184,8 @@ TEST_F(ManifestTest, PrivilegeElement_ValidName) {
   manifest_x* m = runner.GetManifest();
   ASSERT_NE(m, nullptr);
   std::vector<std::string> priv_vec;
-  for (const char* priv : GListRange<char*>(m->privileges)) {
-    priv_vec.push_back(priv);
+  for (privilege_x* priv : GListRange<privilege_x*>(m->privileges)) {
+    priv_vec.push_back(priv->value);
   }
   ASSERT_FALSE(priv_vec.empty());
   const char* expected_name = "http://tizen.org/privilege/application.launch";
@@ -198,8 +198,8 @@ TEST_F(ManifestTest, PrivilegeElement_ManyElements) {
   manifest_x* m = runner.GetManifest();
   ASSERT_NE(m, nullptr);
   std::vector<std::string> priv_vec;
-  for (const char* priv : GListRange<char*>(m->privileges)) {
-    priv_vec.push_back(priv);
+  for (privilege_x* priv : GListRange<privilege_x*>(m->privileges)) {
+    priv_vec.push_back(priv->value);
   }
   ASSERT_EQ(priv_vec.size(), 2);
   const char* first_priv = "http://tizen.org/privilege/application.close";