summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/show_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/show_test.cc')
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/show_test.cc78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/show_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/show_test.cc
index 9d5497d4a7..53e803b415 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/show_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/show_test.cc
@@ -57,7 +57,7 @@ using am::commands::CommandImpl;
using am::commands::MessageSharedPtr;
using am::MockMessageHelper;
using test::components::policy_test::MockPolicyHandlerInterface;
-using ::utils::SharedPtr;
+
using ::testing::_;
using ::testing::Return;
using ::testing::ReturnRef;
@@ -211,7 +211,7 @@ TEST_F(ShowRequestTest, OnEvent_UI_UNSUPPORTED_RESOURCE) {
(*msg_vr)[am::strings::msg_params][am::strings::menu_params]
[am::strings::menu_name] = "menu_name";
- utils::SharedPtr<ShowRequest> command = CreateCommand<ShowRequest>(msg_vr);
+ std::shared_ptr<ShowRequest> command = CreateCommand<ShowRequest>(msg_vr);
MockAppPtr mock_app = CreateMockApp();
ON_CALL(app_mngr_, application(kConnectionKey))
@@ -257,7 +257,7 @@ TEST_F(ShowRequestTest, Run_SoftButtonExists_SUCCESS) {
msg_params[am::strings::soft_buttons] = "Soft_Buttons";
(*msg)[am::strings::msg_params] = msg_params;
SmartObject creation_msg_params(msg_params);
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -284,7 +284,7 @@ TEST_F(ShowRequestTest, Run_SoftButtonNotExists_SUCCESS) {
SmartObject msg_params(smart_objects::SmartType_Map);
msg_params[am::strings::soft_buttons] = "";
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -309,7 +309,7 @@ TEST_F(ShowRequestTest, Run_SoftButtonExists_Canceled) {
msg_params[am::strings::soft_buttons] = "Soft_Buttons";
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -336,7 +336,7 @@ TEST_F(ShowRequestTest, Run_Graphic_SUCCESS) {
msg_params[am::strings::graphic] = graphic;
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -363,7 +363,7 @@ TEST_F(ShowRequestTest, Run_Graphic_Canceled) {
msg_params[am::strings::graphic] = graphic;
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -386,7 +386,7 @@ TEST_F(ShowRequestTest, Run_Graphic_WrongSyntax) {
msg_params[am::strings::graphic] = graphic;
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -409,7 +409,7 @@ TEST_F(ShowRequestTest, Run_SecondaryGraphic_SUCCESS) {
msg_params[am::strings::secondary_graphic] = graphic;
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -435,7 +435,7 @@ TEST_F(ShowRequestTest, Run_SecondaryGraphic_Canceled) {
msg_params[am::strings::secondary_graphic] = graphic;
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -459,7 +459,7 @@ TEST_F(ShowRequestTest, Run_SecondaryGraphic_WrongSyntax) {
msg_params[am::strings::secondary_graphic] = graphic;
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -476,7 +476,7 @@ TEST_F(ShowRequestTest, Run_SecondaryGraphic_WrongSyntax) {
TEST_F(ShowRequestTest, Run_MainField1_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_1";
TestSetupHelper(msg,
@@ -489,7 +489,7 @@ TEST_F(ShowRequestTest, Run_MainField1_SUCCESS) {
TEST_F(ShowRequestTest, Run_MainField1_WrongSyntax) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_1\\n";
TestSetupHelperWrongSyntax(msg,
@@ -502,7 +502,7 @@ TEST_F(ShowRequestTest, Run_MainField1_WrongSyntax) {
TEST_F(ShowRequestTest, Run_MainField2_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_2";
TestSetupHelper(msg,
@@ -514,7 +514,7 @@ TEST_F(ShowRequestTest, Run_MainField2_SUCCESS) {
TEST_F(ShowRequestTest, Run_MainField2_WrongSyntax) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_2\\n";
TestSetupHelperWrongSyntax(msg,
@@ -526,7 +526,7 @@ TEST_F(ShowRequestTest, Run_MainField2_WrongSyntax) {
TEST_F(ShowRequestTest, Run_MainField3_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_3";
TestSetupHelper(msg,
@@ -538,7 +538,7 @@ TEST_F(ShowRequestTest, Run_MainField3_SUCCESS) {
TEST_F(ShowRequestTest, Run_MainField3_WrongSyntax) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_3\\n";
TestSetupHelperWrongSyntax(msg,
@@ -550,7 +550,7 @@ TEST_F(ShowRequestTest, Run_MainField3_WrongSyntax) {
TEST_F(ShowRequestTest, Run_MainField4_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_4";
TestSetupHelper(msg,
@@ -562,7 +562,7 @@ TEST_F(ShowRequestTest, Run_MainField4_SUCCESS) {
TEST_F(ShowRequestTest, Run_MainField4_WrongSyntax) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_4\\n";
TestSetupHelperWrongSyntax(msg,
@@ -574,7 +574,7 @@ TEST_F(ShowRequestTest, Run_MainField4_WrongSyntax) {
TEST_F(ShowRequestTest, Run_MainField1_MetadataTag) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_1";
const size_t num_tags = 1;
@@ -590,7 +590,7 @@ TEST_F(ShowRequestTest, Run_MainField1_MetadataTag) {
TEST_F(ShowRequestTest, Run_MainField1_MultipleMetadataTags) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_1";
const size_t num_tags = 5;
@@ -610,7 +610,7 @@ TEST_F(ShowRequestTest, Run_MainField1_MultipleMetadataTags) {
TEST_F(ShowRequestTest, Run_MainField2_MetadataTag) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_2";
const size_t num_tags = 1;
@@ -626,7 +626,7 @@ TEST_F(ShowRequestTest, Run_MainField2_MetadataTag) {
TEST_F(ShowRequestTest, Run_MainField3_MetadataTag) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_3";
const size_t num_tags = 1;
@@ -642,7 +642,7 @@ TEST_F(ShowRequestTest, Run_MainField3_MetadataTag) {
TEST_F(ShowRequestTest, Run_MainField4_MetadataTag) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_4";
const size_t num_tags = 1;
@@ -658,7 +658,7 @@ TEST_F(ShowRequestTest, Run_MainField4_MetadataTag) {
TEST_F(ShowRequestTest, Run_MainField1_MetadataTagWithNoFieldData) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Main_Field_1";
const size_t num_tags = 1;
@@ -700,7 +700,7 @@ TEST_F(ShowRequestTest, Run_MainField1_MetadataTagWithNoFieldData) {
TEST_F(ShowRequestTest, Run_MediaClock_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Media_Clock";
TestSetupHelper(msg,
@@ -712,7 +712,7 @@ TEST_F(ShowRequestTest, Run_MediaClock_SUCCESS) {
TEST_F(ShowRequestTest, Run_MediaClock_WrongSyntax) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Media_Clock\\n";
TestSetupHelperWrongSyntax(msg,
@@ -724,7 +724,7 @@ TEST_F(ShowRequestTest, Run_MediaClock_WrongSyntax) {
TEST_F(ShowRequestTest, Run_MediaTrack_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Media_Track";
TestSetupHelper(msg,
@@ -736,7 +736,7 @@ TEST_F(ShowRequestTest, Run_MediaTrack_SUCCESS) {
TEST_F(ShowRequestTest, Run_MediaTrack_WrongSyntax) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Media_Track\\n";
TestSetupHelperWrongSyntax(msg,
@@ -748,7 +748,7 @@ TEST_F(ShowRequestTest, Run_MediaTrack_WrongSyntax) {
TEST_F(ShowRequestTest, Run_StatusBar_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Status_Bar";
TestSetupHelper(
@@ -759,7 +759,7 @@ TEST_F(ShowRequestTest, Run_StatusBar_SUCCESS) {
TEST_F(ShowRequestTest, Run_StatusBar_WrongSyntax) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
text_field_ = "Status_Bar\\n";
TestSetupHelperWrongSyntax(
@@ -773,7 +773,7 @@ TEST_F(ShowRequestTest, Run_Alignment_SUCCESS) {
msg_params[am::strings::alignment] = "Alignment";
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -797,7 +797,7 @@ TEST_F(ShowRequestTest, Run_CustomPresets_SUCCESS) {
msg_params[am::strings::custom_presets] = custom_presets;
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -820,7 +820,7 @@ TEST_F(ShowRequestTest, Run_CustomPresets_WrongSyntax) {
msg_params[am::strings::custom_presets] = custom_presets;
(*msg)[am::strings::msg_params] = msg_params;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -836,7 +836,7 @@ TEST_F(ShowRequestTest, Run_CustomPresets_WrongSyntax) {
TEST_F(ShowRequestTest, Run_InvalidApp_Canceled) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(MockAppPtr()));
@@ -851,7 +851,7 @@ TEST_F(ShowRequestTest, Run_InvalidApp_Canceled) {
TEST_F(ShowRequestTest, Run_EmptyParams_Canceled) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(mock_app_));
@@ -869,7 +869,7 @@ TEST_F(ShowRequestTest, OnEvent_SuccessResultCode_SUCCESS) {
hmi_apis::Common_Result::eType::SUCCESS;
(*msg)[am::strings::msg_params] = SmartObject(smart_objects::SmartType_Map);
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::eType::SUCCESS), _));
@@ -889,7 +889,7 @@ TEST_F(ShowRequestTest, OnEvent_WarningsResultCode_SUCCESS) {
(*msg)[am::strings::params][am::hmi_response::message] = "Response Info";
(*msg)[am::strings::msg_params] = SmartObject(smart_objects::SmartType_Map);
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(mock_rpc_service_, ManageMobileCommand(_, _));
Event event(hmi_apis::FunctionID::UI_Show);
@@ -905,7 +905,7 @@ TEST_F(ShowRequestTest, OnEvent_WrongFunctionID_Canceled) {
(*msg)[am::strings::params][am::hmi_response::code] =
mobile_apis::Result::SUCCESS;
- SharedPtr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
+ std::shared_ptr<ShowRequest> command(CreateCommand<ShowRequest>(msg));
EXPECT_CALL(mock_rpc_service_, ManageMobileCommand(_, _)).Times(0);
Event event(hmi_apis::FunctionID::UI_Alert);