summaryrefslogtreecommitdiff
path: root/src/components/application_manager/test/mock_message_helper.cc
diff options
context:
space:
mode:
authorKozoriz <kozorizandriy@gmail.com>2016-03-24 08:37:35 +0200
committerKozoriz <kozorizandriy@gmail.com>2016-03-31 17:54:09 +0300
commitb3d927f1b503f8ce5b9c2d9791357b9ce02446c9 (patch)
tree9a876a76180c85c6c400bf9448ebd1b2dbefc55f /src/components/application_manager/test/mock_message_helper.cc
parent42145c19f7bdfdb2683ba0efe3d70d1ca186d4d5 (diff)
downloadsdl_core-b3d927f1b503f8ce5b9c2d9791357b9ce02446c9.tar.gz
ApplicationManager tests correctives
After singletones removing
Diffstat (limited to 'src/components/application_manager/test/mock_message_helper.cc')
-rw-r--r--src/components/application_manager/test/mock_message_helper.cc31
1 files changed, 9 insertions, 22 deletions
diff --git a/src/components/application_manager/test/mock_message_helper.cc b/src/components/application_manager/test/mock_message_helper.cc
index deec54e61f..e460928123 100644
--- a/src/components/application_manager/test/mock_message_helper.cc
+++ b/src/components/application_manager/test/mock_message_helper.cc
@@ -31,13 +31,15 @@
*/
#include "application_manager/message_helper.h"
-#include "mock_message_helper.h"
+#include "application_manager/mock_message_helper.h"
+#include "application_manager/policies/policy_handler.h"
namespace application_manager {
void MessageHelper::SendHashUpdateNotification(uint32_t const app_id) {
MockMessageHelper::message_helper_mock()->SendHashUpdateNotification(app_id);
}
+
void MessageHelper::SendNaviStartStream(int32_t connection_key) {
MockMessageHelper::message_helper_mock()->SendNaviStartStream(connection_key);
}
@@ -57,11 +59,6 @@ void MessageHelper::SendOnDataStreaming(protocol_handler::ServiceType service,
available);
}
-uint32_t MessageHelper::GetAppCommandLimit(const std::string& policy_app_id) {
- return MockMessageHelper::message_helper_mock()->GetAppCommandLimit(
- policy_app_id);
-}
-
smart_objects::SmartObjectSPtr GetHashUpdateNotification(
const uint32_t app_id) {
return MockMessageHelper::message_helper_mock()->GetHashUpdateNotification(
@@ -208,10 +205,6 @@ hmi_apis::Common_Language::eType MessageHelper::CommonLanguageFromString(const s
language);
}
-std::string MessageHelper::MobileLanguageToString(const mobile_apis::Language::eType language) {
- return MockMessageHelper::message_helper_mock()->MobileLanguageToString(language);
-}
-
mobile_apis::Language::eType MessageHelper::MobileLanguageFromString(const std::string& language) {
return MockMessageHelper::message_helper_mock()->MobileLanguageFromString(language);
}
@@ -284,19 +277,13 @@ std::string MessageHelper::CommonLanguageToString(
return MockMessageHelper::message_helper_mock()->CommonLanguageToString(lang);
}
-bool MessageHelper::CheckWithPolicy(
- mobile_apis::SystemAction::eType system_action,
- const std::string& app_mobile_id) {
- return MockMessageHelper::message_helper_mock()->CheckWithPolicy(
- system_action, app_mobile_id);
-}
-
-smart_objects::SmartObjectSPtr MessageHelper::GetBCActivateAppRequestToHMI(
- ApplicationConstSharedPtr app,
- hmi_apis::Common_HMILevel::eType hmi_level,
+smart_objects::SmartObjectSPtr MessageHelper::GetBCActivateAppRequestToHMI(ApplicationConstSharedPtr app,
+ const protocol_handler::SessionObserver& session_observer,
+ const policy::PolicyHandlerInterface &policy_handler,
+ hmi_apis::Common_HMILevel::eType level,
bool send_policy_priority) {
- return MockMessageHelper::message_helper_mock()->
- GetBCActivateAppRequestToHMI(app, hmi_level, send_policy_priority);
+ return MockMessageHelper::message_helper_mock()->GetBCActivateAppRequestToHMI(
+ app, session_observer, policy_handler, level, send_policy_priority);
}
} // namespace application_manager