summaryrefslogtreecommitdiff
path: root/src/components/include
diff options
context:
space:
mode:
authorJacob Keeler <jacob.keeler@livioradio.com>2020-06-10 17:12:55 -0400
committerGitHub <noreply@github.com>2020-06-10 17:12:55 -0400
commitef2b88520b4224390ffd332f737fdf5573def60e (patch)
tree15533d732dcccd1682975c9f141c718c4720f314 /src/components/include
parent6ebc91a2db98493ac002c56f3555b33a301eee1b (diff)
downloadsdl_core-ef2b88520b4224390ffd332f737fdf5573def60e.tar.gz
Filter unknown enums when removing unknown parameters (#3385)
* Add enum filtering step to applySchema This step is triggered when `remove_unknown_parameters` is enabled * Add unit tests * Pass warning info to message response after processing
Diffstat (limited to 'src/components/include')
-rw-r--r--src/components/include/application_manager/rpc_service.h6
-rw-r--r--src/components/include/test/application_manager/mock_rpc_service.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/components/include/application_manager/rpc_service.h b/src/components/include/application_manager/rpc_service.h
index 4a80733ee7..f98cd826f9 100644
--- a/src/components/include/application_manager/rpc_service.h
+++ b/src/components/include/application_manager/rpc_service.h
@@ -54,10 +54,16 @@ class RPCService {
* @brief ManageMobileCommand convert message to mobile command and execute it
* @param message pointer to received message
* @param origin origin of command
+ * @param warning_info warning message to send on a successful response. Only
+ * applies to requests from mobile.
* @return true if command is executed, otherwise return false
*/
virtual bool ManageMobileCommand(const commands::MessageSharedPtr message,
commands::Command::CommandSource source) = 0;
+ virtual bool ManageMobileCommand(const commands::MessageSharedPtr message,
+ commands::Command::CommandSource source,
+ const std::string warning_info) = 0;
+
/**
* @brief ManageHMICommand convert message to HMI command and execute it
* @param message pointer to received message
diff --git a/src/components/include/test/application_manager/mock_rpc_service.h b/src/components/include/test/application_manager/mock_rpc_service.h
index ed06b930d8..66de650ab6 100644
--- a/src/components/include/test/application_manager/mock_rpc_service.h
+++ b/src/components/include/test/application_manager/mock_rpc_service.h
@@ -21,6 +21,11 @@ class MockRPCService : public application_manager::rpc_service::RPCService {
ManageMobileCommand,
bool(const application_manager::commands::MessageSharedPtr message,
application_manager::commands::Command::CommandSource origin));
+ MOCK_METHOD3(
+ ManageMobileCommand,
+ bool(const application_manager::commands::MessageSharedPtr message,
+ application_manager::commands::Command::CommandSource origin,
+ const std::string warning_info));
MOCK_METHOD2(SendMessageToMobile,
void(application_manager::commands::MessageSharedPtr, bool));
MOCK_METHOD1(