diff options
author | Kozoriz <kozorizandriy@gmail.com> | 2016-12-28 10:18:43 +0200 |
---|---|---|
committer | Kozoriz <kozorizandriy@gmail.com> | 2016-12-29 09:42:05 +0200 |
commit | 68f3194e5c47a295ea18530121905b92a0a7f82a (patch) | |
tree | 6480d6c7cd0d2174c008f45fa97a243a336209c7 /src/components/policy/policy_external/test/policy_manager_impl_ptu_test.cc | |
parent | 85bba21e1839f3a5f79b64b88578e7dbbe134c3c (diff) | |
download | sdl_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.cc | 6 |
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); |