Skip to content

Commit 81b4515

Browse files
committed
Fixes after rebase
1 parent ba71a83 commit 81b4515

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
@@ -605,7 +605,7 @@ class ApplicationManagerImpl
605605
const uint32_t connection_key,
606606
hmi_apis::Common_ServiceType::eType service_type,
607607
hmi_apis::Common_ServiceEvent::eType service_event,
608-
utils::Optional<hmi_apis::Common_ServiceUpdateReason::eType>
608+
utils::Optional<hmi_apis::Common_ServiceStatusUpdateReason::eType>
609609
service_update_reason) FINAL;
610610

611611
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
@@ -2006,7 +2006,7 @@ void ApplicationManagerImpl::ProcessServiceStatusUpdate(
20062006
const uint32_t connection_key,
20072007
hmi_apis::Common_ServiceType::eType service_type,
20082008
hmi_apis::Common_ServiceEvent::eType service_event,
2009-
utils::Optional<hmi_apis::Common_ServiceUpdateReason::eType>
2009+
utils::Optional<hmi_apis::Common_ServiceStatusUpdateReason::eType>
20102010
service_update_reason) {
20112011
LOG4CXX_AUTO_TRACE(logger_);
20122012

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

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

21302130
MessageHelper::ServiceStatusUpdateNotificationBuilder&
21312131
MessageHelper::ServiceStatusUpdateNotificationBuilder::AddServiceUpdateReason(
2132-
const ServiceUpdateReason service_update_reason) {
2132+
const ServiceStatusUpdateReason service_update_reason) {
21332133
(*notification_)[strings::msg_params][hmi_notification::reason] =
21342134
service_update_reason;
21352135

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_);
@@ -320,8 +317,9 @@ INSTANTIATE_TEST_CASE_P(
320317

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

344-
EXPECT_CALL(*mock_rpc_service_, ManageHMICommand(notification_))
342+
EXPECT_CALL(*mock_rpc_service_, ManageHMICommand(notification_, _))
345343
.WillOnce(Return(true));
346344

347345
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)