summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSKobziev <skobziev@luxoft.com>2018-11-08 15:08:28 +0200
committerSKobziev <skobziev@luxoft.com>2018-11-08 15:10:07 +0200
commit4734f0a5a55c3e2bc2ec500a55244d03ce3fa358 (patch)
tree432913287a9d2c8fba33b2516ed59190ac3284a7
parent60b53d44ee16bd769ba851d1be197fb5b92672c5 (diff)
downloadsdl_core-fix/Provide_operation_result_to_function_file_system_CreateDirectory.tar.gz
Added const cv for the creating directory pathfix/Provide_operation_result_to_function_file_system_CreateDirectory
into unit tests(when uses file_system::CreateDirectory)
-rw-r--r--src/components/application_manager/test/help_prompt_manager_test.cc2
-rw-r--r--src/components/application_manager/test/policy_handler_test.cc2
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_ =