Unify privilege representation
[platform/core/test/security-tests.git] / src / security-manager-tests / test_cases_app_policy.cpp
index bb3ab94..27267f8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2018 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016-2020 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
 
 #include <dpl/test/test_runner.h>
 #include <dpl/test/test_runner_child.h>
+#include <privilege_names.h>
+
+using namespace PrivilegeNames;
 
 const PrivilegeVector TEST_PRIVACY_PRIVILEGES = {
-    Privilege("http://tizen.org/privilege/callhistory.read", Privilege::PRIVACY),
-    Privilege("http://tizen.org/privilege/account.read", Privilege::PRIVACY),
-    Privilege("http://tizen.org/privilege/healthinfo", Privilege::PRIVACY) };
+    Privilege(PRIV_CALLHISTORY_READ, Privilege::PRIVACY),
+    Privilege(PRIV_ACCOUNT_READ, Privilege::PRIVACY),
+    Privilege(PRIV_HEALTHINFO, Privilege::PRIVACY) };
 
 using namespace SecurityManagerTest;