summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/test/policy_manager_impl_ptu_test.cc
diff options
context:
space:
mode:
authorKozoriz <kozorizandriy@gmail.com>2016-12-28 10:18:43 +0200
committerKozoriz <kozorizandriy@gmail.com>2016-12-29 09:42:05 +0200
commit68f3194e5c47a295ea18530121905b92a0a7f82a (patch)
tree6480d6c7cd0d2174c008f45fa97a243a336209c7 /src/components/policy/policy_external/test/policy_manager_impl_ptu_test.cc
parent85bba21e1839f3a5f79b64b88578e7dbbe134c3c (diff)
downloadsdl_core-68f3194e5c47a295ea18530121905b92a0a7f82a.tar.gz
Fix tests after changing implementation
Removed preloaded_pt field from PTU json files. Fixed failed related tests. Related task : APPLINK-30866
Diffstat (limited to 'src/components/policy/policy_external/test/policy_manager_impl_ptu_test.cc')
-rw-r--r--src/components/policy/policy_external/test/policy_manager_impl_ptu_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/policy/policy_external/test/policy_manager_impl_ptu_test.cc b/src/components/policy/policy_external/test/policy_manager_impl_ptu_test.cc
index 16c5587541..cec844fb85 100644
--- a/src/components/policy/policy_external/test/policy_manager_impl_ptu_test.cc
+++ b/src/components/policy/policy_external/test/policy_manager_impl_ptu_test.cc
@@ -125,7 +125,7 @@ TEST_F(PolicyManagerImplTest2, GetNotificationsNumberAfterPTUpdate) {
TEST_F(PolicyManagerImplTest2, IsAppRevoked_SetRevokedAppID_ExpectAppRevoked) {
// Arrange
- std::ifstream ifile(preloadet_pt_filename_);
+ std::ifstream ifile(kValidSdlPtUpdateJson);
Json::Reader reader;
std::string json;
Json::Value root(Json::objectValue);
@@ -177,7 +177,7 @@ TEST_F(PolicyManagerImplTest2,
EXPECT_EQ(::policy::kRpcAllowed, output.hmi_level_permitted);
ASSERT_TRUE(output.list_of_allowed_params.empty());
// Act
- std::ifstream ifile(preloadet_pt_filename_);
+ std::ifstream ifile(kValidSdlPtUpdateJson);
Json::Reader reader;
std::string json;
Json::Value root(Json::objectValue);
@@ -219,7 +219,7 @@ TEST_F(PolicyManagerImplTest2,
// Add app from consented device. App will be assigned with default policies
manager_->AddApplication(application_id_);
// Emulate PTU with new policies for app added above
- std::ifstream ifile(preloadet_pt_filename_);
+ std::ifstream ifile(kValidSdlPtUpdateJson);
Json::Reader reader;
std::string json;
Json::Value root(Json::objectValue);