diff options
author | Alexander Kutsan <akutsan@luxoft.com> | 2018-02-06 16:18:29 +0200 |
---|---|---|
committer | Ira Lytvynenko (GitHub) <ILytvynenko@luxoft.com> | 2018-06-26 12:01:42 +0300 |
commit | 210c3fa42d65f59c295816b23d8c33fdab005acb (patch) | |
tree | 31790010166e81a1129f99213f97610ff0ae50ad /src/components/include | |
parent | adcca686d6374d5fdd2e24414516a61847ea8b9f (diff) | |
download | sdl_core-210c3fa42d65f59c295816b23d8c33fdab005acb.tar.gz |
Plugin manager and plugin interface creation
add Optional type
Fix compile warnings and use optional for returning plugin
Add descriptions to optional
Fix review issues
Fix header guards
Fix build with unit tests after commands factory refactoring
- Change enum name from command origin to command source
- Create Mock for command factory class
- Fix mock_app_manager after refactoring
- Fix failed unit test
Diffstat (limited to 'src/components/include')
-rw-r--r-- | src/components/include/test/application_manager/mock_application_manager.h | 2 | ||||
-rw-r--r-- | src/components/include/test/application_manager/mock_rpc_service.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/components/include/test/application_manager/mock_application_manager.h b/src/components/include/test/application_manager/mock_application_manager.h index 3a9afbfbdf..4caa9393f6 100644 --- a/src/components/include/test/application_manager/mock_application_manager.h +++ b/src/components/include/test/application_manager/mock_application_manager.h @@ -127,6 +127,8 @@ class MockApplicationManager : public application_manager::ApplicationManager { MOCK_METHOD0(hmi_capabilities, application_manager::HMICapabilities&()); MOCK_CONST_METHOD0(hmi_capabilities, const application_manager::HMICapabilities&()); + MOCK_CONST_METHOD0(GetCommandFactory, application_manager::CommandFactory&()); + MOCK_CONST_METHOD0(is_audio_pass_thru_active, bool()); MOCK_METHOD2(ProcessQueryApp, void(const smart_objects::SmartObject& sm_object, const uint32_t connection_key)); 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 98ed57d77e..983e969b0a 100644 --- a/src/components/include/test/application_manager/mock_rpc_service.h +++ b/src/components/include/test/application_manager/mock_rpc_service.h @@ -16,7 +16,7 @@ class MockRPCService : public application_manager::rpc_service::RPCService { MOCK_METHOD2( ManageMobileCommand, bool(const application_manager::commands::MessageSharedPtr message, - application_manager::commands::Command::CommandOrigin origin)); + application_manager::commands::Command::CommandSource origin)); MOCK_METHOD2(SendMessageToMobile, void(application_manager::commands::MessageSharedPtr, bool)); MOCK_METHOD1( |