diff options
Diffstat (limited to 'src/components/application_manager/test/state_controller/state_controller_test.cc')
-rw-r--r-- | src/components/application_manager/test/state_controller/state_controller_test.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/application_manager/test/state_controller/state_controller_test.cc b/src/components/application_manager/test/state_controller/state_controller_test.cc index 3731848d89..1d4cead52b 100644 --- a/src/components/application_manager/test/state_controller/state_controller_test.cc +++ b/src/components/application_manager/test/state_controller/state_controller_test.cc @@ -2830,7 +2830,8 @@ TEST_F(StateControllerImplTest, state_ctrl_->SetRegularState(navi_app_, hmi_state, true); } -TEST_F(StateControllerImplTest, OnEventChangedAudioSourceAppRemainInFull) { +TEST_F(StateControllerImplTest, + OnEventChangedAudioSource_KeepContext_AppRemainInFull) { const uint32_t app_id = simple_app_->app_id(); InsertApplication(simple_app_); smart_objects::SmartObject msg; @@ -2849,11 +2850,14 @@ TEST_F(StateControllerImplTest, OnEventChangedAudioSourceAppRemainInFull) { mobile_apis::AudioStreamingState::AUDIBLE, mobile_apis::VideoStreamingState::NOT_STREAMABLE, mobile_apis::SystemContext::SYSCTXT_MAIN); + + EXPECT_CALL(*simple_app_ptr_, keep_context()).WillOnce(Return(true)); EXPECT_CALL(*simple_app_ptr_, RegularHmiState()).WillOnce(Return(state)); EXPECT_CALL(*simple_app_ptr_, IsAudioApplication()) .WillRepeatedly(Return(true)); EXPECT_CALL(*simple_app_ptr_, CurrentHmiState()) .WillOnce(Return(FullAudibleState())); + EXPECT_CALL(*simple_app_ptr_, set_keep_context(false)); HmiStatePtr new_state; EXPECT_CALL(*simple_app_ptr_, AddHMIState(_)) |