fix: don't initialize GIFTimer in tests (#5608)
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
#include "controllers/commands/CommandController.hpp"
|
||||
#include "controllers/commands/common/ChannelAction.hpp"
|
||||
#include "mocks/BaseApplication.hpp"
|
||||
#include "mocks/Emotes.hpp"
|
||||
#include "mocks/Helix.hpp"
|
||||
#include "mocks/Logging.hpp"
|
||||
#include "mocks/TwitchIrcServer.hpp"
|
||||
#include "providers/twitch/TwitchAccount.hpp"
|
||||
#include "providers/twitch/TwitchChannel.hpp"
|
||||
#include "singletons/Emotes.hpp"
|
||||
#include "singletons/Settings.hpp"
|
||||
#include "Test.hpp"
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
AccountController accounts;
|
||||
CommandController commands;
|
||||
mock::MockTwitchIrcServer twitch;
|
||||
Emotes emotes;
|
||||
mock::Emotes emotes;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "mocks/BaseApplication.hpp"
|
||||
#include "mocks/Channel.hpp"
|
||||
#include "mocks/ChatterinoBadges.hpp"
|
||||
#include "mocks/Emotes.hpp"
|
||||
#include "mocks/EmptyApplication.hpp"
|
||||
#include "mocks/Logging.hpp"
|
||||
#include "mocks/TwitchIrcServer.hpp"
|
||||
@@ -14,7 +15,6 @@
|
||||
#include "providers/ffz/FfzBadges.hpp"
|
||||
#include "providers/seventv/SeventvBadges.hpp"
|
||||
#include "providers/twitch/TwitchBadge.hpp"
|
||||
#include "singletons/Emotes.hpp"
|
||||
#include "Test.hpp"
|
||||
|
||||
#include <QColor>
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
|
||||
mock::EmptyLogging logging;
|
||||
AccountController accounts;
|
||||
Emotes emotes;
|
||||
mock::Emotes emotes;
|
||||
mock::UserDataController userData;
|
||||
mock::MockTwitchIrcServer twitch;
|
||||
mock::ChatterinoBadges chatterinoBadges;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "messages/Emote.hpp"
|
||||
#include "mocks/BaseApplication.hpp"
|
||||
#include "mocks/Channel.hpp"
|
||||
#include "mocks/Emotes.hpp"
|
||||
#include "mocks/Helix.hpp"
|
||||
#include "mocks/Logging.hpp"
|
||||
#include "mocks/TwitchIrcServer.hpp"
|
||||
@@ -79,7 +80,7 @@ public:
|
||||
mock::EmptyLogging logging;
|
||||
AccountController accounts;
|
||||
mock::MockTwitchIrcServer twitch;
|
||||
Emotes emotes;
|
||||
mock::Emotes emotes;
|
||||
BttvEmotes bttvEmotes;
|
||||
FfzEmotes ffzEmotes;
|
||||
SeventvEmotes seventvEmotes;
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
#include "mocks/Channel.hpp"
|
||||
#include "mocks/ChatterinoBadges.hpp"
|
||||
#include "mocks/DisabledStreamerMode.hpp"
|
||||
#include "mocks/Emotes.hpp"
|
||||
#include "mocks/Logging.hpp"
|
||||
#include "mocks/TwitchIrcServer.hpp"
|
||||
#include "mocks/UserData.hpp"
|
||||
#include "providers/ffz/FfzBadges.hpp"
|
||||
#include "providers/seventv/SeventvBadges.hpp"
|
||||
#include "providers/twitch/TwitchBadge.hpp"
|
||||
#include "singletons/Emotes.hpp"
|
||||
#include "Test.hpp"
|
||||
#include "util/IrcHelpers.hpp"
|
||||
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
|
||||
mock::EmptyLogging logging;
|
||||
AccountController accounts;
|
||||
Emotes emotes;
|
||||
mock::Emotes emotes;
|
||||
mock::UserDataController userData;
|
||||
mock::MockTwitchIrcServer twitch;
|
||||
mock::ChatterinoBadges chatterinoBadges;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "messages/Image.hpp"
|
||||
#include "mocks/BaseApplication.hpp"
|
||||
#include "singletons/Emotes.hpp"
|
||||
#include "mocks/Emotes.hpp"
|
||||
#include "singletons/Resources.hpp"
|
||||
#include "Test.hpp"
|
||||
|
||||
@@ -24,7 +24,7 @@ public:
|
||||
return &this->emotes;
|
||||
}
|
||||
|
||||
Emotes emotes;
|
||||
mock::Emotes emotes;
|
||||
};
|
||||
|
||||
class ModerationActionTest : public ::testing::Test
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "controllers/commands/CommandController.hpp"
|
||||
#include "controllers/hotkeys/HotkeyController.hpp"
|
||||
#include "mocks/BaseApplication.hpp"
|
||||
#include "singletons/Emotes.hpp"
|
||||
#include "mocks/Emotes.hpp"
|
||||
#include "singletons/Fonts.hpp"
|
||||
#include "singletons/Paths.hpp"
|
||||
#include "singletons/Settings.hpp"
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
WindowManager windowManager;
|
||||
AccountController accounts;
|
||||
CommandController commands;
|
||||
Emotes emotes;
|
||||
mock::Emotes emotes;
|
||||
};
|
||||
|
||||
class SplitInputTest
|
||||
|
||||
Reference in New Issue
Block a user