From d198163682f21400cf8708995ef2632ccac2a87a Mon Sep 17 00:00:00 2001 From: Andrea Azzarone Date: Thu, 21 Jul 2016 14:37:19 +0200 Subject: Use the standard notification-device-eject in the "device eject" notificaiton. This allows us to scale it properly on high-dpi setups. Fixes LP: #1605231 (bzr r4153.3.1) --- tests/test_mock_devices.h | 2 +- tests/test_volume_launcher_icon.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_mock_devices.h b/tests/test_mock_devices.h index d429b569b..7dc0fcef4 100644 --- a/tests/test_mock_devices.h +++ b/tests/test_mock_devices.h @@ -101,7 +101,7 @@ struct MockDeviceNotificationDisplay : DeviceNotificationDisplay typedef std::shared_ptr Ptr; typedef testing::NiceMock Nice; - MOCK_METHOD2(Display, void(std::string const& icon_name, std::string const& volume_name)); + MOCK_METHOD1(Display, void(std::string const& volume_name)); }; } // anonymous namespace diff --git a/tests/test_volume_launcher_icon.cpp b/tests/test_volume_launcher_icon.cpp index 1bd4f5a56..d5f0f1f88 100644 --- a/tests/test_volume_launcher_icon.cpp +++ b/tests/test_volume_launcher_icon.cpp @@ -481,7 +481,7 @@ TEST_F(TestVolumeLauncherIcon, TestEjectMenuItem) auto menuitem = GetMenuItemAtIndex(5); EXPECT_CALL(*volume_, Eject()); - EXPECT_CALL(*notifications_, Display(volume_->GetIconName(), volume_->GetName())); + EXPECT_CALL(*notifications_, Display(volume_->GetName())); ASSERT_STREQ(dbusmenu_menuitem_property_get(menuitem, DBUSMENU_MENUITEM_PROP_LABEL), "Eject"); EXPECT_TRUE(dbusmenu_menuitem_property_get_bool(menuitem, DBUSMENU_MENUITEM_PROP_VISIBLE)); @@ -573,7 +573,7 @@ TEST_F(TestVolumeLauncherIcon, TestEject) .WillRepeatedly(Return(true)); EXPECT_CALL(*volume_, Eject()); - EXPECT_CALL(*notifications_, Display(volume_->GetIconName(), volume_->GetName())); + EXPECT_CALL(*notifications_, Display(volume_->GetName())); icon_->EjectAndShowNotification(); } -- cgit v1.2.3