/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2017 - 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 <tzplatform.h>
#include <app_install_helper.h>
#include <scoped_installer.h>
+#include <privilege_names.h>
RUNNER_TEST_GROUP_INIT(SECURITY_MANAGER_APP_DEFINED_PRIVILEGE)
using namespace SecurityManagerTest;
+using namespace PrivilegeNames;
RUNNER_CHILD_TEST(app_defined_01_global_install_untrusted)
{
RUNNER_CHILD_TEST(app_defined_10_check_system_privileges)
{
const std::string providerAppId = "app_def_09_provider";
- const Privilege privilege("http://tizen.org/privilege/internet", Privilege::UNTRUSTED);
+ const Privilege privilege(PRIV_INTERNET, Privilege::UNTRUSTED);
InstallRequest requestInst;
requestInst.setAppId(providerAppId);
CynaraTestClient::Client cynara;
cynara.check(clientLabel, session, ownerId, clientPrivilegeLicense, CYNARA_API_ACCESS_DENIED);
-}
\ No newline at end of file
+}