summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src
diff options
context:
space:
mode:
authorAKalinich-Luxoft <AKalinich@luxoft.com>2018-07-26 19:57:23 +0300
committerAKalinich-Luxoft <AKalinich@luxoft.com>2018-07-30 10:34:26 +0300
commit5f0bb3cd3d606adf9659e38e3348c8ed8afd3735 (patch)
tree93d5d4928752467c1595ae1d584810bfcb319f4a /src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src
parentac1216b8b697b287217175b76da6ad6b0f5649ba (diff)
downloadsdl_core-5f0bb3cd3d606adf9659e38e3348c8ed8afd3735.tar.gz
Answer Livio comments
Fixed affected unit tests Reverted changes related to namespace naming
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src')
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/create_interaction_choice_set_request.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/create_interaction_choice_set_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/create_interaction_choice_set_request.cc
index 0612daa3e3..9b7653ac52 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/create_interaction_choice_set_request.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/create_interaction_choice_set_request.cc
@@ -42,12 +42,13 @@
#include "utils/gen_hash.h"
#include "utils/helpers.h"
-#define INVALID_IMG_WARNING_INFO "Requested image(s) not found."
-namespace sdl_rpc_plugin {
-using namespace application_manager;
+const char* kInvalidImageWarningInfo = "Requested image(s) not found.";
+namespace sdl_rpc_plugin {
namespace commands {
+using namespace application_manager;
+
CreateInteractionChoiceSetRequest::CreateInteractionChoiceSetRequest(
const application_manager::commands::MessageSharedPtr& message,
ApplicationManager& application_manager,
@@ -106,10 +107,10 @@ void CreateInteractionChoiceSetRequest::Run() {
LOG4CXX_ERROR(logger_, "Image verification failed.");
SendResponse(false, Result::INVALID_DATA);
return;
- } else if (verification_result_image == Result::WARNINGS ||
- verification_result_secondary_image == Result::WARNINGS) {
- should_send_warnings = true;
- break;
+ } else if (verification_result_image == Result::WARNINGS ||
+ verification_result_secondary_image == Result::WARNINGS) {
+ should_send_warnings = true;
+ break;
}
}
@@ -442,7 +443,7 @@ void CreateInteractionChoiceSetRequest::OnAllHMIResponsesReceived() {
LOG4CXX_AUTO_TRACE(logger_);
if (!error_from_hmi_ && should_send_warnings) {
- SendResponse(true, mobile_apis::Result::WARNINGS,INVALID_IMG_WARNING_INFO);
+ SendResponse(true, mobile_apis::Result::WARNINGS, kInvalidImageWarningInfo);
} else if (!error_from_hmi_) {
SendResponse(true, mobile_apis::Result::SUCCESS);
} else {