From 6ef9cfb61065b10785ad4fc37f0b0b0463f86fb7 Mon Sep 17 00:00:00 2001 From: Andrii Kalinich Date: Mon, 30 Nov 2020 17:27:37 -0500 Subject: fixup! Fix regression and style issues --- .../include/application_manager/application.h | 10 +++++----- .../test/message_helper/message_helper_test.cc | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/application_manager/include/application_manager/application.h b/src/components/application_manager/include/application_manager/application.h index 58327c315e..2eb4501bcc 100644 --- a/src/components/application_manager/include/application_manager/application.h +++ b/src/components/application_manager/include/application_manager/application.h @@ -170,14 +170,14 @@ typedef std::map PerformChoice; typedef std::map PerformChoiceSetMap; /** - * @brief Defines id of SoftButtons related to a specified WindowID + * @brief Defines id of SoftButtons for specified WindowID */ -typedef std::set > > SoftButtonIDs; +typedef std::pair > WindowSoftButtons; /** - * @brief Defines id of SoftButtons for specified WindowID + * @brief Defines id of SoftButtons related to a specified WindowID */ -typedef std::pair > WindowSoftButtons; +typedef std::set SoftButtonIDs; /** * @brief Defines set of buttons subscription @@ -966,7 +966,7 @@ class Application : public virtual InitialApplicationData, * Alert, Show, ScrollableMessage, ShowConstantTBT, AlertManeuver, * UpdateTurnList * @param cmd_id Unique command id from mobile API - * @param list of softbuttons were created by command. + * @param window_softbuttons list of softbuttons were created by command. */ virtual void SubscribeToSoftButtons( int32_t cmd_id, const WindowSoftButtons& window_softbuttons) = 0; diff --git a/src/components/application_manager/test/message_helper/message_helper_test.cc b/src/components/application_manager/test/message_helper/message_helper_test.cc index 384cde7db8..34d1e488b7 100644 --- a/src/components/application_manager/test/message_helper/message_helper_test.cc +++ b/src/components/application_manager/test/message_helper/message_helper_test.cc @@ -888,8 +888,9 @@ TEST_F(MessageHelperTest, } } -TEST_F(MessageHelperTest, - SubscribeApplicationToSoftButton_SoftbuttonsIsAnsent_DoesntCallFromApp) { +TEST_F( + MessageHelperTest, + SubscribeApplicationToSoftButton_SoftbuttonsAreAbsent_DoesntCallFromApp) { MockApplicationSharedPtr appSharedPtr = std::make_shared(); smart_objects::SmartObject message_params; size_t function_id = 1; -- cgit v1.2.1