Skip to content

Commit

Permalink
chore: replace fat friends with gtest macro
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Nov 22, 2024
1 parent 30fa2d9 commit b59c0cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/controllers/legacycontrollersettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class LegacyControllerBooleanSetting
bool m_defaultValue;
bool m_editedValue;

friend class LegacyControllerMappingSettingsTest_booleanSettingEditing_Test;
FRIEND_TEST(LegacyControllerMappingSettingsTest, booleanSettingEditing);
};

template<class SettingType>
Expand Down Expand Up @@ -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<class T>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b59c0cb

Please sign in to comment.