summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2019-03-17 15:40:55 -0400
committerGitHub <noreply@github.com>2019-03-17 15:40:55 -0400
commit12c02a9406277a43c43b0b069a12595534f6f7b5 (patch)
treef26bb8b6530fd786946fcf4df00774792342a2c6 /src/components/application_manager/include/application_manager
parent79ce3c927bf6b1c661bfb8174031370694ea9ff6 (diff)
parentc6020f483bcd9739779ce4fa87c0065f0ae7cac8 (diff)
downloadsdl_core-12c02a9406277a43c43b0b069a12595534f6f7b5.tar.gz
Merge pull request #2842 from smartdevicelink/tests/cloud_app_disconnect+fix
Cloud App Disconnect Unit tests and fix
Diffstat (limited to 'src/components/application_manager/include/application_manager')
-rw-r--r--src/components/application_manager/include/application_manager/application_manager_impl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/application_manager/include/application_manager/application_manager_impl.h b/src/components/application_manager/include/application_manager/application_manager_impl.h
index cba9cdfd79..738458ef26 100644
--- a/src/components/application_manager/include/application_manager/application_manager_impl.h
+++ b/src/components/application_manager/include/application_manager/application_manager_impl.h
@@ -1581,6 +1581,15 @@ class ApplicationManagerImpl
rpc_service_.reset(rpc_service);
}
+ /**
+ * @brief set a mock rpc service directly. Only for unit
+ * testing.
+ * @param mock_app the mock rpc service to be assigned
+ */
+ void SetMockPolicyHandler(policy::PolicyHandlerInterface* policy_handler) {
+ policy_handler_.reset(policy_handler);
+ }
+
virtual void SetPluginManager(
std::unique_ptr<plugin_manager::RPCPluginManager>& plugin_manager)
OVERRIDE {