summaryrefslogtreecommitdiff
path: root/src/components/application_manager/test/state_controller/state_controller_test.cc
diff options
context:
space:
mode:
authorSKobziev <skobziev@luxoft.com>2018-10-25 15:20:50 +0300
committerSKobziev <skobziev@luxoft.com>2018-10-26 11:55:24 +0300
commit072bba71a3b553da369dd8b8e63edf94ab61bff6 (patch)
treeb4a98e0f584df6e1b7b6411bcaa08defd13aa92a /src/components/application_manager/test/state_controller/state_controller_test.cc
parent0d5b3c4dc01844880f46b752076278578b77781f (diff)
parentd36316738785c96dab2ee892762ed08c059fffde (diff)
downloadsdl_core-072bba71a3b553da369dd8b8e63edf94ab61bff6.tar.gz
There are following minor issues was fixed: log severity level in on_vehicle_data_notification.cc: ERROR -> DEBUG typo in on_vehicle_data_notification.cc: nanme -> name typo in request_controller.cc: HmiConnectoinKey -> HmiConnectionKey typo in request_info.cc: HmiConnectoinKey -> HmiConnectionKey Also OnSystemError_SUCCESS was changed to DISABLED_OnSystemError_SUCCESS in policy_handler_test.cpp because the running this test case was successful locally and was unsuccess on Jenkins
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.cc6
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(_))