Skip to content

Commit f437759

Browse files
committed
Fixes after rebase
1 parent e161a9b commit f437759

File tree

19 files changed

+73
-66
lines changed

19 files changed

+73
-66
lines changed

src/components/application_manager/include/application_manager/application_manager_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ class ApplicationManagerImpl
608608
const uint32_t connection_key,
609609
hmi_apis::Common_ServiceType::eType service_type,
610610
hmi_apis::Common_ServiceEvent::eType service_event,
611-
utils::Optional<hmi_apis::Common_ServiceUpdateReason::eType>
611+
utils::Optional<hmi_apis::Common_ServiceStatusUpdateReason::eType>
612612
service_update_reason) FINAL;
613613

614614
bool OnPTUFailed() FINAL;

src/components/application_manager/include/application_manager/message_helper.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ class MessageHelper {
110110
public:
111111
typedef hmi_apis::Common_ServiceType::eType ServiceType;
112112
typedef hmi_apis::Common_ServiceEvent::eType ServiceEvent;
113-
typedef hmi_apis::Common_ServiceUpdateReason::eType ServiceUpdateReason;
113+
typedef hmi_apis::Common_ServiceStatusUpdateReason::eType
114+
ServiceStatusUpdateReason;
114115

115116
/**
116117
* @brief CreateBuilder creates builder instance
@@ -134,7 +135,7 @@ class MessageHelper {
134135
* @returns ref to builder instance
135136
*/
136137
ServiceStatusUpdateNotificationBuilder& AddServiceUpdateReason(
137-
const ServiceUpdateReason service_update_reason);
138+
const ServiceStatusUpdateReason service_update_reason);
138139

139140
/**
140141
* @brief notification gets notification SO

src/components/application_manager/include/application_manager/policies/policy_handler.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,12 @@ class PolicyHandler : public PolicyHandlerInterface,
447447
std::string& cloud_transport_type,
448448
std::string& hybrid_app_preference) const OVERRIDE;
449449

450+
void OnAuthTokenUpdated(const std::string& policy_app_id,
451+
const std::string& auth_token) OVERRIDE;
452+
450453
/**
451-
* @brief Callback for when a SetCloudAppProperties message is received from a
454+
* @brief Callback for when a SetCloudAppProperties message is received
455+
* from a
452456
* mobile app
453457
* @param message The SetCloudAppProperties message
454458
*/

src/components/application_manager/src/application_manager_impl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,7 @@ void ApplicationManagerImpl::ProcessServiceStatusUpdate(
20082008
const uint32_t connection_key,
20092009
hmi_apis::Common_ServiceType::eType service_type,
20102010
hmi_apis::Common_ServiceEvent::eType service_event,
2011-
utils::Optional<hmi_apis::Common_ServiceUpdateReason::eType>
2011+
utils::Optional<hmi_apis::Common_ServiceStatusUpdateReason::eType>
20122012
service_update_reason) {
20132013
LOG4CXX_AUTO_TRACE(logger_);
20142014

src/components/application_manager/src/message_helper/message_helper.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2137,7 +2137,7 @@ MessageHelper::ServiceStatusUpdateNotificationBuilder::AddAppID(
21372137

21382138
MessageHelper::ServiceStatusUpdateNotificationBuilder&
21392139
MessageHelper::ServiceStatusUpdateNotificationBuilder::AddServiceUpdateReason(
2140-
const ServiceUpdateReason service_update_reason) {
2140+
const ServiceStatusUpdateReason service_update_reason) {
21412141
(*notification_)[strings::msg_params][hmi_notification::reason] =
21422142
service_update_reason;
21432143

src/components/application_manager/test/application_manager_impl_test.cc

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ const std::string kAppName = "appName";
105105

106106
typedef MockMessageHelper::MockServiceStatusUpdateNotificationBuilder*
107107
MockServiceStatusUpdatePtr;
108-
typedef hmi_apis::Common_ServiceUpdateReason::eType ServiceUpdateReason;
108+
typedef hmi_apis::Common_ServiceStatusUpdateReason::eType
109+
ServiceStatusUpdateReason;
109110
typedef hmi_apis::Common_ServiceType::eType ServiceType;
110111
typedef hmi_apis::Common_ServiceEvent::eType ServiceEvent;
111-
typedef utils::Optional<ServiceUpdateReason> UpdateReasonOptional;
112+
typedef utils::Optional<ServiceStatusUpdateReason> UpdateReasonOptional;
112113

113114
#if defined(CLOUD_APP_WEBSOCKET_TRANSPORT_SUPPORT)
114115
// Cloud application params
@@ -173,11 +174,7 @@ class ApplicationManagerImplTest
173174
.WillByDefault(DoAll(SetArgPointee<3u>(kDeviceId), Return(0)));
174175
ON_CALL(mock_connection_handler_, get_session_observer())
175176
.WillByDefault(ReturnRef(mock_session_observer_));
176-
std::unique_ptr<rpc_service::RPCService> unique_rpc_service(
177-
new MockRPCService);
178-
app_manager_impl_->SetRPCService(unique_rpc_service);
179-
mock_rpc_service_ =
180-
static_cast<MockRPCService*>(&(app_manager_impl_->GetRPCService()));
177+
181178
app_manager_impl_->SetMockRPCService(mock_rpc_service_);
182179
app_manager_impl_->resume_controller().set_resumption_storage(
183180
mock_storage_);
@@ -321,8 +318,9 @@ INSTANTIATE_TEST_CASE_P(
321318

322319
TEST_P(ApplicationManagerImplTest,
323320
ProcessServiceStatusUpdate_SendMessageToHMI) {
324-
smart_objects::SmartObjectSPtr notification_(
325-
new smart_objects::SmartObject(smart_objects::SmartType_Map));
321+
smart_objects::SmartObjectSPtr notification_ =
322+
std::make_shared<smart_objects::SmartObject>(
323+
smart_objects::SmartType_Map);
326324
(*notification_)[strings::msg_params][hmi_notification::service_type] =
327325
GetParam().service_type_;
328326
(*notification_)[strings::msg_params][hmi_notification::service_event] =
@@ -342,7 +340,7 @@ TEST_P(ApplicationManagerImplTest,
342340
ON_CALL(*mock_service_status_update_, notification())
343341
.WillByDefault(Return(notification_));
344342

345-
EXPECT_CALL(*mock_rpc_service_, ManageHMICommand(notification_))
343+
EXPECT_CALL(*mock_rpc_service_, ManageHMICommand(notification_, _))
346344
.WillOnce(Return(true));
347345

348346
app_manager_impl_->ProcessServiceStatusUpdate(kConnectionKey,

src/components/application_manager/test/help_prompt_manager_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright (c) 2018, Ford Motor Company
33
* All rights reserved.
44
*

src/components/application_manager/test/include/application_manager/mock_message_helper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class MockMessageHelper {
331331
const uint32_t app_id,
332332
const hmi_apis::Common_ServiceType::eType service_type,
333333
const hmi_apis::Common_ServiceEvent::eType service_event,
334-
const hmi_apis::Common_ServiceUpdateReason::eType
334+
const hmi_apis::Common_ServiceStatusUpdateReason::eType
335335
service_update_reason));
336336

337337
class MockServiceStatusUpdateNotificationBuilder
@@ -351,7 +351,7 @@ class MockMessageHelper {
351351

352352
MOCK_METHOD1(AddServiceUpdateReason,
353353
MessageHelper::ServiceStatusUpdateNotificationBuilder&(
354-
const hmi_apis::Common_ServiceUpdateReason::eType));
354+
const hmi_apis::Common_ServiceStatusUpdateReason::eType));
355355

356356
MOCK_CONST_METHOD0(notification, smart_objects::SmartObjectSPtr());
357357
};

src/components/application_manager/test/message_helper/message_helper_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ typedef MessageHelper::ServiceStatusUpdateNotificationBuilder::ServiceType
7474
typedef MessageHelper::ServiceStatusUpdateNotificationBuilder::ServiceEvent
7575
ServiceEvent;
7676
typedef MessageHelper::ServiceStatusUpdateNotificationBuilder::
77-
ServiceUpdateReason UpdateReason;
77+
ServiceStatusUpdateReason UpdateReason;
7878
typedef MessageHelper::ServiceStatusUpdateNotificationBuilder
7979
ServiceStatusUpdateBuilder;
8080

src/components/application_manager/test/mock_message_helper.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,8 @@ MessageHelper::ServiceStatusUpdateNotificationBuilder::AddAppID(
602602

603603
MessageHelper::ServiceStatusUpdateNotificationBuilder&
604604
MessageHelper::ServiceStatusUpdateNotificationBuilder::AddServiceUpdateReason(
605-
const hmi_apis::Common_ServiceUpdateReason::eType service_update_reason) {
605+
const hmi_apis::Common_ServiceStatusUpdateReason::eType
606+
service_update_reason) {
606607
return MockMessageHelper::on_service_update_builder_mock()
607608
->AddServiceUpdateReason(service_update_reason);
608609
}

0 commit comments

Comments
 (0)