summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshwin Karemore <akaremor@ford.com>2018-06-12 15:16:25 +0200
committerAshwin Karemore <akaremor@ford.com>2018-07-02 10:32:27 +0200
commit2d0aa6375d13a03f399f8ea0abba862543f55cf4 (patch)
tree6e637d694ed29e83ed93c16ebc749e7c973f6657
parentd4e8005dfae5f864b51a700f0b022c4cb75cbec3 (diff)
downloadsdl_core-2d0aa6375d13a03f399f8ea0abba862543f55cf4.tar.gz
UT changes
-rw-r--r--src/components/application_manager/include/application_manager/smart_object_keys.h1
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_media_clock_timer_test.cc9
-rw-r--r--src/components/application_manager/src/smart_object_keys.cc1
3 files changed, 11 insertions, 0 deletions
diff --git a/src/components/application_manager/include/application_manager/smart_object_keys.h b/src/components/application_manager/include/application_manager/smart_object_keys.h
index 50d70591c9..07160c7927 100644
--- a/src/components/application_manager/include/application_manager/smart_object_keys.h
+++ b/src/components/application_manager/include/application_manager/smart_object_keys.h
@@ -160,6 +160,7 @@ extern const char* hours;
extern const char* minutes;
extern const char* seconds;
extern const char* update_mode;
+extern const char* audioStreamingIndicator;
extern const char* trigger_source;
extern const char* hmi_level;
extern const char* activate_app_hmi_level;
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_media_clock_timer_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_media_clock_timer_test.cc
index 9d2dd996bc..8e3278a23a 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_media_clock_timer_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_media_clock_timer_test.cc
@@ -59,6 +59,7 @@ using ::testing::Return;
using ::testing::ReturnRef;
namespace UpdateMode = mobile_apis::UpdateMode;
+namespace AudioStreamingIndicator = mobile_apis::AudioStreamingIndicator;
typedef SharedPtr<SetMediaClockRequest> SetMediaClockRequestPtr;
@@ -159,6 +160,8 @@ TEST_F(SetMediaClockRequestTest, Run_UpdateCountUp_SUCCESS) {
kMinutes;
(*msg)[am::strings::msg_params][am::strings::end_time][am::strings::seconds] =
kSeconds;
+ (*msg)[am::strings::msg_params][am::strings::audioStreamingIndicator] =
+ AudioStreamingIndicator::PLAY;
SharedPtr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
@@ -195,6 +198,8 @@ TEST_F(SetMediaClockRequestTest, Run_UpdateCountDown_SUCCESS) {
kHours;
(*msg)[am::strings::msg_params][am::strings::end_time][am::strings::minutes] =
kMinutes;
+ (*msg)[am::strings::msg_params][am::strings::audioStreamingIndicator] =
+ AudioStreamingIndicator::PLAY;
SharedPtr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
@@ -231,6 +236,8 @@ TEST_F(SetMediaClockRequestTest, Run_UpdateCountUpWrongTime_Canceled) {
kHours;
(*msg)[am::strings::msg_params][am::strings::end_time][am::strings::minutes] =
kMinutes;
+ (*msg)[am::strings::msg_params][am::strings::audioStreamingIndicator] =
+ AudioStreamingIndicator::PLAY_PAUSE;
SharedPtr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
@@ -254,6 +261,8 @@ TEST_F(SetMediaClockRequestTest, Run_UpdateCountDownWrongTime_Canceled) {
kMinutes;
(*msg)[am::strings::msg_params][am::strings::end_time][am::strings::seconds] =
kSeconds;
+ (*msg)[am::strings::msg_params][am::strings::audioStreamingIndicator] =
+ AudioStreamingIndicator::PLAY_PAUSE;
SharedPtr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
diff --git a/src/components/application_manager/src/smart_object_keys.cc b/src/components/application_manager/src/smart_object_keys.cc
index e4e89c6e1f..42f94469d7 100644
--- a/src/components/application_manager/src/smart_object_keys.cc
+++ b/src/components/application_manager/src/smart_object_keys.cc
@@ -124,6 +124,7 @@ const char* hours = "hours";
const char* minutes = "minutes";
const char* seconds = "seconds";
const char* update_mode = "updateMode";
+const char* audioStreamingIndicator = "audioStreamingIndicator";
const char* trigger_source = "triggerSource";
const char* hmi_level = "hmiLevel";
const char* activate_app_hmi_level = "level";