From 5f9a93c34aac15c04181ecb28180dc6762f2daac Mon Sep 17 00:00:00 2001 From: "Andrey Oleynik (GitHub)" Date: Thu, 2 Nov 2017 17:52:16 +0200 Subject: Fixes responses 'success' value in case of UNSUPPORTED_RESOURCE (#1576) * Fixes 'success' value in case of UNSUPPORTED_RESOURCE There is only one case for 'success' to have 'false' with UNSUPPORTED_RESOURCE - when there is single-interface RPC comes and that specific interface is not available i.e. .IsReady returned 'false' Changes done for base class and unit tests with wrong expectations. * Fix response to mobile result Fixed result to mobile in case of GENERIC_ERROR from hmi and iface does not response * Fix ut tests according to code changes * Fix regression --- .../include/application_manager/commands/command_request_impl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/application_manager/include/application_manager/commands') diff --git a/src/components/application_manager/include/application_manager/commands/command_request_impl.h b/src/components/application_manager/include/application_manager/commands/command_request_impl.h index aa3c216d4d..614f86a6f1 100644 --- a/src/components/application_manager/include/application_manager/commands/command_request_impl.h +++ b/src/components/application_manager/include/application_manager/commands/command_request_impl.h @@ -49,7 +49,7 @@ struct ResponseInfo { , interface_state(HmiInterfaces::STATE_NOT_RESPONSE) , is_ok(false) , is_unsupported_resource(false) - , is_invalid_enum(false) {} + , is_not_used(false) {} ResponseInfo(hmi_apis::Common_Result::eType result, HmiInterfaces::InterfaceID interface) : result_code(result) @@ -57,13 +57,13 @@ struct ResponseInfo { , interface_state(HmiInterfaces::STATE_NOT_RESPONSE) , is_ok(false) , is_unsupported_resource(false) - , is_invalid_enum(false) {} + , is_not_used(false) {} hmi_apis::Common_Result::eType result_code; HmiInterfaces::InterfaceID interface; HmiInterfaces::InterfaceState interface_state; bool is_ok; bool is_unsupported_resource; - bool is_invalid_enum; + bool is_not_used; }; namespace NsSmart = NsSmartDeviceLink::NsSmartObjects; -- cgit v1.2.1