diff options
author | Alexander <akutsan@luxoft.com> | 2018-06-11 19:51:33 +0000 |
---|---|---|
committer | Ira Lytvynenko (GitHub) <ILytvynenko@luxoft.com> | 2018-06-26 12:01:47 +0300 |
commit | 68d72d184e0f54eb17f471de13679485e5bfb1d4 (patch) | |
tree | 555035f81115ee9488253affc35145c7ef7606d0 /src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/hmi/hmi_notifications_test.cc | |
parent | 50b77c114ac7c2fdb00052c8ebf719d8bf6902da (diff) | |
download | sdl_core-68d72d184e0f54eb17f471de13679485e5bfb1d4.tar.gz |
Style fix
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.cc | 40 |
1 files changed, 0 insertions, 40 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 0a66327741..92436d8ad7 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 @@ -61,7 +61,6 @@ #include "sdl_rpc_plugin/commands/hmi/on_vi_speed_notification.h" #include "sdl_rpc_plugin/commands/hmi/on_vi_steering_wheel_angle_notification.h" #include "sdl_rpc_plugin/commands/hmi/on_vi_tire_pressure_notification.h" -#include "sdl_rpc_plugin/commands/hmi/on_vi_vehicle_data_notification.h" #include "sdl_rpc_plugin/commands/hmi/on_vi_vin_notification.h" #include "sdl_rpc_plugin/commands/hmi/on_vi_wiper_status_notification.h" #include "sdl_rpc_plugin/commands/hmi/on_app_permission_changed_notification.h" @@ -337,29 +336,6 @@ class HMIOnNotificationsEventDispatcher NiceMock<event_engine_test::MockEventDispatcher> mock_event_dispatcher_; }; -typedef Types<OnVIAccPedalPositionNotification, - OnVIBeltStatusNotification, - OnVIBodyInformationNotification, - OnVIDeviceStatusNotification, - OnVIDriverBrakingNotification, - OnVIEngineTorqueNotification, - OnVIExternalTemperatureNotification, - OnVIFuelLevelNotification, - OnVIFuelLevelStateNotification, - OnVIGpsDataNotification, - OnVIHeadLampStatusNotification, - OnVIInstantFuelConsumptionNotification, - OnVIMyKeyNotification, - OnVIOdometerNotification, - OnVIPrndlNotification, - OnVIRpmNotification, - OnVISpeedNotification, - OnVISteeringWheelAngleNotification, - OnVITirePressureNotification, - OnVIVehicleDataNotification, - OnVIVinNotification, - OnVIWiperStatusNotification> HMIOnViNotificationsTypes; - typedef Types<OnAppPermissionChangedNotification, OnAudioDataStreamingNotification, hmi::OnButtonSubscriptionNotification, @@ -390,26 +366,10 @@ typedef Types< CommandPair<OnVRStoppedNotification, hmi_apis::FunctionID::VR_Stopped> > HMIOnNotificationsEventDispatcherTypes; -TYPED_TEST_CASE(HMIOnViNotifications, HMIOnViNotificationsTypes); TYPED_TEST_CASE(HMIOnNotificationsListToHMI, HMIOnNotificationsListToHMITypes); TYPED_TEST_CASE(HMIOnNotificationsEventDispatcher, HMIOnNotificationsEventDispatcherTypes); -TYPED_TEST(HMIOnViNotifications, CommandsSendNotificationToMobile) { - MessageSharedPtr message = - commands_test::CommandsTest<kIsNice>::CreateMessage(); - utils::SharedPtr<typename TestFixture::CommandType> command = - this->template CreateCommand<typename TestFixture::CommandType>(message); - EXPECT_CALL(commands_test::CommandsTest<kIsNice>::mock_rpc_service_, - ManageMobileCommand(_, Command::CommandSource::SOURCE_SDL)); - command->Run(); - EXPECT_EQ( - static_cast<int32_t>(mobile_apis::FunctionID::eType::OnVehicleDataID), - (*message)[am::strings::params][am::strings::function_id].asInt()); - EXPECT_EQ(static_cast<int32_t>(am::MessageType::kNotification), - (*message)[am::strings::params][am::strings::message_type].asInt()); -} - TYPED_TEST(HMIOnNotificationsListToHMI, CommandsSendNotificationToHmi) { MessageSharedPtr message = commands_test::CommandsTest<kIsNice>::CreateMessage(); |