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";
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";