diff options
Diffstat (limited to 'src/components/application_manager/test/include')
2 files changed, 18 insertions, 0 deletions
diff --git a/src/components/application_manager/test/include/application_manager/commands/commands_test.h b/src/components/application_manager/test/include/application_manager/commands/commands_test.h index a047de81b9..fdaef2c716 100644 --- a/src/components/application_manager/test/include/application_manager/commands/commands_test.h +++ b/src/components/application_manager/test/include/application_manager/commands/commands_test.h @@ -245,6 +245,21 @@ MATCHER_P(HMIResultCodeIs, result_code, "") { .asInt()); } +MATCHER_P3( + HMIMessageParametersAre, correlation_id, function_id, result_code, "") { + using namespace application_manager; + + const bool corr_ids_eq = + correlation_id == + (*arg)[strings::params][strings::correlation_id].asInt(); + const bool func_ids_eq = + (*arg)[strings::params][strings::function_id].asInt() == function_id; + const bool res_codes_eq = + (*arg)[strings::params][hmi_response::code].asInt() == result_code; + + return corr_ids_eq && func_ids_eq && res_codes_eq; +} + MATCHER_P3(MobileResponseIs, result_code, result_info, result_success, "") { mobile_apis::Result::eType code = static_cast<mobile_apis::Result::eType>( (*arg)[am::strings::msg_params][am::strings::result_code].asInt()); diff --git a/src/components/application_manager/test/include/application_manager/mock_message_helper.h b/src/components/application_manager/test/include/application_manager/mock_message_helper.h index 072199082e..eb3c97bfff 100644 --- a/src/components/application_manager/test/include/application_manager/mock_message_helper.h +++ b/src/components/application_manager/test/include/application_manager/mock_message_helper.h @@ -269,6 +269,9 @@ class MockMessageHelper { void(ApplicationConstSharedPtr app, const bool is_unexpected_disconnect, ApplicationManager& app_mngr)); + MOCK_METHOD2(CreateOnAppPropertiesChangeNotification, + smart_objects::SmartObjectSPtr(const std::string& policy_app_id, + ApplicationManager& app_mngr)); MOCK_METHOD4(SendLaunchApp, void(const uint32_t connection_key, const std::string& urlSchema, |