summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile')
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/add_command_request_test.cc92
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/add_sub_menu_request_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/alert_maneuver_request_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/alert_request_test.cc8
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/change_registration_test.cc14
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/create_interaction_choice_set_test.cc14
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_command_request_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_file_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_interaction_choice_set_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_sub_menu_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/dial_number_request_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/dummy_mobile_commands_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/end_audio_pass_thru_request_test.cc2
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/get_way_points_request_test.cc10
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/list_files_request_test.cc10
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_button_notification_commands_test.cc22
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_command_notification_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hash_change_notification_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hmi_status_notification_from_mobile_test.cc14
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hmi_status_notification_test.cc8
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_keyboard_input_notification_test.cc12
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_system_request_notification_test.cc8
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_tbt_client_state_notification_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_touch_event_notification_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_way_point_change_notification_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_audio_pass_thru_test.cc14
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_interaction_test.cc12
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/put_file_test.cc14
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/register_app_interface_request_test.cc20
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/reset_global_properties_test.cc30
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/scrollable_message_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/send_haptic_data_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/send_location_request_test.cc10
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_app_icon_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_display_layout_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_global_properties_test.cc74
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_media_clock_timer_test.cc24
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/show_test.cc78
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/simple_notification_commands_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/simple_response_commands_test.cc8
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/slider_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/speak_request_test.cc14
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/subscribe_button_request_test.cc6
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/subscribe_way_points_request_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/system_request_test.cc10
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unregister_app_interface_request_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unsubscribe_button_request_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unsubscribe_way_points_request_test.cc4
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/update_turn_list_request_test.cc6
49 files changed, 324 insertions, 324 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/add_command_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/add_command_request_test.cc
index 9f60053eb3..ea1a0fafed 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/add_command_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/add_command_request_test.cc
@@ -37,9 +37,9 @@
#include "mobile/add_command_request.h"
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "utils/helpers.h"
-#include "utils/make_shared.h"
+
#include "smart_objects/smart_object.h"
#include "utils/custom_string.h"
#include "application_manager/commands/command_request_test.h"
@@ -64,7 +64,7 @@ using am::ApplicationManager;
using am::commands::MessageSharedPtr;
using am::ApplicationSharedPtr;
using ::testing::_;
-using ::utils::SharedPtr;
+
using ::testing::Return;
using ::testing::InSequence;
using sdl_rpc_plugin::commands::AddCommandRequest;
@@ -182,7 +182,7 @@ class AddCommandRequestTest
EXPECT_CALL(*mock_app_, commands_map())
.WillRepeatedly(Return(DataAccessor<application_manager::CommandsMap>(
commands_map, lock_ptr_)));
- so_ptr_ = utils::MakeShared<SmartObject>(SmartType_Map);
+ so_ptr_ = std::make_shared<SmartObject>(SmartType_Map);
EXPECT_CALL(*mock_app_, FindSubMenu(kSecondParentId))
.WillOnce(Return(so_ptr_.get()));
{
@@ -198,7 +198,7 @@ class AddCommandRequestTest
.WillOnce(Return(true));
}
EXPECT_CALL(mock_rpc_service_, ManageMobileCommand(_, _)).Times(0);
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
Event event(incoming_cmd);
@@ -210,7 +210,7 @@ class AddCommandRequestTest
ManageHMICommand(HMIResultCodeIs(cmd_to_delete)))
.WillOnce(Return(true));
- SmartObjectSPtr response = utils::MakeShared<SmartObject>(SmartType_Map);
+ SmartObjectSPtr response = std::make_shared<SmartObject>(SmartType_Map);
(*response)[strings::msg_params][strings::info] = "info";
EXPECT_CALL(
mock_message_helper_,
@@ -221,8 +221,8 @@ class AddCommandRequestTest
mock_rpc_service_,
ManageMobileCommand(response,
am::commands::Command::CommandSource::SOURCE_SDL));
- utils::SharedPtr<CommandRequestImpl> base_class_request =
- static_cast<utils::SharedPtr<CommandRequestImpl> >(request_ptr);
+ std::shared_ptr<CommandRequestImpl> base_class_request =
+ static_cast<std::shared_ptr<CommandRequestImpl> >(request_ptr);
base_class_request->onTimeOut();
}
@@ -243,7 +243,7 @@ TEST_F(AddCommandRequestTest, Run_AppNotExisted_EXPECT_AppNotRegistered) {
mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_result::APPLICATION_NOT_REGISTERED), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
}
@@ -258,7 +258,7 @@ TEST_F(AddCommandRequestTest, Run_ImageVerificationFailed_EXPECT_INVALID_DATA) {
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::INVALID_DATA), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
}
@@ -284,7 +284,7 @@ TEST_F(AddCommandRequestTest, Run_MenuNameHasSyntaxError_EXPECT_INVALID_DATA) {
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::INVALID_DATA), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
}
@@ -303,7 +303,7 @@ TEST_F(AddCommandRequestTest,
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::INVALID_DATA), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
}
@@ -329,7 +329,7 @@ TEST_F(AddCommandRequestTest, Run_CMDIconHasError_EXPECT_INVALID_DATA) {
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::INVALID_DATA), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg);
request_ptr->Run();
}
@@ -340,13 +340,13 @@ TEST_F(AddCommandRequestTest, Run_CommandIDAlreadyExists_EXPECT_INVALID_ID) {
SmartObject& image = msg_params[cmd_icon];
EXPECT_CALL(mock_message_helper_, VerifyImage(image, _, _))
.WillOnce(Return(mobile_apis::Result::SUCCESS));
- so_ptr_ = utils::MakeShared<SmartObject>(SmartType_Map);
+ so_ptr_ = std::make_shared<SmartObject>(SmartType_Map);
EXPECT_CALL(*mock_app_, FindCommand(kCmdId)).WillOnce(Return(so_ptr_.get()));
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::INVALID_ID), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
}
@@ -371,7 +371,7 @@ TEST_F(AddCommandRequestTest,
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::DUPLICATE_NAME), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
}
@@ -398,7 +398,7 @@ TEST_F(AddCommandRequestTest,
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::INVALID_ID), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
}
@@ -421,14 +421,14 @@ TEST_F(AddCommandRequestTest,
EXPECT_CALL(*mock_app_, commands_map())
.WillRepeatedly(Return(DataAccessor<application_manager::CommandsMap>(
commands_map, lock_ptr_)));
- so_ptr_ = utils::MakeShared<SmartObject>(SmartType_Map);
+ so_ptr_ = std::make_shared<SmartObject>(SmartType_Map);
EXPECT_CALL(*mock_app_, FindSubMenu(kSecondParentId))
.WillOnce(Return(so_ptr_.get()));
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::DUPLICATE_NAME), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
}
@@ -444,7 +444,7 @@ TEST_F(AddCommandRequestTest, Run_MsgDataEmpty_EXPECT_INVALID_DATA) {
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::INVALID_DATA), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg);
request_ptr->Run();
}
@@ -466,7 +466,7 @@ TEST_F(AddCommandRequestTest,
EXPECT_CALL(*mock_app_, commands_map())
.WillRepeatedly(Return(DataAccessor<application_manager::CommandsMap>(
commands_map, lock_ptr_)));
- so_ptr_ = utils::MakeShared<SmartObject>(SmartType_Map);
+ so_ptr_ = std::make_shared<SmartObject>(SmartType_Map);
EXPECT_CALL(*mock_app_, FindSubMenu(kSecondParentId))
.WillOnce(Return(so_ptr_.get()));
{
@@ -482,7 +482,7 @@ TEST_F(AddCommandRequestTest,
.WillOnce(Return(true));
}
EXPECT_CALL(mock_rpc_service_, ManageMobileCommand(_, _)).Times(0);
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
}
@@ -504,7 +504,7 @@ TEST_F(AddCommandRequestTest, GetRunMethods_SUCCESS) {
mock_rpc_service_,
ManageHMICommand(HMIResultCodeIs(hmi_apis::FunctionID::UI_AddCommand)))
.WillOnce(Return(true));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
}
@@ -535,7 +535,7 @@ TEST_F(AddCommandRequestTest, OnEvent_UI_SUCCESS) {
EXPECT_CALL(*mock_help_prompt_manager_,
OnVrCommandAdded(kCmdId, (*msg_)[msg_params], false));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
request_ptr->on_event(event);
@@ -566,7 +566,7 @@ TEST_F(AddCommandRequestTest, OnEvent_VR_SUCCESS) {
EXPECT_CALL(*mock_help_prompt_manager_,
OnVrCommandAdded(kCmdId, (*msg_)[msg_params], false));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
request_ptr->on_event(event);
@@ -597,7 +597,7 @@ TEST_F(AddCommandRequestTest, OnEvent_BothSend_SUCCESS) {
EXPECT_CALL(*mock_app_, RemoveCommand(kCmdId)).Times(0);
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(command_msg);
request_ptr->Run();
request_ptr->on_event(event_ui);
@@ -606,7 +606,7 @@ TEST_F(AddCommandRequestTest, OnEvent_BothSend_SUCCESS) {
TEST_F(AddCommandRequestTest, OnEvent_UnknownEvent_UNSUCCESS) {
EXPECT_CALL(mock_rpc_service_, ManageMobileCommand(_, _)).Times(0);
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
Event event(hmi_apis::FunctionID::INVALID_ENUM);
request_ptr->on_event(event);
@@ -619,7 +619,7 @@ TEST_F(AddCommandRequestTest, OnEvent_AppNotExisted_UNSUCCESS) {
Event event(hmi_apis::FunctionID::UI_AddCommand);
EXPECT_CALL(mock_rpc_service_, ManageMobileCommand(_, _)).Times(0);
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->on_event(event);
}
@@ -641,7 +641,7 @@ TEST_F(AddCommandRequestTest,
mock_rpc_service_,
ManageHMICommand(HMIResultCodeIs(hmi_apis::FunctionID::UI_AddCommand)))
.WillOnce(Return(true));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
EXPECT_CALL(*mock_app_, RemoveCommand(kCmdId));
@@ -687,7 +687,7 @@ TEST_F(AddCommandRequestTest,
.WillOnce(ReturnRef(*mock_help_prompt_manager_));
EXPECT_CALL(*mock_help_prompt_manager_, OnVrCommandAdded(kCmdId, _, false));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
Event event_ui(hmi_apis::FunctionID::UI_AddCommand);
@@ -725,7 +725,7 @@ TEST_F(
}
EXPECT_CALL(*mock_app_, RemoveCommand(kCmdId));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
@@ -770,7 +770,7 @@ TEST_F(
}
EXPECT_CALL(*mock_app_, RemoveCommand(kCmdId));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
@@ -813,7 +813,7 @@ TEST_F(
ManageHMICommand(HMIResultCodeIs(hmi_apis::FunctionID::VR_AddCommand)))
.WillOnce(Return(true));
}
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
@@ -862,7 +862,7 @@ TEST_F(
ManageHMICommand(HMIResultCodeIs(hmi_apis::FunctionID::VR_AddCommand)))
.WillOnce(Return(true));
}
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
@@ -903,7 +903,7 @@ TEST_F(
mock_rpc_service_,
ManageHMICommand(HMIResultCodeIs(hmi_apis::FunctionID::UI_AddCommand)))
.WillOnce(Return(true));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
EXPECT_CALL(mock_hmi_interfaces_,
@@ -940,7 +940,7 @@ TEST_F(
mock_rpc_service_,
ManageHMICommand(HMIResultCodeIs(hmi_apis::FunctionID::VR_AddCommand)))
.WillOnce(Return(true));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
EXPECT_CALL(mock_hmi_interfaces_,
@@ -988,7 +988,7 @@ TEST_F(AddCommandRequestTest,
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::GENERIC_ERROR), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
@@ -1036,7 +1036,7 @@ TEST_F(AddCommandRequestTest,
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::GENERIC_ERROR), _));
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
@@ -1063,7 +1063,7 @@ TEST_F(AddCommandRequestTest,
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(ApplicationSharedPtr()));
EXPECT_CALL(*mock_app_, RemoveCommand(kCmdId)).Times(0);
- SmartObjectSPtr response = utils::MakeShared<SmartObject>(SmartType_Map);
+ SmartObjectSPtr response = std::make_shared<SmartObject>(SmartType_Map);
(*response)[strings::msg_params][strings::info] = "info";
EXPECT_CALL(
mock_message_helper_,
@@ -1072,8 +1072,8 @@ TEST_F(AddCommandRequestTest,
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
response, am::commands::Command::CommandSource::SOURCE_SDL));
- utils::SharedPtr<CommandRequestImpl> base_class_request =
- static_cast<utils::SharedPtr<CommandRequestImpl> >(
+ std::shared_ptr<CommandRequestImpl> base_class_request =
+ static_cast<std::shared_ptr<CommandRequestImpl> >(
CreateCommand<AddCommandRequest>(msg_));
base_class_request->onTimeOut();
}
@@ -1094,7 +1094,7 @@ TEST_F(AddCommandRequestTest, OnTimeOut_AppRemoveCommandCalled) {
EXPECT_CALL(*mock_app_, commands_map())
.WillRepeatedly(Return(DataAccessor<application_manager::CommandsMap>(
commands_map, lock_ptr_)));
- so_ptr_ = utils::MakeShared<SmartObject>(SmartType_Map);
+ so_ptr_ = std::make_shared<SmartObject>(SmartType_Map);
EXPECT_CALL(*mock_app_, FindSubMenu(kSecondParentId))
.WillOnce(Return(so_ptr_.get()));
{
@@ -1109,11 +1109,11 @@ TEST_F(AddCommandRequestTest, OnTimeOut_AppRemoveCommandCalled) {
.WillOnce(Return(true));
}
EXPECT_CALL(mock_rpc_service_, ManageMobileCommand(_, _)).Times(0);
- utils::SharedPtr<AddCommandRequest> request_ptr =
+ std::shared_ptr<AddCommandRequest> request_ptr =
CreateCommand<AddCommandRequest>(msg_);
request_ptr->Run();
EXPECT_CALL(*mock_app_, RemoveCommand(kCmdId));
- SmartObjectSPtr response = utils::MakeShared<SmartObject>(SmartType_Map);
+ SmartObjectSPtr response = std::make_shared<SmartObject>(SmartType_Map);
(*response)[strings::msg_params][strings::info] = "info";
EXPECT_CALL(
mock_message_helper_,
@@ -1122,8 +1122,8 @@ TEST_F(AddCommandRequestTest, OnTimeOut_AppRemoveCommandCalled) {
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
response, am::commands::Command::CommandSource::SOURCE_SDL));
- utils::SharedPtr<CommandRequestImpl> base_class_request =
- static_cast<utils::SharedPtr<CommandRequestImpl> >(request_ptr);
+ std::shared_ptr<CommandRequestImpl> base_class_request =
+ static_cast<std::shared_ptr<CommandRequestImpl> >(request_ptr);
base_class_request->onTimeOut();
}
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/add_sub_menu_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/add_sub_menu_request_test.cc
index 9fad021c3e..ecaa436529 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/add_sub_menu_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/add_sub_menu_request_test.cc
@@ -57,7 +57,7 @@ using am::event_engine::Event;
using ::testing::_;
using ::testing::Return;
-typedef SharedPtr<AddSubMenuRequest> AddSubMenuPtr;
+typedef std::shared_ptr<AddSubMenuRequest> AddSubMenuPtr;
namespace {
const uint32_t kConnectionKey = 2u;
@@ -98,7 +98,7 @@ TEST_F(AddSubMenuRequestTest, Run_ImageVerificationFailed_EXPECT_INVALID_DATA) {
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(
MobileResultCodeIs(mobile_apis::Result::INVALID_DATA), _));
- utils::SharedPtr<AddSubMenuRequest> request_ptr =
+ std::shared_ptr<AddSubMenuRequest> request_ptr =
CreateCommand<AddSubMenuRequest>(msg);
request_ptr->Run();
@@ -110,7 +110,7 @@ TEST_F(AddSubMenuRequestTest, OnEvent_UI_UNSUPPORTED_RESOURCE) {
(*msg)[am::strings::params][am::strings::connection_key] = kConnectionKey;
(*msg)[am::strings::msg_params][am::strings::menu_id] = menu_id;
- utils::SharedPtr<AddSubMenuRequest> command =
+ std::shared_ptr<AddSubMenuRequest> command =
CreateCommand<AddSubMenuRequest>(msg);
ON_CALL(app_mngr_, application(kConnectionKey))
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/alert_maneuver_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/alert_maneuver_request_test.cc
index ac870e7001..7d2dd0b2c2 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/alert_maneuver_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/alert_maneuver_request_test.cc
@@ -34,7 +34,7 @@
#include <string>
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
#include "application_manager/commands/commands_test.h"
@@ -64,7 +64,7 @@ using sdl_rpc_plugin::commands::AlertManeuverRequest;
using am::commands::MessageSharedPtr;
using am::event_engine::Event;
-typedef SharedPtr<AlertManeuverRequest> CommandPtr;
+typedef std::shared_ptr<AlertManeuverRequest> CommandPtr;
class AlertManeuverRequestTest
: public CommandRequestTest<CommandsTestMocks::kIsNice> {
@@ -80,7 +80,7 @@ class AlertManeuverRequestTest
am::event_engine::Event event(hmi_apis::FunctionID::TTS_Speak);
event.set_smart_object(*response);
- utils::SharedPtr<AlertManeuverRequest> command =
+ std::shared_ptr<AlertManeuverRequest> command =
CreateCommand<AlertManeuverRequest>(response);
MockAppPtr mock_app(CreateMockApp());
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/alert_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/alert_request_test.cc
index 5835cbff81..895aafa0c8 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/alert_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/alert_request_test.cc
@@ -56,14 +56,14 @@ using sdl_rpc_plugin::commands::AlertRequest;
using am::commands::CommandImpl;
using am::commands::MessageSharedPtr;
using am::MockMessageHelper;
-using ::utils::SharedPtr;
+
using am::event_engine::Event;
using policy_test::MockPolicyHandlerInterface;
using ::testing::_;
using ::testing::Return;
using ::testing::ReturnRef;
-typedef SharedPtr<AlertRequest> CommandPtr;
+typedef std::shared_ptr<AlertRequest> CommandPtr;
namespace {
const int32_t kCommandId = 1;
@@ -192,7 +192,7 @@ TEST_F(AlertRequestTest, OnTimeout_GENERIC_ERROR) {
(*command_msg)[am::strings::params][am::strings::connection_key] =
kConnectionKey;
- utils::SharedPtr<AlertRequest> command = CreateCommand<AlertRequest>();
+ std::shared_ptr<AlertRequest> command = CreateCommand<AlertRequest>();
EXPECT_CALL(
mock_message_helper_,
@@ -223,7 +223,7 @@ TEST_F(AlertRequestTest, OnEvent_UI_HmiSendSuccess_UNSUPPORTED_RESOURCE) {
(*command_msg)[am::strings::msg_params][am::strings::menu_params]
[am::strings::menu_name] = "menu_name";
- utils::SharedPtr<AlertRequest> command =
+ std::shared_ptr<AlertRequest> command =
CreateCommand<AlertRequest>(command_msg);
MessageSharedPtr msg = CreateMessage(smart_objects::SmartType_Map);
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/change_registration_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/change_registration_test.cc
index 3d6a345ced..56f06890c4 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/change_registration_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/change_registration_test.cc
@@ -37,9 +37,9 @@
#include "mobile/change_registration_request.h"
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "utils/helpers.h"
-#include "utils/make_shared.h"
+
#include "utils/custom_string.h"
#include "smart_objects/smart_object.h"
#include "application_manager/commands/command_request_test.h"
@@ -66,7 +66,7 @@ using am::commands::MessageSharedPtr;
using am::ApplicationSharedPtr;
using am::MockMessageHelper;
using ::testing::_;
-using ::utils::SharedPtr;
+
using ::testing::Return;
using ::testing::ReturnRef;
using ::testing::SetArgPointee;
@@ -149,7 +149,7 @@ class ChangeRegistrationRequestTest
hmi_apis::Common_Result::UNSUPPORTED_RESOURCE) {
MessageSharedPtr msg_from_mobile = CreateMsgFromMobile();
- utils::SharedPtr<ChangeRegistrationRequest> command =
+ std::shared_ptr<ChangeRegistrationRequest> command =
CreateCommand<ChangeRegistrationRequest>(msg_from_mobile);
MockAppPtr mock_app = CreateMockApp();
ON_CALL(app_mngr_, application(_)).WillByDefault(Return(mock_app));
@@ -279,7 +279,7 @@ typedef ChangeRegistrationRequestTest::MockHMICapabilities MockHMICapabilities;
TEST_F(ChangeRegistrationRequestTest,
OnEvent_VRHmiSendSuccess_UNSUPPORTED_RESOURCE) {
MessageSharedPtr msg_from_mobile = CreateMsgFromMobile();
- utils::SharedPtr<ChangeRegistrationRequest> command =
+ std::shared_ptr<ChangeRegistrationRequest> command =
CreateCommand<ChangeRegistrationRequest>(msg_from_mobile);
am::ApplicationSet application_set;
@@ -367,7 +367,7 @@ TEST_F(ChangeRegistrationRequestTest,
TEST_F(ChangeRegistrationRequestTest,
OnEvent_TTS_UNSUPPORTED_RESOURCE_STATE_NOT_AVAILABLE_Expect_false) {
MessageSharedPtr msg_from_mobile = CreateMsgFromMobile();
- utils::SharedPtr<ChangeRegistrationRequest> command =
+ std::shared_ptr<ChangeRegistrationRequest> command =
CreateCommand<ChangeRegistrationRequest>(msg_from_mobile);
MockAppPtr mock_app = CreateMockApp();
ON_CALL(app_mngr_, application(_)).WillByDefault(Return(mock_app));
@@ -472,7 +472,7 @@ TEST_F(ChangeRegistrationRequestTest,
OnEvent_UIHmiSendSuccess_UNSUPPORTED_RESOURCE) {
MessageSharedPtr msg_from_mobile = CreateMsgFromMobile();
- utils::SharedPtr<ChangeRegistrationRequest> command =
+ std::shared_ptr<ChangeRegistrationRequest> command =
CreateCommand<ChangeRegistrationRequest>(msg_from_mobile);
am::ApplicationSet application_set;
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/create_interaction_choice_set_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/create_interaction_choice_set_test.cc
index 10ffbded09..099dc216c8 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/create_interaction_choice_set_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/create_interaction_choice_set_test.cc
@@ -38,9 +38,9 @@
#include "mobile/create_interaction_choice_set_response.h"
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "utils/helpers.h"
-#include "utils/make_shared.h"
+
#include "smart_objects/smart_object.h"
#include "utils/custom_string.h"
#include "application_manager/commands/command_request_test.h"
@@ -65,7 +65,7 @@ using am::commands::MessageSharedPtr;
using am::ApplicationSharedPtr;
using am::MockMessageHelper;
using ::testing::_;
-using ::utils::SharedPtr;
+
using ::testing::Return;
using ::testing::ReturnRef;
using ::testing::AtLeast;
@@ -77,9 +77,9 @@ namespace custom_str = utils::custom_string;
namespace strings = ::application_manager::strings;
namespace hmi_response = ::application_manager::hmi_response;
-typedef SharedPtr<CreateInteractionChoiceSetRequest>
+typedef std::shared_ptr<CreateInteractionChoiceSetRequest>
CreateInteractionChoiceSetRequestPtr;
-typedef SharedPtr<CreateInteractionChoiceSetResponse>
+typedef std::shared_ptr<CreateInteractionChoiceSetResponse>
CreateInteractionChoiceSetResponsePtr;
typedef NiceMock<
@@ -171,7 +171,7 @@ TEST_F(CreateInteractionChoiceSetRequestTest, OnTimeout_GENERIC_ERROR) {
am::mobile_api::Result::GENERIC_ERROR;
(*msg_vr)[strings::msg_params][strings::success] = false;
- utils::SharedPtr<CreateInteractionChoiceSetRequest> req_vr =
+ std::shared_ptr<CreateInteractionChoiceSetRequest> req_vr =
CreateCommand<CreateInteractionChoiceSetRequest>();
MockAppPtr mock_app = CreateMockApp();
@@ -203,7 +203,7 @@ TEST_F(CreateInteractionChoiceSetRequestTest, OnEvent_VR_UNSUPPORTED_RESOURCE) {
(*msg_vr)[strings::msg_params][strings::choice_set][0][strings::menu_name] =
"menu_name";
(*msg_vr)[strings::msg_params][strings::interaction_choice_set_id] = 11;
- utils::SharedPtr<CreateInteractionChoiceSetRequest> req_vr =
+ std::shared_ptr<CreateInteractionChoiceSetRequest> req_vr =
CreateCommand<CreateInteractionChoiceSetRequest>(msg_vr);
ON_CALL(app_mngr_, application(_)).WillByDefault(Return(mock_app_));
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_command_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_command_request_test.cc
index e3a4e0f381..a87d172923 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_command_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_command_request_test.cc
@@ -36,7 +36,7 @@
#include "mobile/delete_command_request.h"
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
#include "application_manager/commands/command_request_test.h"
@@ -64,7 +64,7 @@ using am::event_engine::Event;
using am::MockMessageHelper;
using am::MockHmiInterfaces;
-typedef SharedPtr<DeleteCommandRequest> DeleteCommandPtr;
+typedef std::shared_ptr<DeleteCommandRequest> DeleteCommandPtr;
namespace {
const int32_t kCommandId = 1;
@@ -260,7 +260,7 @@ TEST_F(DeleteCommandRequestTest,
MessageSharedPtr result_msg(
CatchMobileCommandResult(CallOnEvent(*command, event_ui)));
- ASSERT_TRUE(result_msg);
+ ASSERT_TRUE((bool)result_msg);
ResultCommandExpectations(result_msg, "UI is not supported by system");
}
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_file_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_file_test.cc
index 5cc9dcf543..0ed7a92fa4 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_file_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_file_test.cc
@@ -39,7 +39,7 @@
#include "mobile/delete_file_response.h"
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "utils/file_system.h"
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
@@ -77,8 +77,8 @@ using am::commands::MessageSharedPtr;
using am::event_engine::Event;
using am::MockMessageHelper;
-typedef SharedPtr<DeleteFileRequest> DeleteFileRequestPtr;
-typedef SharedPtr<DeleteFileResponse> DeleteFileResponsePtr;
+typedef std::shared_ptr<DeleteFileRequest> DeleteFileRequestPtr;
+typedef std::shared_ptr<DeleteFileResponse> DeleteFileResponsePtr;
typedef NiceMock<
::test::components::application_manager_test::MockHMICapabilities>
MockHMICapabilities;
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_interaction_choice_set_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_interaction_choice_set_test.cc
index b2daef9cd2..43c30809e5 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_interaction_choice_set_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_interaction_choice_set_test.cc
@@ -37,7 +37,7 @@
#include "mobile/delete_interaction_choice_set_response.h"
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
#include "application_manager/commands/commands_test.h"
@@ -63,9 +63,9 @@ using sdl_rpc_plugin::commands::DeleteInteractionChoiceSetResponse;
using am::commands::MessageSharedPtr;
using am::event_engine::Event;
-typedef SharedPtr<DeleteInteractionChoiceSetRequest>
+typedef std::shared_ptr<DeleteInteractionChoiceSetRequest>
DeleteInteractionChoiceSetRequestPtr;
-typedef SharedPtr<DeleteInteractionChoiceSetResponse>
+typedef std::shared_ptr<DeleteInteractionChoiceSetResponse>
DeleteInteractionChoiceSetResponsePtr;
MATCHER_P(CheckMessageSuccess, success, "") {
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_sub_menu_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_sub_menu_test.cc
index 5dad433d6d..f1c44f86ac 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_sub_menu_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/delete_sub_menu_test.cc
@@ -65,8 +65,8 @@ using am::MockMessageHelper;
using sdl_rpc_plugin::commands::DeleteSubMenuRequest;
using sdl_rpc_plugin::commands::DeleteSubMenuResponse;
-typedef SharedPtr<DeleteSubMenuRequest> DeleteSubMenuRequestPtr;
-typedef SharedPtr<DeleteSubMenuResponse> DeleteSubMenuResponsePtr;
+typedef std::shared_ptr<DeleteSubMenuRequest> DeleteSubMenuRequestPtr;
+typedef std::shared_ptr<DeleteSubMenuResponse> DeleteSubMenuResponsePtr;
MATCHER_P(CheckMessageResultCode, result_code, "") {
return (*arg)[am::strings::msg_params][am::strings::result_code].asInt() ==
@@ -123,7 +123,7 @@ TEST_F(DeleteSubMenuRequestTest, DISABLED_OnEvent_UI_UNSUPPORTED_RESOURCE) {
(*msg)[am::strings::params][am::strings::connection_key] = kConnectionKey;
(*msg)[am::strings::msg_params][am::strings::menu_id] = 10u;
- utils::SharedPtr<DeleteSubMenuRequest> command =
+ std::shared_ptr<DeleteSubMenuRequest> command =
CreateCommand<DeleteSubMenuRequest>(msg);
MockAppPtr mock_app = CreateMockApp();
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/dial_number_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/dial_number_request_test.cc
index bf689629b4..7052830d49 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/dial_number_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/dial_number_request_test.cc
@@ -35,7 +35,7 @@
#include <vector>
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
#include "application_manager/commands/commands_test.h"
@@ -61,7 +61,7 @@ using sdl_rpc_plugin::commands::DialNumberRequest;
using am::event_engine::Event;
namespace mobile_result = mobile_apis::Result;
-typedef SharedPtr<DialNumberRequest> DialNumberRequestPtr;
+typedef std::shared_ptr<DialNumberRequest> DialNumberRequestPtr;
namespace {
const uint32_t kConnectionKey = 2u;
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/dummy_mobile_commands_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/dummy_mobile_commands_test.cc
index a8afe4007f..c6601d6352 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/dummy_mobile_commands_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/dummy_mobile_commands_test.cc
@@ -292,18 +292,18 @@ TYPED_TEST_CASE(MobileCommandsTestSecond, MobileCommandsListSecond);
TYPED_TEST_CASE(MobileCommandsTestThird, MobileCommandsListThird);
TYPED_TEST(MobileCommandsTestFirst, CtorAndDtorCall) {
- utils::SharedPtr<typename TestFixture::CommandType> command =
+ std::shared_ptr<typename TestFixture::CommandType> command =
this->template CreateCommand<typename TestFixture::CommandType>();
UNUSED(command);
}
TYPED_TEST(MobileCommandsTestSecond, CtorAndDtorCall) {
- utils::SharedPtr<typename TestFixture::CommandType> command =
+ std::shared_ptr<typename TestFixture::CommandType> command =
this->template CreateCommand<typename TestFixture::CommandType>();
UNUSED(command);
}
TYPED_TEST(MobileCommandsTestThird, CtorAndDtorCall) {
- utils::SharedPtr<typename TestFixture::CommandType> command =
+ std::shared_ptr<typename TestFixture::CommandType> command =
this->template CreateCommand<typename TestFixture::CommandType>();
UNUSED(command);
}
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/end_audio_pass_thru_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/end_audio_pass_thru_request_test.cc
index 567f46e4ea..304cf13ffd 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/end_audio_pass_thru_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/end_audio_pass_thru_request_test.cc
@@ -60,7 +60,7 @@ using sdl_rpc_plugin::commands::EndAudioPassThruRequest;
using am::event_engine::Event;
using am::MockMessageHelper;
-typedef SharedPtr<EndAudioPassThruRequest> EndAudioPassThruRequestPtr;
+typedef std::shared_ptr<EndAudioPassThruRequest> EndAudioPassThruRequestPtr;
class EndAudioPassThruRequestTest
: public CommandRequestTest<CommandsTestMocks::kIsNice> {};
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/get_way_points_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/get_way_points_request_test.cc
index 0239f3c7d7..09a3336a10 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/get_way_points_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/get_way_points_request_test.cc
@@ -31,7 +31,7 @@
*/
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "application_manager/commands/commands_test.h"
#include "application_manager/commands/command_request_test.h"
#include "application_manager/application.h"
@@ -58,7 +58,7 @@ using sdl_rpc_plugin::commands::GetWayPointsRequest;
using application_manager::MockMessageHelper;
using application_manager::MockHmiInterfaces;
-typedef SharedPtr<GetWayPointsRequest> CommandPtr;
+typedef std::shared_ptr<GetWayPointsRequest> CommandPtr;
typedef mobile_apis::Result::eType MobileResult;
typedef hmi_apis::Common_Result::eType HmiResult;
@@ -75,7 +75,7 @@ class GetWayPointsRequestTest
GetWayPointsRequestTest() : mock_app_(CreateMockApp()) {}
void SetUp() OVERRIDE {
- message_ = utils::MakeShared<SmartObject>(::smart_objects::SmartType_Map);
+ message_ = std::make_shared<SmartObject>(::smart_objects::SmartType_Map);
(*message_)[am::strings::msg_params] =
::smart_objects::SmartObject(::smart_objects::SmartType_Map);
@@ -85,7 +85,7 @@ class GetWayPointsRequestTest
MockAppPtr mock_app_;
MessageSharedPtr message_;
- utils::SharedPtr<GetWayPointsRequest> command_sptr_;
+ std::shared_ptr<GetWayPointsRequest> command_sptr_;
};
class GetWayPointsRequestOnEventTest
@@ -133,7 +133,7 @@ TEST_F(GetWayPointsRequestTest,
(*message_)[am::strings::params][am::strings::connection_key] =
kConnectionKey;
- utils::SharedPtr<am::Application> null_application_sptr;
+ std::shared_ptr<am::Application> null_application_sptr;
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(null_application_sptr));
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/list_files_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/list_files_request_test.cc
index f9fd31f99a..3fcc4225f3 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/list_files_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/list_files_request_test.cc
@@ -34,7 +34,7 @@
#include <string>
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/commands/commands_test.h"
#include "application_manager/commands/command_request_test.h"
@@ -69,10 +69,10 @@ class ListFilesRequestTest
};
TEST_F(ListFilesRequestTest, Run_AppNotRegistered_UNSUCCESS) {
- SharedPtr<ListFilesRequest> command(CreateCommand<ListFilesRequest>());
+ std::shared_ptr<ListFilesRequest> command(CreateCommand<ListFilesRequest>());
ON_CALL(app_mngr_, application(_))
- .WillByDefault(Return(SharedPtr<am::Application>()));
+ .WillByDefault(Return(std::shared_ptr<am::Application>()));
MessageSharedPtr result_msg(CatchMobileCommandResult(CallRun(*command)));
EXPECT_EQ(mobile_apis::Result::APPLICATION_NOT_REGISTERED,
@@ -83,7 +83,7 @@ TEST_F(ListFilesRequestTest, Run_AppNotRegistered_UNSUCCESS) {
TEST_F(ListFilesRequestTest, Run_TooManyHmiNone_UNSUCCESS) {
MockAppPtr app(CreateMockApp());
- SharedPtr<ListFilesRequest> command(CreateCommand<ListFilesRequest>());
+ std::shared_ptr<ListFilesRequest> command(CreateCommand<ListFilesRequest>());
ON_CALL(app_mngr_, application(_)).WillByDefault(Return(app));
ON_CALL(*app, hmi_level())
@@ -108,7 +108,7 @@ TEST_F(ListFilesRequestTest, Run_TooManyHmiNone_UNSUCCESS) {
TEST_F(ListFilesRequestTest, Run_SUCCESS) {
MockAppPtr app(CreateMockApp());
- SharedPtr<ListFilesRequest> command(CreateCommand<ListFilesRequest>());
+ std::shared_ptr<ListFilesRequest> command(CreateCommand<ListFilesRequest>());
EXPECT_CALL(app_mngr_, get_settings())
.WillRepeatedly(ReturnRef(app_mngr_settings_));
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_button_notification_commands_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_button_notification_commands_test.cc
index d2e86f0103..2ea0091332 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_button_notification_commands_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_button_notification_commands_test.cc
@@ -34,7 +34,7 @@
#include <string>
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
@@ -61,7 +61,7 @@ using ::testing::_;
using ::testing::Types;
using ::testing::Return;
-using ::utils::SharedPtr;
+
using am::commands::MessageSharedPtr;
namespace {
@@ -131,7 +131,7 @@ TYPED_TEST(OnButtonNotificationCommandsTest,
(*notification_msg)[am::strings::msg_params][am::hmi_response::button_name] =
mobile_apis::ButtonName::CUSTOM_BUTTON;
- SharedPtr<Notification> command(
+ std::shared_ptr<Notification> command(
this->template CreateCommand<Notification>(notification_msg));
command->Run();
@@ -148,7 +148,7 @@ TYPED_TEST(OnButtonNotificationCommandsTest,
mobile_apis::ButtonName::CUSTOM_BUTTON;
(*notification_msg)[am::strings::msg_params][am::strings::app_id] = kAppId;
- SharedPtr<Notification> command(
+ std::shared_ptr<Notification> command(
this->template CreateCommand<Notification>(notification_msg));
typename TestFixture::MockAppPtr mock_app = this->CreateMockApp();
@@ -170,7 +170,7 @@ TYPED_TEST(OnButtonNotificationCommandsTest,
(*notification_msg)[am::strings::msg_params]
[am::hmi_response::custom_button_id] = kCustomButtonId;
- SharedPtr<Notification> command(
+ std::shared_ptr<Notification> command(
this->template CreateCommand<Notification>(notification_msg));
EXPECT_CALL(this->app_mngr_, application(kAppId))
@@ -192,7 +192,7 @@ TYPED_TEST(OnButtonNotificationCommandsTest,
(*notification_msg)[am::strings::msg_params]
[am::hmi_response::custom_button_id] = kCustomButtonId;
- SharedPtr<Notification> command(
+ std::shared_ptr<Notification> command(
this->template CreateCommand<Notification>(notification_msg));
typename TestFixture::MockAppPtr mock_app = this->CreateMockApp();
@@ -216,7 +216,7 @@ TYPED_TEST(OnButtonNotificationCommandsTest, Run_CustomButton_SUCCESS) {
(*notification_msg)[am::strings::msg_params]
[am::hmi_response::custom_button_id] = kCustomButtonId;
- SharedPtr<Notification> command(
+ std::shared_ptr<Notification> command(
this->template CreateCommand<Notification>(notification_msg));
typename TestFixture::MockAppPtr mock_app = this->CreateMockApp();
@@ -241,7 +241,7 @@ TYPED_TEST(OnButtonNotificationCommandsTest, Run_NoSubscribedApps_UNSUCCESS) {
(*notification_msg)[am::strings::msg_params][am::hmi_response::button_name] =
kButtonName;
- SharedPtr<Notification> command(
+ std::shared_ptr<Notification> command(
this->template CreateCommand<Notification>(notification_msg));
const std::vector<ApplicationSharedPtr> empty_subscribed_apps_list;
@@ -260,7 +260,7 @@ TYPED_TEST(OnButtonNotificationCommandsTest, Run_InvalidHmiLevel_UNSUCCESS) {
(*notification_msg)[am::strings::msg_params][am::hmi_response::button_name] =
kButtonName;
- SharedPtr<Notification> command(
+ std::shared_ptr<Notification> command(
this->template CreateCommand<Notification>(notification_msg));
typename TestFixture::MockAppPtr mock_app = this->CreateMockApp();
@@ -286,7 +286,7 @@ TYPED_TEST(OnButtonNotificationCommandsTest,
(*notification_msg)[am::strings::msg_params][am::hmi_response::button_name] =
kButtonName;
- SharedPtr<Notification> command(
+ std::shared_ptr<Notification> command(
this->template CreateCommand<Notification>(notification_msg));
typename TestFixture::MockAppPtr mock_app = this->CreateMockApp();
@@ -312,7 +312,7 @@ TYPED_TEST(OnButtonNotificationCommandsTest, Run_SUCCESS) {
(*notification_msg)[am::strings::msg_params][am::hmi_response::button_name] =
kButtonName;
- SharedPtr<Notification> command(
+ std::shared_ptr<Notification> command(
this->template CreateCommand<Notification>(notification_msg));
typename TestFixture::MockAppPtr mock_app = this->CreateMockApp();
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_command_notification_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_command_notification_test.cc
index 9e12303f23..2fd6f6137d 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_command_notification_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_command_notification_test.cc
@@ -34,7 +34,7 @@
#include <string>
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
#include "application_manager/commands/commands_test.h"
@@ -55,7 +55,7 @@ using ::testing::Return;
using am::commands::MessageSharedPtr;
using sdl_rpc_plugin::commands::OnCommandNotification;
-typedef ::utils::SharedPtr<OnCommandNotification> CommandPtr;
+typedef std::shared_ptr<OnCommandNotification> CommandPtr;
namespace {
const uint32_t kAppId = 1u;
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hash_change_notification_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hash_change_notification_test.cc
index 86df3cdab6..1d6711e36f 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hash_change_notification_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hash_change_notification_test.cc
@@ -63,7 +63,7 @@ TEST_F(OnHashChangeNotificationTest, Run_ValidApp_SUCCESS) {
MessageSharedPtr msg = CreateMessage();
(*msg)[strings::params][strings::connection_key] = kConnectionKey;
- SharedPtr<OnHashChangeNotification> command =
+ std::shared_ptr<OnHashChangeNotification> command =
CreateCommand<OnHashChangeNotification>(msg);
std::string return_string = "1234";
@@ -93,7 +93,7 @@ TEST_F(OnHashChangeNotificationTest, Run_InvalidApp_NoNotification) {
MessageSharedPtr msg = CreateMessage();
(*msg)[strings::params][strings::connection_key] = kConnectionKey;
- SharedPtr<OnHashChangeNotification> command =
+ std::shared_ptr<OnHashChangeNotification> command =
CreateCommand<OnHashChangeNotification>(msg);
std::string return_string;
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hmi_status_notification_from_mobile_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hmi_status_notification_from_mobile_test.cc
index 43e01c5a3d..333c204d57 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hmi_status_notification_from_mobile_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hmi_status_notification_from_mobile_test.cc
@@ -78,7 +78,7 @@ TEST_F(OnHMIStatusNotificationFromMobileTest,
Run_CurrentStateForeground_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::HMI_FULL);
- SharedPtr<OnHMIStatusNotificationFromMobile> command =
+ std::shared_ptr<OnHMIStatusNotificationFromMobile> command =
CreateCommand<OnHMIStatusNotificationFromMobile>(msg);
MockAppPtr mock_app = CreateMockApp();
@@ -106,7 +106,7 @@ TEST_F(OnHMIStatusNotificationFromMobileTest,
TEST_F(OnHMIStatusNotificationFromMobileTest, Run_InvalidApp_NoNotification) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::HMI_FULL);
- SharedPtr<OnHMIStatusNotificationFromMobile> command =
+ std::shared_ptr<OnHMIStatusNotificationFromMobile> command =
CreateCommand<OnHMIStatusNotificationFromMobile>(msg);
MockAppPtr mock_app = CreateMockApp();
@@ -132,7 +132,7 @@ TEST_F(OnHMIStatusNotificationFromMobileTest,
Run_CurrentStateNotForeground_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::HMI_BACKGROUND);
- SharedPtr<OnHMIStatusNotificationFromMobile> command =
+ std::shared_ptr<OnHMIStatusNotificationFromMobile> command =
CreateCommand<OnHMIStatusNotificationFromMobile>(msg);
MockAppPtr mock_app = CreateMockApp();
@@ -161,7 +161,7 @@ TEST_F(OnHMIStatusNotificationFromMobileTest,
Run_ProtocolVersionKV3_NoNotification) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::HMI_BACKGROUND);
- SharedPtr<OnHMIStatusNotificationFromMobile> command =
+ std::shared_ptr<OnHMIStatusNotificationFromMobile> command =
CreateCommand<OnHMIStatusNotificationFromMobile>(msg);
MockAppPtr mock_app = CreateMockApp();
@@ -190,7 +190,7 @@ TEST_F(OnHMIStatusNotificationFromMobileTest,
Run_AppNotRequestedBeforeAndKV3_NoNotification) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::HMI_FULL);
- SharedPtr<OnHMIStatusNotificationFromMobile> command =
+ std::shared_ptr<OnHMIStatusNotificationFromMobile> command =
CreateCommand<OnHMIStatusNotificationFromMobile>(msg);
MockAppPtr mock_app = CreateMockApp();
@@ -218,7 +218,7 @@ TEST_F(OnHMIStatusNotificationFromMobileTest,
Run_AppNotRequestedBefore_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::HMI_FULL);
- SharedPtr<OnHMIStatusNotificationFromMobile> command =
+ std::shared_ptr<OnHMIStatusNotificationFromMobile> command =
CreateCommand<OnHMIStatusNotificationFromMobile>(msg);
MockAppPtr mock_app = CreateMockApp();
@@ -249,7 +249,7 @@ TEST_F(OnHMIStatusNotificationFromMobileTest,
Run_AnotherForegroundSDLApp_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::HMI_FULL);
- SharedPtr<OnHMIStatusNotificationFromMobile> command =
+ std::shared_ptr<OnHMIStatusNotificationFromMobile> command =
CreateCommand<OnHMIStatusNotificationFromMobile>(msg);
MockAppPtr mock_app = CreateMockApp();
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hmi_status_notification_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hmi_status_notification_test.cc
index afb1574cbf..ba3b1e8f1d 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hmi_status_notification_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_hmi_status_notification_test.cc
@@ -85,7 +85,7 @@ class OnHMIStatusNotificationTest
TEST_F(OnHMIStatusNotificationTest, Run_InvalidApp_NoNotification) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::HMI_FULL);
- SharedPtr<OnHMIStatusNotification> command =
+ std::shared_ptr<OnHMIStatusNotification> command =
CreateCommand<OnHMIStatusNotification>(msg);
MockAppPtr mock_app = CreateMockApp();
@@ -104,7 +104,7 @@ TEST_F(OnHMIStatusNotificationTest, Run_InvalidApp_NoNotification) {
TEST_F(OnHMIStatusNotificationTest, Run_InvalidEnum_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::INVALID_ENUM);
- SharedPtr<OnHMIStatusNotification> command =
+ std::shared_ptr<OnHMIStatusNotification> command =
CreateCommand<OnHMIStatusNotification>(msg);
MockAppPtr mock_app = CreateMockApp();
@@ -121,7 +121,7 @@ TEST_F(OnHMIStatusNotificationTest, Run_InvalidEnum_SUCCESS) {
TEST_F(OnHMIStatusNotificationTest, Run_FullAndFalseProperties_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::HMI_FULL);
- SharedPtr<OnHMIStatusNotification> command =
+ std::shared_ptr<OnHMIStatusNotification> command =
CreateCommand<OnHMIStatusNotification>(msg);
MockAppPtr mock_app = CreateMockApp();
@@ -143,7 +143,7 @@ TEST_F(OnHMIStatusNotificationTest, Run_FullAndFalseProperties_SUCCESS) {
TEST_F(OnHMIStatusNotificationTest, Run_FullAndTrueProperties_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams(mobile_apis::HMILevel::HMI_FULL);
- SharedPtr<OnHMIStatusNotification> command =
+ std::shared_ptr<OnHMIStatusNotification> command =
CreateCommand<OnHMIStatusNotification>(msg);
MockAppPtr mock_app = CreateMockApp();
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_keyboard_input_notification_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_keyboard_input_notification_test.cc
index ebfc2256ac..04f88e2b13 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_keyboard_input_notification_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_keyboard_input_notification_test.cc
@@ -79,8 +79,8 @@ class OnKeyBoardInputNotificationTest
(*msg)[strings::params][strings::protocol_version].asInt());
}
- MockAppPtr InitAppSetDataAccessor(SharedPtr<ApplicationSet>& app_set) {
- app_set = (!app_set ? ::utils::MakeShared<ApplicationSet>() : app_set);
+ MockAppPtr InitAppSetDataAccessor(std::shared_ptr<ApplicationSet>& app_set) {
+ app_set = (!app_set ? std::make_shared<ApplicationSet>() : app_set);
MockAppPtr app(CreateMockApp());
app_set->insert(app);
EXPECT_CALL(app_mngr_, applications())
@@ -88,14 +88,14 @@ class OnKeyBoardInputNotificationTest
return app;
}
- SharedPtr<ApplicationSet> app_set_;
+ std::shared_ptr<ApplicationSet> app_set_;
std::shared_ptr<sync_primitives::Lock> lock_;
};
TEST_F(OnKeyBoardInputNotificationTest, Run_ActionActive_SUCCESS) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<OnKeyBoardInputNotification> command =
+ std::shared_ptr<OnKeyBoardInputNotification> command =
CreateCommand<OnKeyBoardInputNotification>(msg);
MockAppPtr mock_app(InitAppSetDataAccessor(app_set_));
@@ -119,7 +119,7 @@ TEST_F(OnKeyBoardInputNotificationTest, Run_ActionActive_SUCCESS) {
TEST_F(OnKeyBoardInputNotificationTest, Run_ActionNotActive_SUCCESS) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<OnKeyBoardInputNotification> command =
+ std::shared_ptr<OnKeyBoardInputNotification> command =
CreateCommand<OnKeyBoardInputNotification>(msg);
MockAppPtr mock_app(InitAppSetDataAccessor(app_set_));
@@ -144,7 +144,7 @@ TEST_F(OnKeyBoardInputNotificationTest, Run_ActionNotActive_SUCCESS) {
TEST_F(OnKeyBoardInputNotificationTest, Run_InvalidApp_NoNotification) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<OnKeyBoardInputNotification> command =
+ std::shared_ptr<OnKeyBoardInputNotification> command =
CreateCommand<OnKeyBoardInputNotification>(msg);
MockAppPtr mock_app(InitAppSetDataAccessor(app_set_));
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_system_request_notification_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_system_request_notification_test.cc
index d6e1b2fe52..4981301e07 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_system_request_notification_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_system_request_notification_test.cc
@@ -88,7 +88,7 @@ TEST_F(OnSystemRequestNotificationTest, Run_ProprietaryType_SUCCESS) {
(*msg)[strings::params][strings::connection_key] = kConnectionKey;
(*msg)[strings::msg_params][strings::request_type] = request_type;
- SharedPtr<OnSystemRequestNotification> command =
+ std::shared_ptr<OnSystemRequestNotification> command =
CreateCommand<OnSystemRequestNotification>(msg);
EXPECT_CALL(app_mngr_, application(kConnectionKey))
@@ -128,7 +128,7 @@ TEST_F(OnSystemRequestNotificationTest, Run_HTTPType_SUCCESS) {
(*msg)[strings::params][strings::connection_key] = kConnectionKey;
(*msg)[strings::msg_params][strings::request_type] = request_type;
- SharedPtr<OnSystemRequestNotification> command =
+ std::shared_ptr<OnSystemRequestNotification> command =
CreateCommand<OnSystemRequestNotification>(msg);
EXPECT_CALL(app_mngr_, application(kConnectionKey))
@@ -162,7 +162,7 @@ TEST_F(OnSystemRequestNotificationTest, Run_InvalidApp_NoNotification) {
(*msg)[strings::params][strings::connection_key] = kConnectionKey;
(*msg)[strings::msg_params][strings::request_type] = request_type;
- SharedPtr<OnSystemRequestNotification> command =
+ std::shared_ptr<OnSystemRequestNotification> command =
CreateCommand<OnSystemRequestNotification>(msg);
EXPECT_CALL(app_mngr_, application(kConnectionKey))
@@ -185,7 +185,7 @@ TEST_F(OnSystemRequestNotificationTest, Run_RequestNotAllowed_NoNotification) {
(*msg)[strings::params][strings::connection_key] = kConnectionKey;
(*msg)[strings::msg_params][strings::request_type] = request_type;
- SharedPtr<OnSystemRequestNotification> command =
+ std::shared_ptr<OnSystemRequestNotification> command =
CreateCommand<OnSystemRequestNotification>(msg);
EXPECT_CALL(app_mngr_, application(kConnectionKey))
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_tbt_client_state_notification_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_tbt_client_state_notification_test.cc
index 14939a433d..3d989db478 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_tbt_client_state_notification_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_tbt_client_state_notification_test.cc
@@ -35,7 +35,7 @@
#include "gtest/gtest.h"
#include "mobile/on_tbt_client_state_notification.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
#include "application_manager/commands/commands_test.h"
@@ -56,7 +56,7 @@ using ::testing::Return;
using am::commands::MessageSharedPtr;
using sdl_rpc_plugin::commands::OnTBTClientStateNotification;
-typedef ::utils::SharedPtr<OnTBTClientStateNotification> NotificationPtr;
+typedef std::shared_ptr<OnTBTClientStateNotification> NotificationPtr;
namespace {
const uint32_t kAppId = 1u;
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_touch_event_notification_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_touch_event_notification_test.cc
index 4576637d8d..f69dd5da2e 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_touch_event_notification_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_touch_event_notification_test.cc
@@ -35,7 +35,7 @@
#include "gtest/gtest.h"
#include "mobile/on_touch_event_notification.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
#include "application_manager/commands/commands_test.h"
@@ -56,7 +56,7 @@ using ::testing::Return;
using am::commands::MessageSharedPtr;
using sdl_rpc_plugin::commands::mobile::OnTouchEventNotification;
-typedef ::utils::SharedPtr<OnTouchEventNotification> NotificationPtr;
+typedef std::shared_ptr<OnTouchEventNotification> NotificationPtr;
namespace {
const uint32_t kAppId = 1u;
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_way_point_change_notification_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_way_point_change_notification_test.cc
index e0b7ab3b38..97a290e792 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_way_point_change_notification_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/on_way_point_change_notification_test.cc
@@ -35,7 +35,7 @@
#include "gtest/gtest.h"
#include "mobile/on_way_point_change_notification.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
#include "application_manager/commands/commands_test.h"
@@ -56,7 +56,7 @@ using ::testing::Return;
using am::commands::MessageSharedPtr;
using sdl_rpc_plugin::commands::OnWayPointChangeNotification;
-typedef ::utils::SharedPtr<OnWayPointChangeNotification> NotificationPtr;
+typedef std::shared_ptr<OnWayPointChangeNotification> NotificationPtr;
namespace {
const uint32_t kAppId = 1u;
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_audio_pass_thru_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_audio_pass_thru_test.cc
index f06a642e3b..7d01dcb722 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_audio_pass_thru_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_audio_pass_thru_test.cc
@@ -55,7 +55,7 @@ using sdl_rpc_plugin::commands::PerformAudioPassThruRequest;
using am::commands::CommandImpl;
using am::commands::MessageSharedPtr;
using am::MockMessageHelper;
-using ::utils::SharedPtr;
+
using ::testing::_;
using ::testing::Return;
using ::testing::ReturnRef;
@@ -80,7 +80,7 @@ class PerformAudioPassThruRequestTest
public:
PerformAudioPassThruRequestTest()
: mock_app_(CreateMockApp())
- , message_(utils::MakeShared<SmartObject>(::smart_objects::SmartType_Map))
+ , message_(std::make_shared<SmartObject>(::smart_objects::SmartType_Map))
, msg_params_((*message_)[am::strings::msg_params]) {}
MessageSharedPtr CreateFullParamsUISO() {
@@ -151,7 +151,7 @@ class PerformAudioPassThruRequestTest
MockAppPtr mock_app_;
MessageSharedPtr message_;
::smart_objects::SmartObject& msg_params_;
- utils::SharedPtr<PerformAudioPassThruRequest> command_sptr_;
+ std::shared_ptr<PerformAudioPassThruRequest> command_sptr_;
MockAppPtr application_sptr_;
};
@@ -162,10 +162,10 @@ TEST_F(PerformAudioPassThruRequestTest, OnTimeout_GENERIC_ERROR) {
(*msg_ui)[am::strings::msg_params][am::strings::success] = false;
MessageSharedPtr message =
- utils::MakeShared<SmartObject>(::smart_objects::SmartType_Map);
+ std::make_shared<SmartObject>(::smart_objects::SmartType_Map);
(*message)[am::strings::params][am::strings::connection_key] = kConnectionKey;
- utils::SharedPtr<PerformAudioPassThruRequest> command =
+ std::shared_ptr<PerformAudioPassThruRequest> command =
CreateCommand<PerformAudioPassThruRequest>(message);
uint32_t app_id = kConnectionKey;
@@ -209,7 +209,7 @@ TEST_F(PerformAudioPassThruRequestTest,
EXPECT_CALL(*application_sptr_, hmi_level())
.WillOnce(Return(am::mobile_api::HMILevel::HMI_FULL));
- utils::SharedPtr<PerformAudioPassThruRequest> command =
+ std::shared_ptr<PerformAudioPassThruRequest> command =
CreateCommand<PerformAudioPassThruRequest>(mobile_request);
ON_CALL(mock_hmi_interfaces_,
@@ -271,7 +271,7 @@ TEST_F(PerformAudioPassThruRequestTest,
TEST_F(PerformAudioPassThruRequestTest,
Run_InvalidApp_ApplicationNotRegisteredResponce) {
- utils::SharedPtr<am::Application> null_application_sptr;
+ std::shared_ptr<am::Application> null_application_sptr;
EXPECT_CALL(app_mngr_, application(_))
.WillOnce(Return(null_application_sptr));
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_interaction_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_interaction_test.cc
index 2ffe9195b6..e4ed330681 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_interaction_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_interaction_test.cc
@@ -37,9 +37,9 @@
#include "mobile/perform_interaction_request.h"
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "utils/helpers.h"
-#include "utils/make_shared.h"
+
#include "smart_objects/smart_object.h"
#include "utils/custom_string.h"
#include "application_manager/commands/command_request_test.h"
@@ -63,7 +63,7 @@ using am::commands::MessageSharedPtr;
using am::ApplicationSharedPtr;
using am::MockMessageHelper;
using ::testing::_;
-using ::utils::SharedPtr;
+
using ::testing::Return;
using ::testing::ReturnRef;
using sdl_rpc_plugin::commands::PerformInteractionRequest;
@@ -113,7 +113,7 @@ TEST_F(PerformInteractionRequestTest, OnTimeout_VR_GENERIC_ERROR) {
MessageSharedPtr request_msg = CreateMessage(smart_objects::SmartType_Map);
(*request_msg)[strings::msg_params][strings::interaction_mode] =
mobile_apis::InteractionMode::BOTH;
- utils::SharedPtr<PerformInteractionRequest> command =
+ std::shared_ptr<PerformInteractionRequest> command =
CreateCommand<PerformInteractionRequest>(request_msg);
MockAppPtr mock_app;
@@ -156,7 +156,7 @@ TEST_F(PerformInteractionRequestTest,
(*msg_from_mobile)[strings::params][strings::connection_key] = kConnectionKey;
(*msg_from_mobile)[strings::msg_params][strings::interaction_mode] =
mobile_apis::InteractionMode::VR_ONLY;
- utils::SharedPtr<PerformInteractionRequest> command =
+ std::shared_ptr<PerformInteractionRequest> command =
CreateCommand<PerformInteractionRequest>(msg_from_mobile);
command->Init();
@@ -210,7 +210,7 @@ TEST_F(PerformInteractionRequestTest,
(*msg_from_mobile)[strings::params][strings::connection_key] = kConnectionKey;
(*msg_from_mobile)[strings::msg_params][strings::interaction_mode] =
mobile_apis::InteractionMode::VR_ONLY;
- utils::SharedPtr<PerformInteractionRequest> command =
+ std::shared_ptr<PerformInteractionRequest> command =
CreateCommand<PerformInteractionRequest>(msg_from_mobile);
ON_CALL(mock_hmi_interfaces_,
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/put_file_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/put_file_test.cc
index c5feeeba25..6f151d4080 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/put_file_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/put_file_test.cc
@@ -42,7 +42,7 @@
#include "mobile/put_file_response.h"
#include "mobile/put_file_request.h"
-#include "utils/make_shared.h"
+
#include "utils/file_system.h"
#include "smart_objects/smart_object.h"
#include "interfaces/MOBILE_API.h"
@@ -68,8 +68,8 @@ using sdl_rpc_plugin::commands::PutFileResponse;
using am::commands::MessageSharedPtr;
using policy_test::MockPolicyHandlerInterface;
-typedef SharedPtr<PutFileRequest> PutFileRequestPtr;
-typedef SharedPtr<PutFileResponse> PutFileResponsePtr;
+typedef std::shared_ptr<PutFileRequest> PutFileRequestPtr;
+typedef std::shared_ptr<PutFileResponse> PutFileResponsePtr;
namespace {
const uint32_t kConnectionKey = 1u;
@@ -131,7 +131,7 @@ class PutFileResponceTest : public CommandsTest<CommandsTestMocks::kIsNice> {
}
MessageSharedPtr message_;
- SharedPtr<PutFileResponse> command_sptr_;
+ std::shared_ptr<PutFileResponse> command_sptr_;
};
TEST_F(PutFileResponceTest, Run_InvalidApp_ApplicationNotRegisteredResponce) {
@@ -140,7 +140,7 @@ TEST_F(PutFileResponceTest, Run_InvalidApp_ApplicationNotRegisteredResponce) {
message_ref[am::strings::params][am::strings::connection_key] =
kConnectionKey;
- utils::SharedPtr<am::Application> null_application_sptr;
+ std::shared_ptr<am::Application> null_application_sptr;
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(null_application_sptr));
EXPECT_CALL(
@@ -158,8 +158,8 @@ TEST_F(PutFileResponceTest, Run_ApplicationRegistered_Success) {
kConnectionKey;
message_ref[am::strings::msg_params][am::strings::success] = true;
- utils::SharedPtr<am::Application> application_sptr =
- utils::MakeShared<MockApplication>();
+ std::shared_ptr<am::Application> application_sptr =
+ std::make_shared<MockApplication>();
EXPECT_CALL(app_mngr_, application(kConnectionKey))
.WillOnce(Return(application_sptr));
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/register_app_interface_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/register_app_interface_request_test.cc
index a44a4a452a..807d59fac2 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/register_app_interface_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/register_app_interface_request_test.cc
@@ -36,7 +36,7 @@
#include "gtest/gtest.h"
#include "mobile/register_app_interface_request.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/commands/commands_test.h"
#include "application_manager/commands/command_request_test.h"
@@ -70,7 +70,7 @@ using ::testing::DoAll;
namespace am = ::application_manager;
-using ::utils::SharedPtr;
+
using am::commands::MessageSharedPtr;
using sdl_rpc_plugin::commands::RegisterAppInterfaceRequest;
@@ -220,12 +220,12 @@ class RegisterAppInterfaceRequestTest
EXPECT_CALL(
app_mngr_,
OnApplicationSwitched(
- MockAppPtr::static_pointer_cast<application_manager::Application>(
+ std::static_pointer_cast<application_manager::Application>(
mock_app)));
}
MessageSharedPtr msg_;
- SharedPtr<RegisterAppInterfaceRequest> command_;
+ std::shared_ptr<RegisterAppInterfaceRequest> command_;
const utils::custom_string::CustomString app_name_;
std::shared_ptr<sync_primitives::Lock> lock_ptr_;
@@ -279,7 +279,7 @@ TEST_F(RegisterAppInterfaceRequestTest, Run_MinimalData_SUCCESS) {
ON_CALL(mock_policy_handler_, GetInitialAppData(kAppId, _, _))
.WillByDefault(Return(true));
policy::StatusNotifier notify_upd_manager =
- utils::MakeShared<utils::CallNothing>();
+ std::make_shared<utils::CallNothing>();
ON_CALL(mock_policy_handler_, AddApplication(_, _))
.WillByDefault(Return(notify_upd_manager));
@@ -377,7 +377,7 @@ TEST_F(RegisterAppInterfaceRequestTest,
ON_CALL(mock_policy_handler_, GetInitialAppData(kAppId, _, _))
.WillByDefault(Return(true));
policy::StatusNotifier notify_upd_manager =
- utils::MakeShared<utils::CallNothing>();
+ std::make_shared<utils::CallNothing>();
ON_CALL(mock_policy_handler_, AddApplication(_, _))
.WillByDefault(Return(notify_upd_manager));
@@ -434,7 +434,7 @@ TEST_F(RegisterAppInterfaceRequestTest,
EXPECT_CALL(
mock_resume_crt_,
CheckApplicationHash(
- MockAppPtr::static_pointer_cast<application_manager::Application>(
+ std::static_pointer_cast<application_manager::Application>(
mock_app),
request_hash_id)).WillOnce(Return(true));
@@ -469,14 +469,14 @@ TEST_F(RegisterAppInterfaceRequestTest,
EXPECT_CALL(
mock_resume_crt_,
CheckApplicationHash(
- MockAppPtr::static_pointer_cast<application_manager::Application>(
+ std::static_pointer_cast<application_manager::Application>(
mock_app),
request_hash_id)).WillOnce(Return(false));
EXPECT_CALL(
mock_application_helper_,
RecallApplicationData(
- MockAppPtr::static_pointer_cast<application_manager::Application>(
+ std::static_pointer_cast<application_manager::Application>(
mock_app),
_));
@@ -506,7 +506,7 @@ TEST_F(RegisterAppInterfaceRequestTest,
EXPECT_CALL(
mock_application_helper_,
RecallApplicationData(
- MockAppPtr::static_pointer_cast<application_manager::Application>(
+ std::static_pointer_cast<application_manager::Application>(
mock_app),
_));
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/reset_global_properties_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/reset_global_properties_test.cc
index 4cdf4f8858..6eafae16c2 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/reset_global_properties_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/reset_global_properties_test.cc
@@ -38,8 +38,8 @@
#include "mobile/reset_global_properties_response.h"
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
-#include "utils/make_shared.h"
+
+
#include "smart_objects/smart_object.h"
#include "interfaces/HMI_API.h"
#include "interfaces/MOBILE_API.h"
@@ -69,8 +69,8 @@ using am::commands::MessageSharedPtr;
using am::event_engine::Event;
using am::MockMessageHelper;
-typedef SharedPtr<ResetGlobalPropertiesRequest> ResetGlobalPropertiesRequestPtr;
-typedef SharedPtr<ResetGlobalPropertiesResponse>
+typedef std::shared_ptr<ResetGlobalPropertiesRequest> ResetGlobalPropertiesRequestPtr;
+typedef std::shared_ptr<ResetGlobalPropertiesResponse>
ResetGlobalPropertiesResponsePtr;
namespace {
@@ -219,7 +219,7 @@ TEST_F(ResetGlobalPropertiesRequestTest, Run_SUCCESS) {
EXPECT_CALL(*mock_app_, set_reset_global_properties_active(true));
smart_objects::SmartObjectSPtr vr_help =
- ::utils::MakeShared<smart_objects::SmartObject>(
+ std::make_shared<smart_objects::SmartObject>(
smart_objects::SmartType_Map);
EXPECT_CALL(mock_message_helper_, CreateAppVrHelp(_))
.WillOnce(Return(vr_help));
@@ -232,7 +232,7 @@ TEST_F(ResetGlobalPropertiesRequestTest, Run_SUCCESS) {
set_menu_title(msg_params[am::hmi_request::menu_title]));
const smart_objects::SmartObjectSPtr so_help_prompt =
- ::utils::MakeShared<smart_objects::SmartObject>(
+ std::make_shared<smart_objects::SmartObject>(
smart_objects::SmartType_Map);
EXPECT_CALL(*mock_app_, help_prompt()).WillOnce(Return(so_help_prompt.get()));
EXPECT_CALL(*mock_app_, timeout_prompt())
@@ -271,7 +271,7 @@ TEST_F(ResetGlobalPropertiesRequestTest,
EXPECT_CALL(*mock_app_, set_reset_global_properties_active(true));
smart_objects::SmartObjectSPtr vr_help =
- ::utils::MakeShared<smart_objects::SmartObject>(
+ std::make_shared<smart_objects::SmartObject>(
smart_objects::SmartType_Map);
EXPECT_CALL(mock_message_helper_, CreateAppVrHelp(_))
.WillOnce(Return(vr_help));
@@ -310,7 +310,7 @@ TEST_F(ResetGlobalPropertiesRequestTest,
EXPECT_CALL(*mock_app_, set_timeout_prompt(_));
smart_objects::SmartObjectSPtr prompt =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
*prompt = "prompt";
EXPECT_CALL(*mock_app_, timeout_prompt()).WillOnce(Return(prompt.get()));
@@ -368,7 +368,7 @@ TEST_F(ResetGlobalPropertiesRequestTest, OnEvent_InvalidApp_NoHashUpdate) {
hmi_apis::FunctionID::UI_SetGlobalProperties)))
.WillOnce(Return(true));
smart_objects::SmartObjectSPtr vr_help =
- ::utils::MakeShared<smart_objects::SmartObject>(
+ std::make_shared<smart_objects::SmartObject>(
smart_objects::SmartType_Map);
EXPECT_CALL(mock_message_helper_, CreateAppVrHelp(_))
.WillOnce(Return(vr_help));
@@ -406,7 +406,7 @@ TEST_F(ResetGlobalPropertiesRequestTest,
EXPECT_CALL(*mock_app_, set_timeout_prompt(_));
smart_objects::SmartObjectSPtr prompt =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
*prompt = "prompt";
EXPECT_CALL(*mock_app_, timeout_prompt()).WillOnce(Return(prompt.get()));
@@ -439,7 +439,7 @@ TEST_F(ResetGlobalPropertiesRequestTest,
// TTS doesn't respond, so timeout should send generic error
smart_objects::SmartObjectSPtr response =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
(*response)[am::strings::msg_params][am::strings::result_code] =
mobile_apis::Result::GENERIC_ERROR;
EXPECT_CALL(mock_message_helper_, CreateNegativeResponse(_, _, _, _))
@@ -471,7 +471,7 @@ TEST_F(ResetGlobalPropertiesRequestTest,
EXPECT_CALL(*mock_app_, set_timeout_prompt(_));
smart_objects::SmartObjectSPtr prompt =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
*prompt = "prompt";
EXPECT_CALL(*mock_app_, timeout_prompt()).WillOnce(Return(prompt.get()));
@@ -501,7 +501,7 @@ TEST_F(ResetGlobalPropertiesRequestTest,
// UI doesn't respond, so timeout should send generic error
smart_objects::SmartObjectSPtr response =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
(*response)[am::strings::msg_params][am::strings::result_code] =
mobile_apis::Result::GENERIC_ERROR;
EXPECT_CALL(mock_message_helper_, CreateNegativeResponse(_, _, _, _))
@@ -535,7 +535,7 @@ TEST_F(ResetGlobalPropertiesRequestTest,
EXPECT_CALL(*mock_app_, set_timeout_prompt(_));
smart_objects::SmartObjectSPtr prompt =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
*prompt = "prompt";
EXPECT_CALL(*mock_app_, timeout_prompt()).WillOnce(Return(prompt.get()));
@@ -555,7 +555,7 @@ TEST_F(ResetGlobalPropertiesRequestTest,
// TTS and UI don't respond, so timeout should send generic error
std::string info = "TTS, UI component does not respond";
smart_objects::SmartObjectSPtr response =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
(*response)[am::strings::msg_params][am::strings::result_code] =
mobile_apis::Result::GENERIC_ERROR;
EXPECT_CALL(mock_message_helper_, CreateNegativeResponse(_, _, _, _))
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/scrollable_message_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/scrollable_message_test.cc
index f550043414..382ccf4b0e 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/scrollable_message_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/scrollable_message_test.cc
@@ -61,7 +61,7 @@ using sdl_rpc_plugin::commands::ScrollableMessageRequest;
using am::commands::CommandImpl;
using am::commands::MessageSharedPtr;
using am::MockMessageHelper;
-using ::utils::SharedPtr;
+
using ::testing::_;
using ::testing::Eq;
using ::testing::Ref;
@@ -116,7 +116,7 @@ class ScrollableMessageRequestTest
MockAppPtr mock_app_;
MessageSharedPtr msg_;
- SharedPtr<ScrollableMessageRequest> command_;
+ std::shared_ptr<ScrollableMessageRequest> command_;
};
typedef ScrollableMessageRequestTest::MockHMICapabilities MockHMICapabilities;
@@ -125,7 +125,7 @@ TEST_F(ScrollableMessageRequestTest, OnEvent_UI_UNSUPPORTED_RESOURCE) {
MessageSharedPtr msg_ui = CreateFullParamsUISO();
(*msg_ui)[am::strings::params][am::strings::connection_key] = kConnectionKey;
- utils::SharedPtr<ScrollableMessageRequest> command =
+ std::shared_ptr<ScrollableMessageRequest> command =
CreateCommand<ScrollableMessageRequest>(msg_ui);
MockAppPtr mock_app = CreateMockApp();
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/send_haptic_data_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/send_haptic_data_test.cc
index c0c44922e3..6c7127e48c 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/send_haptic_data_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/send_haptic_data_test.cc
@@ -57,8 +57,8 @@ using sdl_rpc_plugin::commands::SendHapticDataRequest;
using sdl_rpc_plugin::commands::SendHapticDataResponse;
using am::commands::MessageSharedPtr;
-typedef SharedPtr<SendHapticDataRequest> SendHapticDataRequestPtr;
-typedef SharedPtr<SendHapticDataResponse> SendHapticDataResponsePtr;
+typedef std::shared_ptr<SendHapticDataRequest> SendHapticDataRequestPtr;
+typedef std::shared_ptr<SendHapticDataResponse> SendHapticDataResponsePtr;
namespace {
const uint32_t kConnectionKey = 1u;
@@ -91,7 +91,7 @@ class SendHapticDataResponseTest
}
MessageSharedPtr message_;
- SharedPtr<SendHapticDataResponse> command_sptr_;
+ std::shared_ptr<SendHapticDataResponse> command_sptr_;
};
TEST_F(SendHapticDataRequestTest, Run_SUCCESS) {
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/send_location_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/send_location_request_test.cc
index d0072f6288..bf75e651c6 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/send_location_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/send_location_request_test.cc
@@ -36,7 +36,7 @@
#include "mobile/send_location_request.h"
#include "application_manager/mock_hmi_capabilities.h"
#include "application_manager/mock_message_helper.h"
-#include "utils/shared_ptr.h"
+
#include "application_manager/commands/command_request_test.h"
namespace test {
@@ -50,7 +50,7 @@ using sdl_rpc_plugin::commands::SendLocationRequest;
using application_manager::MockMessageHelper;
using test::components::application_manager_test::MockHMICapabilities;
using smart_objects::SmartObject;
-using utils::SharedPtr;
+
using testing::_;
using testing::Return;
using testing::ReturnRef;
@@ -95,11 +95,11 @@ class SendLocationRequestTest
}
};
- typedef SharedPtr<UnwrappedSendLocationRequest> CommandSPrt;
+ typedef std::shared_ptr<UnwrappedSendLocationRequest> CommandSPrt;
SendLocationRequestTest() {
mock_app_ = CreateMockApp();
- disp_cap_ = utils::MakeShared<SmartObject>(smart_objects::SmartType_Map);
+ disp_cap_ = std::make_shared<SmartObject>(smart_objects::SmartType_Map);
message_ = CreateMessage();
command_ = CreateCommand<UnwrappedSendLocationRequest>(message_);
}
@@ -158,7 +158,7 @@ class SendLocationRequestTest
}
MockAppPtr mock_app_;
- SharedPtr<SmartObject> disp_cap_;
+ std::shared_ptr<SmartObject> disp_cap_;
MessageSharedPtr message_;
CommandSPrt command_;
};
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_app_icon_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_app_icon_test.cc
index e1612dbacb..75d3992c43 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_app_icon_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_app_icon_test.cc
@@ -60,7 +60,7 @@ using am::MockMessageHelper;
using am::MockHmiInterfaces;
using test::components::protocol_handler_test::MockProtocolHandler;
using test::components::protocol_handler_test::MockProtocolHandlerSettings;
-using ::utils::SharedPtr;
+
using ::testing::_;
using ::testing::Return;
using ::testing::ReturnRef;
@@ -110,7 +110,7 @@ TEST_F(SetAppIconRequestTest, OnEvent_UI_UNSUPPORTED_RESOURCE) {
ON_CALL(app_mngr_settings_, app_icons_folder())
.WillByDefault(ReturnRef(dir_path));
- utils::SharedPtr<SetAppIconRequest> req_vr =
+ std::shared_ptr<SetAppIconRequest> req_vr =
CreateCommand<SetAppIconRequest>(msg_vr);
MockAppPtr mock_app = CreateMockApp();
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_display_layout_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_display_layout_test.cc
index 0758fb32f4..1ff65196bf 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_display_layout_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_display_layout_test.cc
@@ -57,12 +57,12 @@ using sdl_rpc_plugin::commands::SetDisplayLayoutRequest;
using am::commands::CommandImpl;
using am::commands::MessageSharedPtr;
using am::MockMessageHelper;
-using ::utils::SharedPtr;
+
using ::testing::_;
using ::testing::Return;
using ::testing::ReturnRef;
-typedef ::utils::SharedPtr<SetDisplayLayoutRequest> CommandPtr;
+typedef std::shared_ptr<SetDisplayLayoutRequest> CommandPtr;
namespace {
const uint32_t kAppId = 1u;
@@ -132,7 +132,7 @@ TEST_F(SetDisplayLayoutRequestTest,
MessageSharedPtr msg_ui = CreateFullParamsUISO();
(*msg_ui)[am::strings::params][am::strings::connection_key] = kConnectionKey;
- utils::SharedPtr<SetDisplayLayoutRequest> command =
+ std::shared_ptr<SetDisplayLayoutRequest> command =
CreateCommand<SetDisplayLayoutRequest>(msg_ui);
MockAppPtr mock_app = CreateMockApp();
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_global_properties_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_global_properties_test.cc
index f39ccf7be3..e849866c1a 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_global_properties_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_global_properties_test.cc
@@ -58,7 +58,7 @@ using am::commands::MessageSharedPtr;
using am::MockMessageHelper;
using am::CommandsMap;
using utils::custom_string::CustomString;
-using ::utils::SharedPtr;
+
using ::testing::_;
using ::testing::Return;
using ::testing::ReturnRef;
@@ -127,7 +127,7 @@ class SetGlobalPropertiesRequestTest
}
void OnEventUISetupHelper(MessageSharedPtr msg,
- SharedPtr<SetGlobalPropertiesRequest> command) {
+ std::shared_ptr<SetGlobalPropertiesRequest> command) {
SmartObject vr_help_title("yes");
SmartObject vr_help_array(smart_objects::SmartType_Array);
VRArraySetupHelper(msg, vr_help_title, vr_help_array);
@@ -154,7 +154,7 @@ class SetGlobalPropertiesRequestTest
}
void OnEventTTSSetupHelper(MessageSharedPtr msg,
- SharedPtr<SetGlobalPropertiesRequest> command) {
+ std::shared_ptr<SetGlobalPropertiesRequest> command) {
SmartObject help_prompt(smart_objects::SmartType_Array);
help_prompt[0][am::strings::text] = "Help_Prompt_One";
(*msg)[am::strings::msg_params][am::strings::help_prompt] = help_prompt;
@@ -275,7 +275,7 @@ TEST_F(SetGlobalPropertiesRequestTest,
(*msg_vr)[am::strings::msg_params][am::strings::vr_commands][0] =
"vr_command";
- utils::SharedPtr<SetGlobalPropertiesRequest> command =
+ std::shared_ptr<SetGlobalPropertiesRequest> command =
CreateCommand<SetGlobalPropertiesRequest>(msg_vr);
EXPECT_CALL(app_mngr_, RemoveAppFromTTSGlobalPropertiesList(kConnectionKey));
@@ -360,7 +360,7 @@ TEST_F(SetGlobalPropertiesRequestTest, OnEvent_SUCCESS_Expect_MessageNotSend) {
am::event_engine::Event event(hmi_apis::FunctionID::TTS_SetGlobalProperties);
event.set_smart_object(*response);
- utils::SharedPtr<SetGlobalPropertiesRequest> command =
+ std::shared_ptr<SetGlobalPropertiesRequest> command =
CreateCommand<SetGlobalPropertiesRequest>(response);
MockAppPtr mock_app(CreateMockApp());
@@ -393,7 +393,7 @@ TEST_F(SetGlobalPropertiesRequestTest,
am::event_engine::Event event_ui(
hmi_apis::FunctionID::UI_SetGlobalProperties);
event_tts.set_smart_object(*response);
- utils::SharedPtr<SetGlobalPropertiesRequest> command =
+ std::shared_ptr<SetGlobalPropertiesRequest> command =
CreateCommand<SetGlobalPropertiesRequest>(response);
EXPECT_CALL(mock_hmi_interfaces_, GetInterfaceState(_))
@@ -427,7 +427,7 @@ TEST_F(SetGlobalPropertiesRequestTest,
TEST_F(SetGlobalPropertiesRequestTest, Run_VRNoMenuAndKeyboard_SUCCESS) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
EXPECT_CALL(
mock_hmi_interfaces_,
@@ -484,7 +484,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_VRWithMenuAndKeyboard_SUCCESS) {
EXPECT_CALL(*mock_help_prompt_manager_,
OnSetGlobalPropertiesReceived(_, false));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -506,7 +506,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_VRBrokenMenuIcon_Canceled) {
EXPECT_CALL(app_mngr_, RemoveAppFromTTSGlobalPropertiesList(_)).Times(0);
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -528,7 +528,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_VRBrokenVRHelp_Canceled) {
EXPECT_CALL(app_mngr_, RemoveAppFromTTSGlobalPropertiesList(_)).Times(0);
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -552,7 +552,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_VRIncorrectSyntax_Canceled) {
EXPECT_CALL(app_mngr_, RemoveAppFromTTSGlobalPropertiesList(_)).Times(0);
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -573,7 +573,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_VRMissingTitle_Canceled) {
EXPECT_CALL(app_mngr_, RemoveAppFromTTSGlobalPropertiesList(kConnectionKey));
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -590,7 +590,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_VRMissingArray_Canceled) {
EXPECT_CALL(app_mngr_, RemoveAppFromTTSGlobalPropertiesList(kConnectionKey));
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -611,7 +611,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_VRWrongOrder_Canceled) {
EXPECT_CALL(app_mngr_, RemoveAppFromTTSGlobalPropertiesList(kConnectionKey));
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -642,7 +642,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_NoVR_SUCCESS) {
GetInterfaceState(am::HmiInterfaces::HMI_INTERFACE_UI))
.WillByDefault(Return(am::HmiInterfaces::STATE_NOT_AVAILABLE));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -671,7 +671,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_NoVRNoDataNoDefault_Canceled) {
GetInterfaceState(am::HmiInterfaces::HMI_INTERFACE_UI))
.WillByDefault(Return(am::HmiInterfaces::STATE_NOT_AVAILABLE));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -699,7 +699,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_NoVRNoDataDefaultCreated_SUCCESS) {
GetInterfaceState(am::HmiInterfaces::HMI_INTERFACE_UI))
.WillByDefault(Return(am::HmiInterfaces::STATE_NOT_AVAILABLE));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -741,7 +741,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_TTSHelpAndTimeout_SUCCESS) {
EXPECT_CALL(*mock_help_prompt_manager_,
OnSetGlobalPropertiesReceived(_, false));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -775,7 +775,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_TTSOnlyHelp_SUCCESS) {
.WillOnce(ReturnRef(*mock_help_prompt_manager_.get()));
EXPECT_CALL(*mock_help_prompt_manager_,
OnSetGlobalPropertiesReceived(_, false));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -809,7 +809,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_TTSOnlyTimeout_SUCCESS) {
.WillOnce(ReturnRef(*mock_help_prompt_manager_.get()));
EXPECT_CALL(*mock_help_prompt_manager_,
OnSetGlobalPropertiesReceived(_, false));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -826,7 +826,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_TTSIncorrectSyntax_Canceled) {
EXPECT_CALL(mock_message_helper_, VerifyImageVrHelpItems(_, _, _)).Times(0);
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -842,7 +842,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_InvalidHelpPromptText_INVALID_DATA) {
ExpectVerifyImageVrHelpUnsuccess();
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
ExpectInvalidData();
@@ -860,7 +860,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_InvalidVrHelpText_INVALID_DATA) {
ExpectVerifyImageVrHelpSuccess(vr_help);
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
ExpectInvalidData();
@@ -879,7 +879,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_InvalidImageValue_INVALID_DATA) {
ExpectVerifyImageVrHelpSuccess(vr_help);
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
ExpectInvalidData();
@@ -897,7 +897,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_InvalidMenuIcon_INVALID_DATA) {
ExpectVerifyImageSuccess(menu_icon);
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
ExpectInvalidData();
@@ -914,7 +914,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_InvalidMenuTitle_INVALID_DATA) {
ExpectVerifyImageVrHelpUnsuccess();
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
ExpectInvalidData();
@@ -934,7 +934,7 @@ TEST_F(SetGlobalPropertiesRequestTest,
ExpectVerifyImageVrHelpUnsuccess();
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
ExpectInvalidData();
@@ -954,7 +954,7 @@ TEST_F(SetGlobalPropertiesRequestTest,
ExpectVerifyImageVrHelpUnsuccess();
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
ExpectInvalidData();
@@ -968,7 +968,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_NoData_Canceled) {
ExpectVerifyImageVrHelpUnsuccess();
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -982,7 +982,7 @@ TEST_F(SetGlobalPropertiesRequestTest, Run_InvalidApp_Canceled) {
EmptyExpectationsSetupHelper();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
command->Run();
@@ -994,7 +994,7 @@ TEST_F(SetGlobalPropertiesRequestTest, OnEvent_PendingRequest_UNSUCCESS) {
hmi_apis::Common_Result::SUCCESS;
(*msg)[am::strings::params][am::hmi_response::code] = response_code;
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
Event event(hmi_apis::FunctionID::UI_SetGlobalProperties);
@@ -1022,7 +1022,7 @@ TEST_F(SetGlobalPropertiesRequestTest, OnEvent_UIAndSuccessResultCode_SUCCESS) {
GetInterfaceState(am::HmiInterfaces::HMI_INTERFACE_UI))
.WillByDefault(Return(am::HmiInterfaces::STATE_NOT_AVAILABLE));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
OnEventUISetupHelper(msg, command);
@@ -1050,7 +1050,7 @@ TEST_F(SetGlobalPropertiesRequestTest, OnEvent_UIAndWarningResultCode_SUCCESS) {
hmi_apis::Common_Result::WARNINGS;
(*msg)[am::strings::params][am::hmi_response::code] = response_code;
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
ON_CALL(
mock_hmi_interfaces_,
@@ -1090,7 +1090,7 @@ TEST_F(SetGlobalPropertiesRequestTest, OnEvent_InvalidApp_Canceled) {
ON_CALL(mock_hmi_interfaces_,
GetInterfaceState(am::HmiInterfaces::HMI_INTERFACE_UI))
.WillByDefault(Return(am::HmiInterfaces::STATE_NOT_AVAILABLE));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
OnEventUISetupHelper(msg, command);
@@ -1111,7 +1111,7 @@ TEST_F(SetGlobalPropertiesRequestTest, OnEvent_InvalidApp_Canceled) {
TEST_F(SetGlobalPropertiesRequestTest, OnEvent_InvalidEventID_Canceled) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
EXPECT_CALL(app_mngr_, application(_)).WillOnce(Return(mock_app_));
@@ -1136,7 +1136,7 @@ TEST_F(SetGlobalPropertiesRequestTest,
ON_CALL(mock_hmi_interfaces_,
GetInterfaceState(am::HmiInterfaces::HMI_INTERFACE_TTS))
.WillByDefault(Return(am::HmiInterfaces::STATE_NOT_AVAILABLE));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
OnEventTTSSetupHelper(msg, command);
@@ -1170,7 +1170,7 @@ TEST_F(SetGlobalPropertiesRequestTest,
ON_CALL(mock_hmi_interfaces_,
GetInterfaceState(am::HmiInterfaces::HMI_INTERFACE_TTS))
.WillByDefault(Return(am::HmiInterfaces::STATE_NOT_AVAILABLE));
- SharedPtr<SetGlobalPropertiesRequest> command(
+ std::shared_ptr<SetGlobalPropertiesRequest> command(
CreateCommand<SetGlobalPropertiesRequest>(msg));
OnEventTTSSetupHelper(msg, command);
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..e6557bdad2 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
@@ -60,7 +60,7 @@ using ::testing::ReturnRef;
namespace UpdateMode = mobile_apis::UpdateMode;
-typedef SharedPtr<SetMediaClockRequest> SetMediaClockRequestPtr;
+typedef std::shared_ptr<SetMediaClockRequest> SetMediaClockRequestPtr;
namespace {
const uint32_t kConnectionKey = 2u;
@@ -116,7 +116,7 @@ TEST_F(SetMediaClockRequestTest,
MessageSharedPtr msg = CreateMessage(smart_objects::SmartType_Map);
(*msg)[am::strings::params][am::strings::connection_key] = kConnectionKey;
- utils::SharedPtr<SetMediaClockRequest> command =
+ std::shared_ptr<SetMediaClockRequest> command =
CreateCommand<SetMediaClockRequest>(msg);
MessageSharedPtr ev_msg = CreateMessage(smart_objects::SmartType_Map);
@@ -160,7 +160,7 @@ TEST_F(SetMediaClockRequestTest, Run_UpdateCountUp_SUCCESS) {
(*msg)[am::strings::msg_params][am::strings::end_time][am::strings::seconds] =
kSeconds;
- SharedPtr<SetMediaClockRequest> command(
+ std::shared_ptr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
@@ -196,7 +196,7 @@ TEST_F(SetMediaClockRequestTest, Run_UpdateCountDown_SUCCESS) {
(*msg)[am::strings::msg_params][am::strings::end_time][am::strings::minutes] =
kMinutes;
- SharedPtr<SetMediaClockRequest> command(
+ std::shared_ptr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
@@ -232,7 +232,7 @@ TEST_F(SetMediaClockRequestTest, Run_UpdateCountUpWrongTime_Canceled) {
(*msg)[am::strings::msg_params][am::strings::end_time][am::strings::minutes] =
kMinutes;
- SharedPtr<SetMediaClockRequest> command(
+ std::shared_ptr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
ExpectationsSetupHelper(true);
@@ -255,7 +255,7 @@ TEST_F(SetMediaClockRequestTest, Run_UpdateCountDownWrongTime_Canceled) {
(*msg)[am::strings::msg_params][am::strings::end_time][am::strings::seconds] =
kSeconds;
- SharedPtr<SetMediaClockRequest> command(
+ std::shared_ptr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
@@ -273,7 +273,7 @@ TEST_F(SetMediaClockRequestTest, Run_NoStartTime_Canceled) {
(*msg)[am::strings::msg_params][am::strings::update_mode] =
UpdateMode::COUNTDOWN;
- SharedPtr<SetMediaClockRequest> command(
+ std::shared_ptr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
ExpectationsSetupHelper(true);
@@ -284,7 +284,7 @@ TEST_F(SetMediaClockRequestTest, Run_NoStartTime_Canceled) {
TEST_F(SetMediaClockRequestTest, Run_NoUpdateMode_Canceled) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<SetMediaClockRequest> command(
+ std::shared_ptr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
ExpectationsSetupHelper(true);
@@ -295,7 +295,7 @@ TEST_F(SetMediaClockRequestTest, Run_NoUpdateMode_Canceled) {
TEST_F(SetMediaClockRequestTest, Run_NotMediaApp_Canceled) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<SetMediaClockRequest> command(
+ std::shared_ptr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
ExpectationsSetupHelper(false);
@@ -306,7 +306,7 @@ TEST_F(SetMediaClockRequestTest, Run_NotMediaApp_Canceled) {
TEST_F(SetMediaClockRequestTest, Run_InvalidApp_Canceled) {
MessageSharedPtr msg = CreateMsgParams();
- SharedPtr<SetMediaClockRequest> command(
+ std::shared_ptr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
EXPECT_CALL(app_mngr_, application(kConnectionKey))
@@ -332,7 +332,7 @@ TEST_F(SetMediaClockRequestTest, OnEvent_Success) {
Event event(hmi_apis::FunctionID::UI_SetMediaClockTimer);
event.set_smart_object(*msg);
- SharedPtr<SetMediaClockRequest> command(
+ std::shared_ptr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
command->on_event(event);
}
@@ -340,7 +340,7 @@ TEST_F(SetMediaClockRequestTest, OnEvent_Success) {
TEST_F(SetMediaClockRequestTest, OnEvent_Canceled) {
MessageSharedPtr msg = CreateMessage();
- SharedPtr<SetMediaClockRequest> command(
+ std::shared_ptr<SetMediaClockRequest> command(
CreateCommand<SetMediaClockRequest>(msg));
EXPECT_CALL(mock_rpc_service_, ManageMobileCommand(_, _)).Times(0);
Event event(hmi_apis::FunctionID::UI_Slider);
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);
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/simple_notification_commands_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/simple_notification_commands_test.cc
index dcdda55b1c..d96a9d7643 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/simple_notification_commands_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/simple_notification_commands_test.cc
@@ -34,7 +34,7 @@
#include <string>
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
#include "application_manager/mock_message_helper.h"
@@ -85,7 +85,7 @@ MATCHER(CheckNotificationMessage, "") {
TYPED_TEST_CASE(MobileNotificationCommandsTest, NotificationCommandsList);
TYPED_TEST(MobileNotificationCommandsTest, Run_SendMessageToMobile_SUCCESS) {
- ::utils::SharedPtr<typename TestFixture::CommandType> command =
+ std::shared_ptr<typename TestFixture::CommandType> command =
this->template CreateCommand<typename TestFixture::CommandType>();
EXPECT_CALL(this->mock_rpc_service_,
SendMessageToMobile(CheckNotificationMessage(), _));
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/simple_response_commands_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/simple_response_commands_test.cc
index cf1f7c6711..bbd39874e0 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/simple_response_commands_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/simple_response_commands_test.cc
@@ -35,7 +35,7 @@
#include "gtest/gtest.h"
#include "utils/helpers.h"
-#include "utils/shared_ptr.h"
+
#include "application_manager/commands/commands_test.h"
#include "application_manager/mock_application_manager.h"
#include "mobile/delete_command_response.h"
@@ -125,7 +125,7 @@ typedef Types<commands::ListFilesResponse,
TYPED_TEST_CASE(MobileResponseCommandsTest, ResponseCommandsList);
TYPED_TEST(MobileResponseCommandsTest, Run_SendResponseToMobile_SUCCESS) {
- ::utils::SharedPtr<typename TestFixture::CommandType> command =
+ std::shared_ptr<typename TestFixture::CommandType> command =
this->template CreateCommand<typename TestFixture::CommandType>();
EXPECT_CALL(this->mock_rpc_service_, SendMessageToMobile(NotNull(), _));
command->Run();
@@ -154,7 +154,7 @@ MATCHER_P2(CheckMessageParams, success, result, "") {
TEST_F(GenericResponseFromHMICommandsTest, Run_SUCCESS) {
MessageSharedPtr command_msg(CreateMessage(smart_objects::SmartType_Map));
- SharedPtr<commands::GenericResponse> command(
+ std::shared_ptr<commands::GenericResponse> command(
CreateCommand<commands::GenericResponse>(command_msg));
EXPECT_CALL(
@@ -175,7 +175,7 @@ TEST_F(ScrollableMessageResponseTest, Run_SUCCESS) {
MockAppPtr app(CreateMockApp());
- SharedPtr<commands::ScrollableMessageResponse> command(
+ std::shared_ptr<commands::ScrollableMessageResponse> command(
CreateCommand<commands::ScrollableMessageResponse>(message));
EXPECT_CALL(app_mngr_, application(_)).WillOnce(Return(app));
EXPECT_CALL(*app, UnsubscribeFromSoftButtons(_));
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/slider_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/slider_test.cc
index a039581284..9e7d826f2a 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/slider_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/slider_test.cc
@@ -57,12 +57,12 @@ using am::commands::CommandImpl;
using am::commands::MessageSharedPtr;
using am::MockMessageHelper;
using policy_test::MockPolicyHandlerInterface;
-using ::utils::SharedPtr;
+
using ::testing::_;
using ::testing::Return;
using ::testing::ReturnRef;
-typedef SharedPtr<SliderRequest> CommandPtr;
+typedef std::shared_ptr<SliderRequest> CommandPtr;
namespace {
const int32_t kCommandId = 1;
@@ -140,7 +140,7 @@ TEST_F(SliderRequestTest, OnEvent_UI_UNSUPPORTED_RESOURCE) {
MessageSharedPtr msg_ui = CreateFullParamsUISO();
(*msg_ui)[am::strings::params][am::strings::connection_key] = kConnectionKey;
- utils::SharedPtr<SliderRequest> command =
+ std::shared_ptr<SliderRequest> command =
CreateCommand<SliderRequest>(msg_ui);
MockAppPtr mock_app = CreateMockApp();
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/speak_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/speak_request_test.cc
index ab086de0e6..dfb8452003 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/speak_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/speak_request_test.cc
@@ -34,14 +34,14 @@
#include <string>
#include "gtest/gtest.h"
#include "mobile/speak_request.h"
-#include "utils/shared_ptr.h"
+
#include "application_manager/commands/commands_test.h"
#include "application_manager/commands/command_request_test.h"
#include "interfaces/HMI_API.h"
#include "interfaces/MOBILE_API.h"
-#include "utils/shared_ptr.h"
+
#include "utils/helpers.h"
-#include "utils/make_shared.h"
+
#include "smart_objects/smart_object.h"
#include "utils/custom_string.h"
#include "application_manager/application.h"
@@ -68,13 +68,13 @@ using am::commands::MessageSharedPtr;
using am::ApplicationSharedPtr;
using am::MockMessageHelper;
using ::testing::_;
-using ::utils::SharedPtr;
+
using ::testing::Return;
using ::testing::ReturnRef;
using sdl_rpc_plugin::commands::SpeakRequest;
using ::test::components::application_manager_test::MockApplication;
-typedef SharedPtr<SpeakRequest> CommandPtr;
+typedef std::shared_ptr<SpeakRequest> CommandPtr;
namespace {
const uint32_t kAppId = 10u;
@@ -92,7 +92,7 @@ class SpeakRequestTest : public CommandRequestTest<CommandsTestMocks::kIsNice> {
const mobile_apis::Result::eType mobile_response,
const am::HmiInterfaces::InterfaceState state,
const bool success) {
- utils::SharedPtr<SpeakRequest> command =
+ std::shared_ptr<SpeakRequest> command =
CreateCommand<SpeakRequest>(request_);
(*response_)[strings::params][hmi_response::code] = hmi_response;
@@ -129,7 +129,7 @@ class SpeakRequestTest : public CommandRequestTest<CommandsTestMocks::kIsNice> {
};
TEST_F(SpeakRequestTest, OnEvent_SUCCESS_Expect_true) {
- utils::SharedPtr<SpeakRequest> command =
+ std::shared_ptr<SpeakRequest> command =
CreateCommand<SpeakRequest>(request_);
(*response_)[strings::params][hmi_response::code] =
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/subscribe_button_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/subscribe_button_request_test.cc
index 17c4db36bc..bbc18504a6 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/subscribe_button_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/subscribe_button_request_test.cc
@@ -34,7 +34,7 @@
#include <string>
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/commands/commands_test.h"
#include "application_manager/commands/command_request_test.h"
@@ -61,7 +61,7 @@ namespace am = ::application_manager;
using sdl_rpc_plugin::commands::SubscribeButtonRequest;
using am::commands::MessageSharedPtr;
-typedef SharedPtr<SubscribeButtonRequest> CommandPtr;
+typedef std::shared_ptr<SubscribeButtonRequest> CommandPtr;
class SubscribeButtonRequestTest
: public CommandRequestTest<CommandsTestMocks::kIsNice> {
@@ -78,7 +78,7 @@ TEST_F(SubscribeButtonRequestTest, Run_AppNotRegistered_UNSUCCESS) {
CommandPtr command(CreateCommand<SubscribeButtonRequest>());
ON_CALL(app_mngr_, application(_))
- .WillByDefault(Return(SharedPtr<am::Application>()));
+ .WillByDefault(Return(std::shared_ptr<am::Application>()));
MessageSharedPtr result_msg(CatchMobileCommandResult(CallRun(*command)));
EXPECT_EQ(mobile_apis::Result::APPLICATION_NOT_REGISTERED,
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/subscribe_way_points_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/subscribe_way_points_request_test.cc
index e944c3eb39..d08c13b3f3 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/subscribe_way_points_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/subscribe_way_points_request_test.cc
@@ -31,7 +31,7 @@
*/
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/commands/commands_test.h"
#include "application_manager/commands/command_request_test.h"
@@ -61,7 +61,7 @@ namespace am = ::application_manager;
using sdl_rpc_plugin::commands::SubscribeWayPointsRequest;
using am::commands::MessageSharedPtr;
-typedef SharedPtr<SubscribeWayPointsRequest> CommandPtr;
+typedef std::shared_ptr<SubscribeWayPointsRequest> CommandPtr;
class SubscribeWayPointsRequestTest
: public CommandRequestTest<CommandsTestMocks::kIsNice> {};
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/system_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/system_request_test.cc
index 7214e0eea4..9e6bc8f505 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/system_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/system_request_test.cc
@@ -58,7 +58,7 @@ using am::MockHmiInterfaces;
using am::event_engine::Event;
using am::MessageType;
using policy_test::MockPolicyHandlerInterface;
-using ::utils::SharedPtr;
+
using ::testing::_;
using ::testing::DoAll;
using ::testing::Return;
@@ -126,7 +126,7 @@ TEST_F(SystemRequestTest, Run_HTTP_FileName_no_binary_data_REJECTED) {
ExpectManageMobileCommandWithResultCode(mobile_apis::Result::REJECTED);
- SharedPtr<SystemRequest> command(CreateCommand<SystemRequest>(msg));
+ std::shared_ptr<SystemRequest> command(CreateCommand<SystemRequest>(msg));
command->Run();
}
@@ -163,7 +163,7 @@ TEST_F(SystemRequestTest,
EXPECT_CALL(mock_rpc_service_, ManageHMICommand(_))
.WillOnce(DoAll(SaveArg<0>(&result), Return(true)));
- SharedPtr<SystemRequest> command(CreateCommand<SystemRequest>(msg));
+ std::shared_ptr<SystemRequest> command(CreateCommand<SystemRequest>(msg));
ASSERT_TRUE(command->Init());
command->Run();
@@ -203,7 +203,7 @@ TEST_F(
ExpectManageMobileCommandWithResultCode(mobile_apis::Result::DISALLOWED);
EXPECT_CALL(mock_rpc_service_, ManageHMICommand(_)).Times(0);
- SharedPtr<SystemRequest> command(CreateCommand<SystemRequest>(msg));
+ std::shared_ptr<SystemRequest> command(CreateCommand<SystemRequest>(msg));
ASSERT_TRUE(command->Init());
command->Run();
}
@@ -224,7 +224,7 @@ TEST_F(SystemRequestTest, Run_RequestTypeDisallowed_SendDisallowedResponse) {
ExpectManageMobileCommandWithResultCode(mobile_apis::Result::DISALLOWED);
EXPECT_CALL(mock_rpc_service_, ManageHMICommand(_)).Times(0);
- SharedPtr<SystemRequest> command(CreateCommand<SystemRequest>(msg));
+ std::shared_ptr<SystemRequest> command(CreateCommand<SystemRequest>(msg));
ASSERT_TRUE(command->Init());
command->Run();
}
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unregister_app_interface_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unregister_app_interface_request_test.cc
index 1c4df3a463..771374348b 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unregister_app_interface_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unregister_app_interface_request_test.cc
@@ -34,7 +34,7 @@
#include <string>
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "application_manager/commands/command_request_test.h"
#include "application_manager/mock_application_manager.h"
#include "application_manager/mock_message_helper.h"
@@ -54,7 +54,7 @@ using ::testing::_;
using sdl_rpc_plugin::commands::UnregisterAppInterfaceRequest;
using am::commands::MessageSharedPtr;
-typedef ::utils::SharedPtr<UnregisterAppInterfaceRequest> CommandPtr;
+typedef std::shared_ptr<UnregisterAppInterfaceRequest> CommandPtr;
class UnregisterAppInterfaceRequestTest
: public CommandRequestTest<CommandsTestMocks::kIsNice> {};
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unsubscribe_button_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unsubscribe_button_request_test.cc
index 439e94b94f..e363567c64 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unsubscribe_button_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unsubscribe_button_request_test.cc
@@ -2,7 +2,7 @@
#include <string>
#include "gtest/gtest.h"
-#include "utils/shared_ptr.h"
+
#include "application_manager/commands/command_request_test.h"
#include "application_manager/mock_application_manager.h"
#include "application_manager/mock_message_helper.h"
@@ -23,7 +23,7 @@ using ::testing::_;
using sdl_rpc_plugin::commands::UnsubscribeButtonRequest;
using am::commands::MessageSharedPtr;
-typedef ::utils::SharedPtr<UnsubscribeButtonRequest> CommandPtr;
+typedef std::shared_ptr<UnsubscribeButtonRequest> CommandPtr;
namespace {
const uint32_t kConnectionKey = 1u;
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unsubscribe_way_points_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unsubscribe_way_points_request_test.cc
index a6e1eb0518..042604b672 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unsubscribe_way_points_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/unsubscribe_way_points_request_test.cc
@@ -36,7 +36,7 @@
#include "gtest/gtest.h"
#include "mobile/unsubscribe_way_points_request.h"
#include "interfaces/MOBILE_API.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/commands/commands_test.h"
#include "application_manager/commands/command_request_test.h"
@@ -78,7 +78,7 @@ class UnSubscribeWayPointsRequestTest
}
MessageSharedPtr command_msg_;
- ::utils::SharedPtr<UnSubscribeWayPointsRequest> command_;
+ std::shared_ptr<UnSubscribeWayPointsRequest> command_;
};
TEST_F(UnSubscribeWayPointsRequestTest,
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/update_turn_list_request_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/update_turn_list_request_test.cc
index d1f59bb3a4..acb421af6b 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/update_turn_list_request_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/update_turn_list_request_test.cc
@@ -36,7 +36,7 @@
#include "gtest/gtest.h"
#include "mobile/update_turn_list_request.h"
#include "interfaces/MOBILE_API.h"
-#include "utils/shared_ptr.h"
+
#include "smart_objects/smart_object.h"
#include "application_manager/commands/commands_test.h"
#include "application_manager/commands/command_request_test.h"
@@ -88,7 +88,7 @@ class UpdateTurnListRequestTest
}
MessageSharedPtr command_msg_;
- ::utils::SharedPtr<UpdateTurnListRequest> command_;
+ std::shared_ptr<UpdateTurnListRequest> command_;
};
TEST_F(UpdateTurnListRequestTest, Run_ApplicationIsNotRegistered_UNSUCCESS) {
@@ -214,7 +214,7 @@ TEST_F(UpdateTurnListRequestTest, Run_ValidTurnList_SUCCESS) {
SubscribeApplicationToSoftButton(_, _, kFunctionId));
MessageSharedPtr result_msg(CatchHMICommandResult(CallRun(*command_)));
- ASSERT_TRUE(result_msg);
+ ASSERT_TRUE((bool)result_msg);
EXPECT_EQ(
hmi_apis::FunctionID::Navigation_UpdateTurnList,
(*result_msg)[am::strings::params][am::strings::function_id].asInt());