summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_audio_pass_thru_test.cc
diff options
context:
space:
mode:
authorJacob Keeler <jacob.keeler@livioradio.com>2018-07-19 13:05:48 -0700
committerGitHub <noreply@github.com>2018-07-19 13:05:48 -0700
commit8e3cdb6d3bfd15e3e8b02835b0228182e9199eeb (patch)
tree6f492ff0fe298fd3ca0e22d93ef2c7e2b2e8a4c2 /src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_audio_pass_thru_test.cc
parentc96b488f0a5c6f114016ab9c013a347b5257d7d9 (diff)
parentb3151c9fdb1ed6d7dd3e6780e3a0db33d747d650 (diff)
downloadsdl_core-8e3cdb6d3bfd15e3e8b02835b0228182e9199eeb.tar.gz
Merge branch 'develop' into feature/boost_lock_implementation
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_audio_pass_thru_test.cc')
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/perform_audio_pass_thru_test.cc13
1 files changed, 6 insertions, 7 deletions
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..f51f1aa655 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,6 @@ 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 +79,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 +150,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 +161,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 +208,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 +270,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));