summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/hmi/hmi_notifications_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/hmi/hmi_notifications_test.cc')
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/hmi/hmi_notifications_test.cc156
1 files changed, 78 insertions, 78 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/hmi/hmi_notifications_test.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/hmi/hmi_notifications_test.cc
index 245bb72860..bdbf2db216 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/hmi/hmi_notifications_test.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/hmi/hmi_notifications_test.cc
@@ -90,8 +90,8 @@
#include "utils/lock.h"
#include "utils/data_accessor.h"
#include "utils/signals.h"
-#include "utils/shared_ptr.h"
-#include "utils/make_shared.h"
+
+
#include "utils/file_system.h"
#include "smart_objects/smart_object.h"
#include "application_manager/smart_object_keys.h"
@@ -126,7 +126,7 @@ using ::testing::Return;
using ::testing::ReturnRef;
using ::testing::NiceMock;
using ::testing::InSequence;
-using ::utils::SharedPtr;
+
using ::smart_objects::SmartObject;
using ::application_manager::commands::MessageSharedPtr;
using ::test::components::application_manager_test::MockApplicationManager;
@@ -139,7 +139,7 @@ using ::application_manager::MockMessageHelper;
using namespace sdl_rpc_plugin::commands;
using namespace am::commands;
-typedef SharedPtr<MockApplication> MockAppPtr;
+typedef std::shared_ptr<MockApplication> MockAppPtr;
typedef NiceMock<
::test::components::application_manager_test::MockHMICapabilities>
MockHMICapabilities;
@@ -348,7 +348,7 @@ TYPED_TEST_CASE(HMIOnNotificationsEventDispatcher,
TYPED_TEST(HMIOnNotificationsListToHMI, CommandsSendNotificationToHmi) {
MessageSharedPtr message =
commands_test::CommandsTest<kIsNice>::CreateMessage();
- utils::SharedPtr<typename TestFixture::CommandType> command =
+ std::shared_ptr<typename TestFixture::CommandType> command =
this->template CreateCommand<typename TestFixture::CommandType>(message);
EXPECT_CALL(commands_test::CommandsTest<kIsNice>::mock_rpc_service_,
SendMessageToHMI(_));
@@ -366,7 +366,7 @@ TYPED_TEST(HMIOnNotificationsEventDispatcher,
int32_t event_id = hmi_apis::FunctionID::INVALID_ENUM;
MessageSharedPtr message =
commands_test::CommandsTest<kIsNice>::CreateMessage();
- utils::SharedPtr<typename TestFixture::CommandType::CommandType> command =
+ std::shared_ptr<typename TestFixture::CommandType::CommandType> command =
this->template CreateCommand<
typename TestFixture::CommandType::CommandType>(message);
EXPECT_CALL(commands_test::CommandsTest<kIsNice>::app_mngr_,
@@ -381,7 +381,7 @@ TYPED_TEST(HMIOnNotificationsEventDispatcher,
// notifications(SendNotificationToMobile)
TEST_F(HMICommandsNotificationsTest, OnButtonEventSendNotificationToMobile) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<hmi::OnButtonEventNotification>(message);
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(_, Command::CommandSource::SOURCE_SDL));
@@ -394,7 +394,7 @@ TEST_F(HMICommandsNotificationsTest, OnButtonEventSendNotificationToMobile) {
TEST_F(HMICommandsNotificationsTest, OnNaviTBTClientSendNotificationToMobile) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnNaviTBTClientStateNotification>(message);
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(_, Command::CommandSource::SOURCE_SDL));
@@ -408,7 +408,7 @@ TEST_F(HMICommandsNotificationsTest, OnNaviTBTClientSendNotificationToMobile) {
TEST_F(HMICommandsNotificationsTest,
OnNaviWayPointChangeSendNotificationToMobile) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnNaviWayPointChangeNotification>(message);
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(_, Command::CommandSource::SOURCE_SDL));
@@ -421,7 +421,7 @@ TEST_F(HMICommandsNotificationsTest,
TEST_F(HMICommandsNotificationsTest, OnUICommandSendNotificationToMobile) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnUICommandNotification>(message);
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(_, Command::CommandSource::SOURCE_SDL));
@@ -438,7 +438,7 @@ TEST_F(HMICommandsNotificationsTest, OnUICommandSendNotificationToMobile) {
TEST_F(HMICommandsNotificationsTest,
OnUIKeyBoardInputSendNotificationToMobile) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<hmi::OnUIKeyBoardInputNotification>(message);
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(_, Command::CommandSource::SOURCE_SDL));
@@ -451,7 +451,7 @@ TEST_F(HMICommandsNotificationsTest,
TEST_F(HMICommandsNotificationsTest, OnUITouchEventSendNotificationToMobile) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<hmi::OnUITouchEventNotification>(message);
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(_, Command::CommandSource::SOURCE_SDL));
@@ -466,7 +466,7 @@ TEST_F(HMICommandsNotificationsTest,
OnAppRegisteredNotificationSendNotificationToHmi) {
int32_t event_id = hmi_apis::FunctionID::INVALID_ENUM;
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnAppRegisteredNotification>(message);
EXPECT_CALL(mock_rpc_service_, SendMessageToHMI(_));
EXPECT_CALL(app_mngr_, event_dispatcher());
@@ -488,7 +488,7 @@ TEST_F(HMICommandsNotificationsTest,
OnAppUnregisteredNotificationEventDispatcher) {
int32_t event_id = hmi_apis::FunctionID::INVALID_ENUM;
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnAppUnregisteredNotification>(message);
EXPECT_CALL(mock_rpc_service_, SendMessageToHMI(_));
EXPECT_CALL(app_mngr_, event_dispatcher());
@@ -509,7 +509,7 @@ TEST_F(HMICommandsNotificationsTest,
TEST_F(HMICommandsNotificationsTest, OnButtonPressNotificationEventDispatcher) {
int32_t event_id = hmi_apis::FunctionID::INVALID_ENUM;
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<hmi::OnButtonPressNotification>(message);
EXPECT_CALL(mock_rpc_service_,
ManageMobileCommand(_, Command::CommandSource::SOURCE_SDL));
@@ -526,7 +526,7 @@ TEST_F(HMICommandsNotificationsTest, OnButtonPressNotificationEventDispatcher) {
TEST_F(HMICommandsNotificationsTest, OnReadyNotificationEventDispatcher) {
int32_t event_id = hmi_apis::FunctionID::INVALID_ENUM;
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnReadyNotification>(message);
EXPECT_CALL(app_mngr_, OnHMIStartedCooperation());
@@ -541,7 +541,7 @@ TEST_F(HMICommandsNotificationsTest, OnReadyNotificationEventDispatcher) {
TEST_F(HMICommandsNotificationsTest,
OnIgnitionCycleOverNotificationPolicyHandler) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnIgnitionCycleOverNotification>(message);
EXPECT_CALL(mock_policy_handler_, OnIgnitionCycleOver());
@@ -550,7 +550,7 @@ TEST_F(HMICommandsNotificationsTest,
TEST_F(HMICommandsNotificationsTest, OnPolicyUpdateNotificationPolicyHandler) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command = CreateCommand<OnPolicyUpdate>(message);
+ std::shared_ptr<Command> command = CreateCommand<OnPolicyUpdate>(message);
EXPECT_CALL(mock_policy_handler_, OnPTExchangeNeeded());
command->Run();
@@ -567,7 +567,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage(smart_objects::SmartType_String);
(*message)[am::strings::msg_params][am::hmi_notification::policyfile] = kFile;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnReceivedPolicyUpdate>(message);
EXPECT_CALL(mock_policy_handler_, ReceiveMessageFromSDK(kFile, data));
@@ -579,7 +579,7 @@ TEST_F(HMICommandsNotificationsTest,
TEST_F(HMICommandsNotificationsTest,
OnReceivePolicyUpdateNotification_UNSUCCESS) {
MessageSharedPtr message = CreateMessage(smart_objects::SmartType_String);
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnReceivedPolicyUpdate>(message);
EXPECT_CALL(mock_policy_handler_, ReceiveMessageFromSDK(_, _)).Times(0);
@@ -597,7 +597,7 @@ TEST_F(HMICommandsNotificationsTest,
smart_objects::SmartObject hmi_application_temp(smart_objects::SmartType_Map);
applications[0] = hmi_application_temp;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnAppPermissionConsentNotification>(message);
int32_t connection_id = -1;
@@ -619,11 +619,11 @@ TEST_F(HMICommandsNotificationsTest,
smart_objects::SmartObject(smart_objects::SmartType_Array);
smart_objects::SmartObjectSPtr consented_function =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
(*message)[am::strings::msg_params]["consentedFunctions"][0] =
*consented_function;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnAppPermissionConsentNotification>(message);
int32_t connection_id = -1;
@@ -653,14 +653,14 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params]["source"] = "test_content_source";
smart_objects::SmartObjectSPtr consented_function =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
(*consented_function)["allowed"] = true;
(*consented_function)[am::strings::id] = 999;
(*consented_function)[am::strings::name] = "test_group_alias";
(*message)[am::strings::msg_params]["consentedFunctions"][0] =
*consented_function;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnAppPermissionConsentNotification>(message);
int32_t connection_id = -1;
@@ -694,14 +694,14 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params]["source"] = "test_content_source";
smart_objects::SmartObjectSPtr consented_function =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
(*consented_function)["allowed"] = false;
(*consented_function)[am::strings::id] = 999;
(*consented_function)[am::strings::name] = "test_group_alias";
(*message)[am::strings::msg_params]["consentedFunctions"][0] =
*consented_function;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnAppPermissionConsentNotification>(message);
int32_t connection_id = -1;
@@ -732,7 +732,7 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params][am::hmi_notification::error] =
hmi_apis::Common_SystemError::SYNC_REBOOTED;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemErrorNotification>(message);
int32_t code = hmi_apis::Common_SystemError::INVALID_ENUM;
@@ -748,7 +748,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::language] = kLangCode;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemInfoChangedNotification>(message);
EXPECT_CALL(mock_message_helper_, CommonLanguageToString(_));
@@ -761,7 +761,7 @@ TEST_F(HMICommandsNotificationsTest,
const std::string kDeviceId = "";
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::hmi_response::allowed] = true;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnAllowSDLFunctionalityNotification>(message);
bool value = false;
@@ -779,7 +779,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::hmi_response::allowed] = true;
(*message)[am::strings::msg_params]["device"]["id"] = kDeviceId;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnAllowSDLFunctionalityNotification>(message);
bool value;
@@ -796,7 +796,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params]["deviceState"] =
hmi_apis::Common_DeviceState::INVALID_ENUM;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnDeviceStateChangedNotification>(message);
EXPECT_CALL(mock_policy_handler_, RemoveDevice(_)).Times(0);
@@ -812,7 +812,7 @@ TEST_F(HMICommandsNotificationsTest,
hmi_apis::Common_DeviceState::UNPAIRED;
(*message)[am::strings::msg_params]["deviceInternalId"] = device_id;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnDeviceStateChangedNotification>(message);
EXPECT_CALL(mock_policy_handler_, RemoveDevice(_));
@@ -827,7 +827,7 @@ TEST_F(HMICommandsNotificationsTest,
hmi_apis::Common_DeviceState::UNPAIRED;
(*message)[am::strings::msg_params]["deviceInternalId"] = empty_device_id;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnDeviceStateChangedNotification>(message);
std::string device_id = "default_id";
@@ -847,7 +847,7 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params]["deviceInternalId"] = empty_device_id;
(*message)[am::strings::msg_params]["deviceId"]["id"] = id;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnDeviceStateChangedNotification>(message);
std::string device_id = "default_id";
@@ -864,7 +864,7 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params][am::hmi_request::reason] =
hmi_apis::Common_ApplicationsCloseReason::IGNITION_OFF;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnExitAllApplicationsNotification>(message);
#if defined(OS_POSIX)
am::mobile_api::AppInterfaceUnregisteredReason::eType mob_reason;
@@ -906,7 +906,7 @@ TEST_F(HMICommandsNotificationsTest,
for (; it_reason != reason_list.end(); ++it_reason, ++it_mob_reason) {
(*message)[am::strings::msg_params][am::hmi_request::reason] = *it_reason;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnExitAllApplicationsNotification>(message);
#if defined(OS_POSIX)
am::mobile_api::AppInterfaceUnregisteredReason::eType mob_reason =
@@ -928,7 +928,7 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params][am::hmi_request::reason] =
hmi_apis::Common_ApplicationsCloseReason::SUSPEND;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnExitAllApplicationsNotification>(message);
MessageSharedPtr ethalon_message =
@@ -970,7 +970,7 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params][am::hmi_request::reason] =
hmi_apis::Common_ApplicationsCloseReason::INVALID_ENUM;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnExitAllApplicationsNotification>(message);
EXPECT_CALL(app_mngr_, SetUnregisterAllApplicationsReason(_)).Times(0);
@@ -985,7 +985,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::app_id] = kAppId_;
smart_objects::SmartObjectSPtr notification =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
(*notification)[am::strings::params][am::strings::function_id] =
static_cast<int32_t>(
mobile_apis::FunctionID::OnAppInterfaceUnregisteredID);
@@ -1013,7 +1013,7 @@ TEST_F(HMICommandsNotificationsTest,
for (; it_reason != reason_list.end(); ++it_reason, ++it_mobile_reason) {
(*message)[am::strings::msg_params][am::strings::reason] = *it_reason;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnExitApplicationNotification>(message);
(*notification)[am::strings::msg_params][am::strings::reason] =
@@ -1044,7 +1044,7 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params][am::strings::reason] =
hmi_apis::Common_ApplicationExitReason::INVALID_ENUM;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnExitApplicationNotification>(message);
am::plugin_manager::MockRPCPluginManager mock_rpc_plugin_manager_;
@@ -1064,7 +1064,7 @@ TEST_F(HMICommandsNotificationsTest, OnExitApplicationNotificationInvalidApp) {
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::app_id] = kAppId_;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnExitApplicationNotification>(message);
am::ApplicationSharedPtr invalid_app;
@@ -1082,7 +1082,7 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params][am::strings::app_id] = kAppId_;
(*message)[am::strings::msg_params][am::strings::reason] =
hmi_apis::Common_ApplicationExitReason::DRIVER_DISTRACTION_VIOLATION;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnExitApplicationNotification>(message);
EXPECT_CALL(app_mngr_, application(kAppId_)).WillRepeatedly(Return(app_));
@@ -1104,7 +1104,7 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params][am::strings::app_id] = kAppId_;
(*message)[am::strings::msg_params][am::strings::reason] =
hmi_apis::Common_ApplicationExitReason::USER_EXIT;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnExitApplicationNotification>(message);
am::plugin_manager::MockRPCPluginManager mock_rpc_plugin_manager_;
EXPECT_CALL(app_mngr_, GetPluginManager())
@@ -1131,7 +1131,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::cmd_id] = cmd_id;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnVRCommandNotification>(message);
EXPECT_CALL(app_mngr_, application(_)).WillRepeatedly(Return(app_));
@@ -1153,7 +1153,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::cmd_id] = kCmdId;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnVRCommandNotification>(message);
am::ApplicationSharedPtr invalid_app;
@@ -1172,7 +1172,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::cmd_id] = kCmdId;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnVRCommandNotification>(message);
EXPECT_CALL(app_mngr_, application(_)).Times(0);
@@ -1189,7 +1189,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::cmd_id] = kCmdId;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnVRCommandNotification>(message);
am::ApplicationSharedPtr invalid_app;
@@ -1210,7 +1210,7 @@ TEST_F(HMICommandsNotificationsTest,
int32_t event_id = hmi_apis::FunctionID::INVALID_ENUM;
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::cmd_id] = kCmdId;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnVRCommandNotification>(message);
EXPECT_CALL(app_mngr_, application(_)).WillOnce(Return(app_));
@@ -1236,7 +1236,7 @@ TEST_F(HMICommandsNotificationsTest,
(*message)[am::strings::msg_params][am::strings::cmd_id] = kCmdId;
(*message)[am::strings::msg_params][am::strings::function_id] =
mobile_apis::FunctionID::eType::OnCommandID;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnVRCommandNotification>(message);
EXPECT_CALL(app_mngr_, application(_)).WillOnce(Return(app_));
@@ -1263,7 +1263,7 @@ TEST_F(HMICommandsNotificationsTest, OnVRLanguageChangeNotificationEmptyData) {
const mobile_apis::Language::eType& kLang = mobile_apis::Language::EN_GB;
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::language] = kLang;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnVRLanguageChangeNotification>(message);
EXPECT_CALL(mock_hmi_capabilities_, active_ui_language())
@@ -1281,7 +1281,7 @@ TEST_F(HMICommandsNotificationsTest,
const mobile_apis::Language::eType& kLang = mobile_apis::Language::EN_GB;
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::language] = kLang;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnVRLanguageChangeNotification>(message);
application_set_.insert(app_);
@@ -1314,12 +1314,12 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::language] =
mobile_apis::Language::EN_US;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnVRLanguageChangeNotification>(message);
application_set_.insert(app_);
smart_objects::SmartObjectSPtr notification =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
(*notification)[am::strings::params][am::strings::function_id] =
static_cast<int32_t>(mobile_apis::FunctionID::OnLanguageChangeID);
(*notification)[am::strings::params][am::strings::message_type] =
@@ -1367,7 +1367,7 @@ TEST_F(HMICommandsNotificationsTest,
TEST_F(HMICommandsNotificationsTest, OnStartDeviceDiscoveryRun) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnStartDeviceDiscovery>(message);
EXPECT_CALL(app_mngr_, StartDevicesDiscovery());
command->Run();
@@ -1378,7 +1378,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::device_info]
[am::strings::id] = "2014";
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnDeviceChosenNotification>(message);
EXPECT_CALL(app_mngr_,
ConnectToDevice(
@@ -1390,7 +1390,7 @@ TEST_F(HMICommandsNotificationsTest,
TEST_F(HMICommandsNotificationsTest,
OnDeviceChosenNotificationDeviceInfoNotExists) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnDeviceChosenNotification>(message);
EXPECT_CALL(app_mngr_, ConnectToDevice(_)).Times(0);
command->Run();
@@ -1411,7 +1411,7 @@ TEST_F(HMICommandsNotificationsTest,
for (; it != system_context_list.end(); ++it) {
(*message)[am::strings::msg_params][am::hmi_notification::system_context] =
*it;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemContextNotification>(message);
EXPECT_CALL(app_mngr_, active_application()).WillOnce(Return(app_));
EXPECT_CALL(app_mngr_, state_controller())
@@ -1426,7 +1426,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::hmi_notification::system_context] =
am::mobile_api::SystemContext::SYSCTXT_VRSESSION;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemContextNotification>(message);
ApplicationSharedPtr invalid_app;
EXPECT_CALL(app_mngr_, active_application()).WillOnce(Return(invalid_app));
@@ -1439,7 +1439,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::hmi_notification::system_context] =
am::mobile_api::SystemContext::INVALID_ENUM;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemContextNotification>(message);
EXPECT_CALL(app_mngr_, active_application()).Times(0);
EXPECT_CALL(app_mngr_, application(_)).Times(0);
@@ -1460,7 +1460,7 @@ TEST_F(HMICommandsNotificationsTest,
for (; it != system_context_list.end(); ++it) {
(*message)[am::strings::msg_params][am::hmi_notification::system_context] =
*it;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemContextNotification>(message);
EXPECT_CALL(app_mngr_, application(_)).WillOnce(Return(app_));
EXPECT_CALL(app_mngr_, state_controller())
@@ -1475,7 +1475,7 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::hmi_notification::system_context] =
am::mobile_api::SystemContext::SYSCTXT_ALERT;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemContextNotification>(message);
EXPECT_CALL(app_mngr_, application(_)).Times(0);
EXPECT_CALL(app_mngr_, state_controller()).Times(0);
@@ -1486,7 +1486,7 @@ TEST_F(HMICommandsNotificationsTest,
OnSystemRequestNotificationAppIdExistsAndValidApp) {
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::app_id] = kAppId_;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemRequestNotification>(message);
EXPECT_CALL(app_mngr_, application(kAppId_)).WillOnce(Return(app_));
@@ -1520,7 +1520,7 @@ TEST_F(HMICommandsNotificationsTest,
OnSystemRequestNotificationAppIdExistsAndInvalidApp) {
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::app_id] = kAppId_;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemRequestNotification>(message);
ApplicationSharedPtr invalid_app;
EXPECT_CALL(app_mngr_, application(kAppId_)).WillOnce(Return(invalid_app));
@@ -1535,7 +1535,7 @@ TEST_F(HMICommandsNotificationsTest,
TEST_F(HMICommandsNotificationsTest,
OnSystemRequestNotificationAppIdDoesntExistsAndValidApp) {
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemRequestNotification>(message);
EXPECT_CALL(mock_policy_handler_, GetAppIdForSending())
@@ -1571,7 +1571,7 @@ TEST_F(HMICommandsNotificationsTest,
OnSystemRequestNotificationAppIdDoesntExistsAndNullAppId) {
const uint32_t kNullApppId = 0u;
MessageSharedPtr message = CreateMessage();
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnSystemRequestNotification>(message);
EXPECT_CALL(mock_policy_handler_, GetAppIdForSending())
@@ -1585,7 +1585,7 @@ TEST_F(HMICommandsNotificationsTest, OnTTSLanguageChangeNotificationEmptyData) {
const mobile_apis::Language::eType& kLang = mobile_apis::Language::EN_GB;
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::language] = kLang;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnTTSLanguageChangeNotification>(message);
EXPECT_CALL(mock_hmi_capabilities_, set_active_tts_language(_));
@@ -1604,7 +1604,7 @@ TEST_F(HMICommandsNotificationsTest,
const mobile_apis::Language::eType& kLang = mobile_apis::Language::EN_GB;
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::language] = kLang;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnTTSLanguageChangeNotification>(message);
application_set_.insert(app_);
@@ -1638,12 +1638,12 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::language] =
mobile_apis::Language::EN_US;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnTTSLanguageChangeNotification>(message);
application_set_.insert(app_);
smart_objects::SmartObjectSPtr notification =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
(*notification)[am::strings::params][am::strings::function_id] =
static_cast<int32_t>(mobile_apis::FunctionID::OnLanguageChangeID);
(*notification)[am::strings::params][am::strings::message_type] =
@@ -1690,7 +1690,7 @@ TEST_F(HMICommandsNotificationsTest, OnUILanguageChangeNotificationEmptyData) {
const mobile_apis::Language::eType& kLang = mobile_apis::Language::EN_GB;
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::language] = kLang;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnUILanguageChangeNotification>(message);
EXPECT_CALL(mock_hmi_capabilities_, set_active_ui_language(_));
@@ -1708,7 +1708,7 @@ TEST_F(HMICommandsNotificationsTest,
const mobile_apis::Language::eType& kLang = mobile_apis::Language::EN_GB;
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::language] = kLang;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnUILanguageChangeNotification>(message);
application_set_.insert(app_);
@@ -1741,12 +1741,12 @@ TEST_F(HMICommandsNotificationsTest,
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::strings::language] =
mobile_apis::Language::EN_US;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<OnUILanguageChangeNotification>(message);
application_set_.insert(app_);
smart_objects::SmartObjectSPtr notification =
- utils::MakeShared<smart_objects::SmartObject>();
+ std::make_shared<smart_objects::SmartObject>();
(*notification)[am::strings::params][am::strings::function_id] =
static_cast<int32_t>(mobile_apis::FunctionID::OnLanguageChangeID);
(*notification)[am::strings::params][am::strings::message_type] =
@@ -1793,7 +1793,7 @@ TEST_F(HMICommandsNotificationsTest, OnDriverDistractionNotificationEmptyData) {
hmi_apis::Common_DriverDistractionState::DD_ON;
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::hmi_notification::state] = state;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<hmi::OnDriverDistractionNotification>(message);
EXPECT_CALL(app_mngr_, set_driver_distraction_state(state));
@@ -1809,7 +1809,7 @@ TEST_F(HMICommandsNotificationsTest,
hmi_apis::Common_DriverDistractionState::DD_ON;
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::hmi_notification::state] = state;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<hmi::OnDriverDistractionNotification>(message);
ApplicationSharedPtr invalid_app;
@@ -1825,7 +1825,7 @@ TEST_F(HMICommandsNotificationsTest, OnDriverDistractionNotificationValidApp) {
hmi_apis::Common_DriverDistractionState::DD_ON;
MessageSharedPtr message = CreateMessage();
(*message)[am::strings::msg_params][am::mobile_notification::state] = state;
- utils::SharedPtr<Command> command =
+ std::shared_ptr<Command> command =
CreateCommand<hmi::OnDriverDistractionNotification>(message);
application_set_.insert(app_);