diff options
author | SKobziev <skobziev@luxoft.com> | 2018-11-08 15:08:28 +0200 |
---|---|---|
committer | SKobziev <skobziev@luxoft.com> | 2018-11-08 15:10:07 +0200 |
commit | 4734f0a5a55c3e2bc2ec500a55244d03ce3fa358 (patch) | |
tree | 432913287a9d2c8fba33b2516ed59190ac3284a7 | |
parent | 60b53d44ee16bd769ba851d1be197fb5b92672c5 (diff) | |
download | sdl_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.cc | 2 | ||||
-rw-r--r-- | 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_ = |