diff options
author | Andrey Oleynik (GitHub) <dev-gh@users.noreply.github.com> | 2017-11-02 17:52:16 +0200 |
---|---|---|
committer | JackLivio <jack@livio.io> | 2017-11-02 11:52:16 -0400 |
commit | 5f9a93c34aac15c04181ecb28180dc6762f2daac (patch) | |
tree | 39b12d832338fd72bfb0c77402b1b3b7ce0c9cd4 /src/components/application_manager/include | |
parent | a63a225f1bf20ccb78ba17e79613bdc095a85c14 (diff) | |
download | sdl_core-5f9a93c34aac15c04181ecb28180dc6762f2daac.tar.gz |
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. <interface>.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
Diffstat (limited to 'src/components/application_manager/include')
-rw-r--r-- | src/components/application_manager/include/application_manager/commands/command_request_impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; |