From b59c0cbae9f93a2e0d5e22ac8db6d1f4ccac5216 Mon Sep 17 00:00:00 2001 From: Antoine C Date: Wed, 16 Oct 2024 23:53:26 +0100 Subject: [PATCH] chore: replace fat friends with gtest macro --- src/controllers/legacycontrollersettings.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/controllers/legacycontrollersettings.h b/src/controllers/legacycontrollersettings.h index 1faa4ead843..69f51c5594b 100644 --- a/src/controllers/legacycontrollersettings.h +++ b/src/controllers/legacycontrollersettings.h @@ -184,7 +184,7 @@ class LegacyControllerBooleanSetting bool m_defaultValue; bool m_editedValue; - friend class LegacyControllerMappingSettingsTest_booleanSettingEditing_Test; + FRIEND_TEST(LegacyControllerMappingSettingsTest, booleanSettingEditing); }; template @@ -301,8 +301,8 @@ class LegacyControllerNumberSetting SettingType m_editedValue; - friend class LegacyControllerMappingSettingsTest_integerSettingEditing_Test; - friend class LegacyControllerMappingSettingsTest_doubleSettingEditing_Test; + FRIEND_TEST(LegacyControllerMappingSettingsTest, integerSettingEditing); + FRIEND_TEST(LegacyControllerMappingSettingsTest, doubleSettingEditing); }; template @@ -429,8 +429,8 @@ class LegacyControllerEnumSetting size_t m_editedValue; - friend class LegacyControllerMappingSettingsTest_enumSettingEditing_Test; - friend class ControllerS4MK3SettingTest_ensureLibrarySettingValueAndEnumEquals; + FRIEND_TEST(LegacyControllerMappingSettingsTest, enumSettingEditing); + FRIEND_TEST(ControllerS4MK3SettingTest, ensureLibrarySettingValueAndEnumEquals); }; class LegacyControllerColorSetting