summaryrefslogtreecommitdiff
path: root/src/components/application_manager/test/mock_message_helper.cc
diff options
context:
space:
mode:
authorFrank Ronneburg <fronneburg@xevo.com>2018-04-12 07:36:02 +0900
committerfronneburg <fronneburg@xevo.com>2018-04-11 17:03:27 -0700
commite0caccd349cd66a21508c00bcfab8f288d688d86 (patch)
tree2147dcb99c82ad8769496089b4958ed4d68d9518 /src/components/application_manager/test/mock_message_helper.cc
parent4bc109858e8f16c3b37eab3b766976d6039dbf09 (diff)
downloadsdl_core-e0caccd349cd66a21508c00bcfab8f288d688d86.tar.gz
Merge pull request #236 in NAR/sdl-core from fix/build_errors_in_tests to feature/Ford-WiFi
* commit 'd529b059e47f170c77137ac1edf10c0696a7bb6b': fallout from other changes in the Ford-WiFi branch revert device_type hacks revert device_type hacks UT: support newly added Application::deferred_resumption_hmi_level() UT: support newly added ApplicationManager::CheckResumptionRequiredTransportAvailable() UT: update test cases to support new protocol frames UT: fix CheckStringContainer() test case UT: fix test case TcpClientListenerTest IsInitialised UT: support newly added TransportAdapter::GetDeviceType() UT: support newly added transport_manager_tcp_adapter_network_interface() method Remove invalid test cases Add/fix mock methods for testing Update test code to add new arg in Connection::AddNewSession() and AddNewService() Update test code related to SessionContext struct Update test codes related to SendEndService() Update DeviceInfo struct in test codes Add mock methods for testing
Diffstat (limited to 'src/components/application_manager/test/mock_message_helper.cc')
-rw-r--r--src/components/application_manager/test/mock_message_helper.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/application_manager/test/mock_message_helper.cc b/src/components/application_manager/test/mock_message_helper.cc
index 24bba63e71..4d33b3046f 100644
--- a/src/components/application_manager/test/mock_message_helper.cc
+++ b/src/components/application_manager/test/mock_message_helper.cc
@@ -418,6 +418,16 @@ void MessageHelper::SendUIChangeRegistrationRequestToHMI(
->SendUIChangeRegistrationRequestToHMI(app, app_mngr);
}
+bool MessageHelper::CreateDeviceInfo(
+ connection_handler::DeviceHandle device_handle,
+ const protocol_handler::SessionObserver& session_observer,
+ const policy::PolicyHandlerInterface& policy_handler,
+ ApplicationManager& app_mngr,
+ smart_objects::SmartObject* output) {
+ return MockMessageHelper::message_helper_mock()->CreateDeviceInfo(
+ device_handle, session_observer, policy_handler, app_mngr, output);
+}
+
bool MessageHelper::CreateHMIApplicationStruct(
ApplicationConstSharedPtr app,
const protocol_handler::SessionObserver& session_observer,