diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/application_manager/test/resumption/resume_ctrl_test.cc | 42 |
1 files changed, 0 insertions, 42 deletions
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 151860ed15..c1c1b9fe8b 100644 --- a/src/components/application_manager/test/resumption/resume_ctrl_test.cc +++ b/src/components/application_manager/test/resumption/resume_ctrl_test.cc @@ -1272,48 +1272,6 @@ TEST_F( res_ctrl_->StartAppHmiStateResumption(mock_app_); } -TEST_F( - ResumeCtrlTest, - ResumptionLowVoltage_AppInFullUnregisteredOnTheBorderOfTimeFrame_HMILevelRestored) { - const mobile_apis::HMILevel::eType restored_test_type = eType::HMI_FULL; - const uint32_t time_offset = 5; - const uint32_t time_stamp = - time(nullptr) - resumption_delay_before_ign_ + time_offset; - smart_objects::SmartObject saved_app; - saved_app[application_manager::strings::hmi_level] = restored_test_type; - saved_app[application_manager::strings::time_stamp] = time_stamp; - - application_manager::CommandsMap command; - DataAccessor<application_manager::CommandsMap> data_accessor( - command, app_set_lock_ptr_); - - EXPECT_CALL(mock_state_controller_, SetRegularState(_, restored_test_type)) - .Times(AtLeast(1)); - GetInfoFromApp(); - EXPECT_CALL(mock_app_mngr_, GetDefaultHmiLevel(const_app_)) - .WillRepeatedly(Return(kDefaultTestLevel_)); - EXPECT_CALL(*mock_app_, commands_map()).WillRepeatedly(Return(data_accessor)); - ON_CALL(*mock_storage_, - GetSavedApplication(kTestPolicyAppId_, kMacAddress_, _)) - .WillByDefault(DoAll(SetArgReferee<2>(saved_app), Return(true))); - - EXPECT_CALL(*mock_storage_, - RemoveApplicationFromSaved(kTestPolicyAppId_, kMacAddress_)) - .WillOnce(Return(true)); - - ON_CALL(mock_app_mngr_, GetUserConsentForDevice("12345")) - .WillByDefault(Return(policy::kDeviceAllowed)); - - NiceMock<MockApplicationManagerSettings> app_mngr_settings_; - EXPECT_CALL(mock_app_mngr_, get_settings()) - .WillOnce(ReturnRef(app_mngr_settings_)); - - EXPECT_CALL(app_mngr_settings_, resumption_delay_before_ign()) - .WillOnce(Return(resumption_delay_before_ign_ + time_offset)); - - res_ctrl_->SaveLowVoltageTime(); - res_ctrl_->StartAppHmiStateResumption(mock_app_); -} TEST_F( ResumeCtrlTest, |