diff options
author | Alexander <akutsan@luxoft.com> | 2018-06-18 10:03:43 +0300 |
---|---|---|
committer | Ira Lytvynenko (GitHub) <ILytvynenko@luxoft.com> | 2018-06-27 18:20:30 +0300 |
commit | 0673266ae095288bfed3c8916af298584510556b (patch) | |
tree | fecbde25f017a437af4b83d6ad65431f26dcc3e7 | |
parent | 98a80908d730468be62b5ce211eda4ba652a892f (diff) | |
download | sdl_core-0673266ae095288bfed3c8916af298584510556b.tar.gz |
Remove all usage of SubscribedIVI from application manager
18 files changed, 13 insertions, 165 deletions
diff --git a/src/components/application_manager/include/application_manager/application.h b/src/components/application_manager/include/application_manager/application.h index 628a6a7b07..0166624ef2 100644 --- a/src/components/application_manager/include/application_manager/application.h +++ b/src/components/application_manager/include/application_manager/application.h @@ -180,7 +180,6 @@ class DynamicApplicationData { virtual const smart_objects::SmartObject* show_command() const = 0; virtual const smart_objects::SmartObject* tbt_show_command() const = 0; virtual DataAccessor<ButtonSubscriptions> SubscribedButtons() const = 0; - virtual DataAccessor<VehicleInfoSubscriptions> SubscribedIVI() const = 0; virtual const smart_objects::SmartObject* keyboard_props() const = 0; virtual const smart_objects::SmartObject* menu_title() const = 0; virtual const smart_objects::SmartObject* menu_icon() const = 0; @@ -899,12 +898,6 @@ class Application : public virtual InitialApplicationData, */ virtual const std::list<AppExtensionPtr>& Extensions() const = 0; - /** - * @brief Get list of subscriptions to vehicle info notifications - * @return list of subscriptions to vehicle info notifications - */ - virtual const VehicleInfoSubscriptions& SubscribesIVI() const = 0; - protected: mutable sync_primitives::Lock hmi_states_lock_; diff --git a/src/components/application_manager/include/application_manager/application_impl.h b/src/components/application_manager/include/application_manager/application_impl.h index 72a01ff86d..496f591a50 100644 --- a/src/components/application_manager/include/application_manager/application_impl.h +++ b/src/components/application_manager/include/application_manager/application_impl.h @@ -376,12 +376,6 @@ class ApplicationImpl : public virtual Application, */ void set_hmi_level(const mobile_api::HMILevel::eType& hmi_level) OVERRIDE; - /** - * @brief Get list of subscriptions to vehicle info notifications - * @return list of subscriptions to vehicle info notifications - */ - const VehicleInfoSubscriptions& SubscribesIVI() const OVERRIDE; - void PushMobileMessage( smart_objects::SmartObjectSPtr mobile_message) OVERRIDE; diff --git a/src/components/application_manager/include/application_manager/message_helper.h b/src/components/application_manager/include/application_manager/message_helper.h index c91bd43e72..6590098a01 100644 --- a/src/components/application_manager/include/application_manager/message_helper.h +++ b/src/components/application_manager/include/application_manager/message_helper.h @@ -226,20 +226,6 @@ class MessageHelper { static smart_objects::SmartObjectSPtr CreateSetAppIcon( const std::string& path_to_icon, uint32_t app_id); - DEPRECATED static bool SendIVISubscribtions(const uint32_t app_id, - ApplicationManager& app_mngr); - /** - * @brief Sends IVI subscription requests - */ - static bool SendIVISubscriptions(const uint32_t app_id, - ApplicationManager& app_mngr); - - /** - * @brief Returns IVI subscription requests - */ - static smart_objects::SmartObjectList GetIVISubscriptionRequests( - ApplicationSharedPtr app, ApplicationManager& app_mngr); - /** * @brief Sends button subscription notification */ diff --git a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/commands/mobile/subscribe_vehicle_data_request.h b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/commands/mobile/subscribe_vehicle_data_request.h index 5859d724ca..d324d5ca24 100644 --- a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/commands/mobile/subscribe_vehicle_data_request.h +++ b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/commands/mobile/subscribe_vehicle_data_request.h @@ -40,6 +40,7 @@ #include "application_manager/commands/command_request_impl.h" #include "application_manager/application.h" #include "utils/macro.h" +#include "vehicle_info_plugin/vehicle_info_app_extension.h" namespace vehicle_info_plugin { namespace app_mngr = application_manager; @@ -158,17 +159,17 @@ class SubscribeVehicleDataRequest * @brief VI parameters which had been already subscribed by another apps * befor particular app subscribed for these parameters */ - app_mngr::VehicleInfoSubscriptions vi_already_subscribed_by_another_apps_; + VehicleInfoSubscriptions vi_already_subscribed_by_another_apps_; /** * @brief VI parameters which had been subscribed already by particular app */ - app_mngr::VehicleInfoSubscriptions vi_already_subscribed_by_this_app_; + VehicleInfoSubscriptions vi_already_subscribed_by_this_app_; /** * @brief VI parameters which wait for subscribe after HMI respond */ - app_mngr::VehicleInfoSubscriptions vi_waiting_for_subscribe_; + VehicleInfoSubscriptions vi_waiting_for_subscribe_; DISALLOW_COPY_AND_ASSIGN(SubscribeVehicleDataRequest); }; diff --git a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/commands/mobile/unsubscribe_vehicle_data_request.h b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/commands/mobile/unsubscribe_vehicle_data_request.h index 6a3fb2a0b9..5730048b85 100644 --- a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/commands/mobile/unsubscribe_vehicle_data_request.h +++ b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/include/vehicle_info_plugin/commands/mobile/unsubscribe_vehicle_data_request.h @@ -37,6 +37,7 @@ #include "application_manager/commands/command_request_impl.h" #include "application_manager/application.h" #include "utils/macro.h" +#include "vehicle_info_plugin/vehicle_info_app_extension.h" namespace vehicle_info_plugin { namespace app_mngr = application_manager; @@ -117,12 +118,12 @@ class UnsubscribeVehicleDataRequest * @brief VI parameters which still being subscribed by another apps after * particular app had been unsubscribed from these parameters */ - app_mngr::VehicleInfoSubscriptions vi_still_subscribed_by_another_apps_; + VehicleInfoSubscriptions vi_still_subscribed_by_another_apps_; /** * @brief VI parameters which had been unsubscribed already by particular app */ - app_mngr::VehicleInfoSubscriptions vi_already_unsubscribed_by_this_app_; + VehicleInfoSubscriptions vi_already_unsubscribed_by_this_app_; DISALLOW_COPY_AND_ASSIGN(UnsubscribeVehicleDataRequest); }; diff --git a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/mobile/subscribe_vehicle_data_request.cc b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/mobile/subscribe_vehicle_data_request.cc index dc29a477e8..27716855a2 100644 --- a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/mobile/subscribe_vehicle_data_request.cc +++ b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/mobile/subscribe_vehicle_data_request.cc @@ -267,7 +267,7 @@ void SubscribeVehicleDataRequest::on_event(const event_engine::Event& event) { if (!vi_waiting_for_subscribe_.empty()) { LOG4CXX_DEBUG(logger_, "Subscribing to all pending VehicleData"); - app_mngr::VehicleInfoSubscriptions::const_iterator key = + VehicleInfoSubscriptions::const_iterator key = vi_waiting_for_subscribe_.begin(); for (; key != vi_waiting_for_subscribe_.end(); ++key) { auto& ext = VehicleInfoAppExtension::ExtractVIExtension(*app); @@ -310,7 +310,7 @@ void SubscribeVehicleDataRequest::AddAlreadySubscribedVI( return std::string(); }; - app_mngr::VehicleInfoSubscriptions::const_iterator it_same_app = + VehicleInfoSubscriptions::const_iterator it_same_app = vi_already_subscribed_by_this_app_.begin(); for (; vi_already_subscribed_by_this_app_.end() != it_same_app; ++it_same_app) { @@ -319,7 +319,7 @@ void SubscribeVehicleDataRequest::AddAlreadySubscribedVI( msg_params[vi_to_string(*it_same_app)][strings::data_type] = *it_same_app; } - app_mngr::VehicleInfoSubscriptions::const_iterator it_another_app = + VehicleInfoSubscriptions::const_iterator it_another_app = vi_already_subscribed_by_another_apps_.begin(); for (; vi_already_subscribed_by_another_apps_.end() != it_another_app; ++it_another_app) { @@ -399,7 +399,7 @@ void SubscribeVehicleDataRequest::CheckVISubscriptions( smart_objects::SmartObject& out_request_params, bool& out_result) { // counter for items to subscribe - app_mngr::VehicleInfoSubscriptions::size_type items_to_subscribe = 0; + VehicleInfoSubscriptions::size_type items_to_subscribe = 0; // counter for subscribed items by application uint32_t subscribed_items = 0; diff --git a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/mobile/unsubscribe_vehicle_data_request.cc b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/mobile/unsubscribe_vehicle_data_request.cc index e966a3791c..de419894c5 100644 --- a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/mobile/unsubscribe_vehicle_data_request.cc +++ b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/mobile/unsubscribe_vehicle_data_request.cc @@ -403,7 +403,7 @@ void UnsubscribeVehicleDataRequest::AddAlreadyUnsubscribedVI( smart_objects::SmartObject& response) const { LOG4CXX_AUTO_TRACE(logger_); using namespace mobile_apis; - app_mngr::VehicleInfoSubscriptions::const_iterator it_same_app = + VehicleInfoSubscriptions::const_iterator it_same_app = vi_already_unsubscribed_by_this_app_.begin(); for (; vi_already_unsubscribed_by_this_app_.end() != it_same_app; ++it_same_app) { @@ -411,7 +411,7 @@ void UnsubscribeVehicleDataRequest::AddAlreadyUnsubscribedVI( VehicleDataResultCode::VDRC_DATA_NOT_SUBSCRIBED; } - app_mngr::VehicleInfoSubscriptions::const_iterator it_another_app = + VehicleInfoSubscriptions::const_iterator it_another_app = vi_still_subscribed_by_another_apps_.begin(); for (; vi_still_subscribed_by_another_apps_.end() != it_another_app; ++it_another_app) { diff --git a/src/components/application_manager/src/application_impl.cc b/src/components/application_manager/src/application_impl.cc index 53ec040064..3242dace4d 100644 --- a/src/components/application_manager/src/application_impl.cc +++ b/src/components/application_manager/src/application_impl.cc @@ -869,11 +869,6 @@ DataAccessor<ButtonSubscriptions> ApplicationImpl::SubscribedButtons() const { button_lock_ptr_); } -DataAccessor<VehicleInfoSubscriptions> ApplicationImpl::SubscribedIVI() const { - return DataAccessor<VehicleInfoSubscriptions>(subscribed_vehicle_info_, - vi_lock_ptr_); -} - const std::string& ApplicationImpl::curHash() const { return hash_val_; } diff --git a/src/components/application_manager/src/message_helper/message_helper.cc b/src/components/application_manager/src/message_helper/message_helper.cc index f2c47ea12d..3218b79b46 100644 --- a/src/components/application_manager/src/message_helper/message_helper.cc +++ b/src/components/application_manager/src/message_helper/message_helper.cc @@ -1044,84 +1044,6 @@ smart_objects::SmartObjectSPtr MessageHelper::CreateSetAppIcon( return set_icon; } -bool MessageHelper::SendIVISubscribtions(const uint32_t app_id, - ApplicationManager& app_mngr) { - return SendIVISubscriptions(app_id, app_mngr); -} - -bool MessageHelper::SendIVISubscriptions(const uint32_t app_id, - ApplicationManager& app_mngr) { - LOG4CXX_AUTO_TRACE(logger_); - - bool result = true; - ApplicationSharedPtr app = app_mngr.application(app_id); - - if (!app.valid()) { - LOG4CXX_ERROR(logger_, "Invalid application " << app_id); - return result; - } - - smart_objects::SmartObjectList requests = - GetIVISubscriptionRequests(app, app_mngr); - for (smart_objects::SmartObjectList::const_iterator it = requests.begin(); - it != requests.end(); - ++it) { - if (!app_mngr.GetRPCService().ManageHMICommand(*it)) { - result = false; - } - } - return result; -} - -smart_objects::SmartObjectList MessageHelper::GetIVISubscriptionRequests( - ApplicationSharedPtr app, ApplicationManager& app_mngr) { - LOG4CXX_AUTO_TRACE(logger_); - - smart_objects::SmartObjectList hmi_requests; - if (!app.valid()) { - LOG4CXX_ERROR(logger_, "Invalid application pointer "); - return hmi_requests; - } - - smart_objects::SmartObject msg_params = - smart_objects::SmartObject(smart_objects::SmartType_Map); - msg_params[strings::app_id] = app->app_id(); - const VehicleData& vehicle_data = MessageHelper::vehicle_data_; - VehicleData::const_iterator ivi_it = vehicle_data.begin(); - DataAccessor<VehicleInfoSubscriptions> vi_accessor = app->SubscribedIVI(); - const VehicleInfoSubscriptions& subscriptions = vi_accessor.GetData(); - - for (; vehicle_data.end() != ivi_it; ++ivi_it) { - mobile_apis::VehicleDataType::eType type_id = ivi_it->second; - if (subscriptions.end() != subscriptions.find(type_id)) { - std::string key_name = ivi_it->first; - msg_params[key_name] = true; - } - } - -#ifdef HMI_JSON_API - smart_objects::SmartObjectSPtr request = MessageHelper::CreateModuleInfoSO( - hmi_apis::FunctionID::VehicleInfo_SubscribeVehicleData, app_mngr); - (*request)[strings::msg_params] = msg_params; - hmi_requests.push_back(request); -#endif // #ifdef HMI_JSON_API -#ifdef HMI_DBUS_API - // Generate list of ivi_subrequests - for (size_t i = 0; i < sizeof(ivi_subrequests) / sizeof(ivi_subrequests[0]); - ++i) { - const VehicleInfo_Requests& sr = ivi_subrequests[i]; - if (true == msg_params.keyExists(sr.str) && - true == msg_params[sr.str].asBool()) { - smart_objects::SmartObjectSPtr request = - MessageHelper::CreateModuleInfoSO(sr.func_id, app_mngr); - (*request)[strings::msg_params] = msg_params; - hmi_requests.push_back(request); - } - } -#endif // #ifdef HMI_DBUS_API - return hmi_requests; -} - void MessageHelper::SendOnButtonSubscriptionNotification( uint32_t app_id, hmi_apis::Common_ButtonName::eType button, diff --git a/src/components/application_manager/src/resumption/resumption_data.cc b/src/components/application_manager/src/resumption/resumption_data.cc index e1b86ae772..72215dcf97 100644 --- a/src/components/application_manager/src/resumption/resumption_data.cc +++ b/src/components/application_manager/src/resumption/resumption_data.cc @@ -159,9 +159,6 @@ smart_objects::SmartObject ResumptionData::GetApplicationSubscriptions( strings::application_buttons, subscriptions); - DataAccessor<VehicleInfoSubscriptions> vi_accessor = - application->SubscribedIVI(); - for (auto extension : application->Extensions()) { extension->SaveResumptionData(subscriptions); } diff --git a/src/components/application_manager/test/application_helper_test.cc b/src/components/application_manager/test/application_helper_test.cc index 25cd13fcad..70772140c4 100644 --- a/src/components/application_manager/test/application_helper_test.cc +++ b/src/components/application_manager/test/application_helper_test.cc @@ -134,8 +134,6 @@ TEST_F(ApplicationHelperTest, RecallApplicationData_ExpectAppDataReset) { const uint32_t cmd_id = 1; const uint32_t menu_id = 2; const uint32_t choice_set_id = 3; - const mobile_apis::VehicleDataType::eType vi = - mobile_apis::VehicleDataType::VEHICLEDATA_ACCPEDAL; const mobile_apis::ButtonName::eType button = mobile_apis::ButtonName::AC; smart_objects::SmartObject cmd; diff --git a/src/components/application_manager/test/include/application_manager/mock_application.h b/src/components/application_manager/test/include/application_manager/mock_application.h index f3e316e5bb..952b485e48 100644 --- a/src/components/application_manager/test/include/application_manager/mock_application.h +++ b/src/components/application_manager/test/include/application_manager/mock_application.h @@ -203,9 +203,6 @@ class MockApplication : public ::application_manager::Application { MOCK_CONST_METHOD0( SubscribedButtons, DataAccessor< ::application_manager::ButtonSubscriptions>()); - MOCK_CONST_METHOD0( - SubscribedIVI, - DataAccessor< ::application_manager::VehicleInfoSubscriptions>()); MOCK_CONST_METHOD0(keyboard_props, const smart_objects::SmartObject*()); MOCK_CONST_METHOD0(menu_title, const smart_objects::SmartObject*()); MOCK_CONST_METHOD0(menu_icon, const smart_objects::SmartObject*()); @@ -329,8 +326,6 @@ class MockApplication : public ::application_manager::Application { MOCK_METHOD1(RemoveExtension, bool(application_manager::AppExtensionUID uid)); MOCK_CONST_METHOD0(Extensions, const std::list<application_manager::AppExtensionPtr>&()); - MOCK_CONST_METHOD0(SubscribesIVI, - const application_manager::VehicleInfoSubscriptions&()); MOCK_CONST_METHOD0(is_remote_control_supported, bool()); MOCK_METHOD1(set_remote_control_supported, void(const bool allow)); }; 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 e8b0473c50..fe17eb6788 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 @@ -177,8 +177,6 @@ class MockMessageHelper { MOCK_METHOD1(CreateAddVRCommandRequestFromChoiceToHMI, smart_objects::SmartObjectList(ApplicationConstSharedPtr app)); MOCK_METHOD1(SendGlobalPropertiesToHMI, void(ApplicationConstSharedPtr app)); - MOCK_METHOD1(GetIVISubscriptionRequests, - smart_objects::SmartObjectList(ApplicationSharedPtr app)); MOCK_METHOD3(VerifyTtsFiles, mobile_apis::Result::eType(smart_objects::SmartObject& message, ApplicationConstSharedPtr app, diff --git a/src/components/application_manager/test/include/application_manager/resumption_data_test.h b/src/components/application_manager/test/include/application_manager/resumption_data_test.h index 85a8ed3740..9e8e44b7fe 100644 --- a/src/components/application_manager/test/include/application_manager/resumption_data_test.h +++ b/src/components/application_manager/test/include/application_manager/resumption_data_test.h @@ -142,7 +142,6 @@ class ResumptionDataTest : public ::testing::Test { am::AppFilesMap app_files_map_; am::ButtonSubscriptions btn_subscr; - am::VehicleInfoSubscriptions ivi; std::shared_ptr<sync_primitives::Lock> sublock_ptr_; std::shared_ptr<sync_primitives::Lock> comlock_ptr_; diff --git a/src/components/application_manager/test/message_helper/message_helper_test.cc b/src/components/application_manager/test/message_helper/message_helper_test.cc index 456178cddb..e43348cc80 100644 --- a/src/components/application_manager/test/message_helper/message_helper_test.cc +++ b/src/components/application_manager/test/message_helper/message_helper_test.cc @@ -716,25 +716,6 @@ TEST_F(MessageHelperTest, VerifySoftButtonString_CorrectStrings_True) { } TEST_F(MessageHelperTest, - GetIVISubscriptionRequests_ValidApplication_HmiRequestNotEmpty) { - // Creating sharedPtr to MockApplication - MockApplicationSharedPtr appSharedMock = utils::MakeShared<MockApplication>(); - // Creating data acessor - application_manager::VehicleInfoSubscriptions vis; - DataAccessor<application_manager::VehicleInfoSubscriptions> data_accessor( - vis, std::make_shared<sync_primitives::Lock>(true)); - // Calls for ApplicationManager - EXPECT_CALL(*appSharedMock, app_id()).WillOnce(Return(1u)); - EXPECT_CALL(*appSharedMock, SubscribedIVI()).WillOnce(Return(data_accessor)); - - smart_objects::SmartObjectList outList = - MessageHelper::GetIVISubscriptionRequests(appSharedMock, - mock_application_manager); - // Expect not empty request - EXPECT_FALSE(outList.empty()); -} - -TEST_F(MessageHelperTest, ProcessSoftButtons_SmartObjectWithoutButtonsKey_Success) { // Creating sharedPtr to MockApplication MockApplicationSharedPtr appSharedMock = utils::MakeShared<MockApplication>(); diff --git a/src/components/application_manager/test/mock_message_helper.cc b/src/components/application_manager/test/mock_message_helper.cc index 23dea01c8c..fc2136cdd8 100644 --- a/src/components/application_manager/test/mock_message_helper.cc +++ b/src/components/application_manager/test/mock_message_helper.cc @@ -312,12 +312,6 @@ void MessageHelper::SendGlobalPropertiesToHMI(ApplicationConstSharedPtr app, app); } -smart_objects::SmartObjectList MessageHelper::GetIVISubscriptionRequests( - ApplicationSharedPtr app, ApplicationManager& app_mngr) { - return MockMessageHelper::message_helper_mock()->GetIVISubscriptionRequests( - app); -} - mobile_apis::Result::eType MessageHelper::VerifyTtsFiles( smart_objects::SmartObject& message, ApplicationConstSharedPtr app, diff --git a/src/components/application_manager/test/resumption/resume_ctrl_test.cc b/src/components/application_manager/test/resumption/resume_ctrl_test.cc index 79a7ac95cb..e0020af38a 100644 --- a/src/components/application_manager/test/resumption/resume_ctrl_test.cc +++ b/src/components/application_manager/test/resumption/resume_ctrl_test.cc @@ -481,8 +481,6 @@ TEST_F(ResumeCtrlTest, StartResumption_AppWithSubscriptionToIVI) { EXPECT_CALL(*app_mock_, set_grammar_id(kTestGrammarId_)); smart_objects::SmartObjectList requests; - EXPECT_CALL(*application_manager::MockMessageHelper::message_helper_mock(), - GetIVISubscriptionRequests(_)).WillRepeatedly(Return(requests)); EXPECT_CALL(*app_mock_, UpdateHash()); const bool res = res_ctrl_->StartResumption(app_mock_, kHash_); diff --git a/src/components/application_manager/test/resumption/resumption_data_test.cc b/src/components/application_manager/test/resumption/resumption_data_test.cc index a160f08daa..3ce3189c55 100644 --- a/src/components/application_manager/test/resumption/resumption_data_test.cc +++ b/src/components/application_manager/test/resumption/resumption_data_test.cc @@ -334,7 +334,6 @@ void ResumptionDataTest::PrepareData() { SetSubscriptions(); DataAccessor<am::ButtonSubscriptions> btn_sub(btn_subscr, btnlock_ptr_); - DataAccessor<am::VehicleInfoSubscriptions> ivi_access(ivi, ivilock_ptr_); ON_CALL(*app_mock, is_application_data_changed()).WillByDefault(Return(true)); @@ -364,7 +363,6 @@ void ResumptionDataTest::PrepareData() { ON_CALL(*app_mock, menu_icon()).WillByDefault(ReturnPointee(&menu_icon_)); ON_CALL(*app_mock, SubscribedButtons()).WillByDefault(Return(btn_sub)); - ON_CALL(*app_mock, SubscribedIVI()).WillByDefault(Return(ivi_access)); ON_CALL(*app_mock, getAppFiles()).WillByDefault(ReturnRef(app_files_map_)); } @@ -540,8 +538,6 @@ void ResumptionDataTest::SetKeyboardProperties() { void ResumptionDataTest::SetSubscriptions() { btn_subscr.insert(ButtonName::eType::CUSTOM_BUTTON); btn_subscr.insert(ButtonName::eType::OK); - ivi.insert(static_cast<mobile_apis::VehicleDataType::eType>(0)); - ivi.insert(static_cast<mobile_apis::VehicleDataType::eType>(5)); } } // namespace resumption_test |