From 4734f0a5a55c3e2bc2ec500a55244d03ce3fa358 Mon Sep 17 00:00:00 2001 From: SKobziev Date: Thu, 8 Nov 2018 15:08:28 +0200 Subject: Added const cv for the creating directory path into unit tests(when uses file_system::CreateDirectory) --- src/components/application_manager/test/help_prompt_manager_test.cc | 2 +- src/components/application_manager/test/policy_handler_test.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/application_manager/test/help_prompt_manager_test.cc b/src/components/application_manager/test/help_prompt_manager_test.cc index a3947318c4..e9444d6498 100644 --- a/src/components/application_manager/test/help_prompt_manager_test.cc +++ b/src/components/application_manager/test/help_prompt_manager_test.cc @@ -180,7 +180,7 @@ void HelpPromptManagerTest::SetUp() { app_mngr_, HmiState::STATE_ID_REGULAR); - std::string path("storage"); + const std::string path("storage"); if (file_system::CreateDirectory(path)) file_system::CreateFile(path + "/" + "certificate"); diff --git a/src/components/application_manager/test/policy_handler_test.cc b/src/components/application_manager/test/policy_handler_test.cc index 75a3f2abf7..993fd84cc6 100644 --- a/src/components/application_manager/test/policy_handler_test.cc +++ b/src/components/application_manager/test/policy_handler_test.cc @@ -176,7 +176,7 @@ class PolicyHandlerTest : public ::testing::Test { ON_CALL(policy_settings_, enable_policy()).WillByDefault(Return(true)); ON_CALL(app_manager_, event_dispatcher()) .WillByDefault(ReturnRef(mock_event_dispatcher_)); - std::string path("storage"); + const std::string path("storage"); if (file_system::CreateDirectory(path)) file_system::CreateFile(path + "/" + "certificate"); mock_policy_manager_ = -- cgit v1.2.1