refactor: move seventv/bttv event apis to application (#5532)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "mocks/DisabledStreamerMode.hpp"
|
||||
#include "mocks/EmptyApplication.hpp"
|
||||
#include "providers/bttv/BttvLiveUpdates.hpp"
|
||||
#include "singletons/Settings.hpp"
|
||||
|
||||
#include <QString>
|
||||
@@ -30,6 +31,16 @@ public:
|
||||
return &this->streamerMode;
|
||||
}
|
||||
|
||||
BttvLiveUpdates *getBttvLiveUpdates() override
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
SeventvEventAPI *getSeventvEventAPI() override
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Settings settings;
|
||||
DisabledStreamerMode streamerMode;
|
||||
};
|
||||
|
||||
@@ -231,6 +231,13 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
BttvLiveUpdates *getBttvLiveUpdates() override
|
||||
{
|
||||
assert(false && "EmptyApplication::getBttvLiveUpdates was called "
|
||||
"without being initialized");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
FfzEmotes *getFfzEmotes() override
|
||||
{
|
||||
assert(false && "EmptyApplication::getFfzEmotes was called without "
|
||||
@@ -245,6 +252,13 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
SeventvEventAPI *getSeventvEventAPI() override
|
||||
{
|
||||
assert(false && "EmptyApplication::getSeventvEventAPI was called "
|
||||
"without being initialized");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ILinkResolver *getLinkResolver() override
|
||||
{
|
||||
assert(false && "EmptyApplication::getLinkResolver was called without "
|
||||
|
||||
@@ -2,13 +2,11 @@
|
||||
|
||||
#include "mocks/Channel.hpp"
|
||||
#include "providers/bttv/BttvEmotes.hpp"
|
||||
#include "providers/bttv/BttvLiveUpdates.hpp"
|
||||
#include "providers/ffz/FfzEmotes.hpp"
|
||||
#include "providers/seventv/eventapi/Client.hpp"
|
||||
#include "providers/seventv/eventapi/Dispatch.hpp"
|
||||
#include "providers/seventv/eventapi/Message.hpp"
|
||||
#include "providers/seventv/SeventvEmotes.hpp"
|
||||
#include "providers/seventv/SeventvEventAPI.hpp"
|
||||
#include "providers/twitch/TwitchIrcServer.hpp"
|
||||
|
||||
namespace chatterino::mock {
|
||||
@@ -46,16 +44,6 @@ public:
|
||||
//
|
||||
}
|
||||
|
||||
std::unique_ptr<BttvLiveUpdates> &getBTTVLiveUpdates() override
|
||||
{
|
||||
return this->bttvLiveUpdates;
|
||||
}
|
||||
|
||||
std::unique_ptr<SeventvEventAPI> &getSeventvEventAPI() override
|
||||
{
|
||||
return this->seventvEventAPI;
|
||||
}
|
||||
|
||||
const IndirectChannel &getWatchingChannel() const override
|
||||
{
|
||||
return this->watchingChannel;
|
||||
@@ -103,9 +91,6 @@ public:
|
||||
ChannelPtr liveChannel;
|
||||
ChannelPtr automodChannel;
|
||||
QString lastUserThatWhisperedMe{"forsen"};
|
||||
|
||||
std::unique_ptr<BttvLiveUpdates> bttvLiveUpdates;
|
||||
std::unique_ptr<SeventvEventAPI> seventvEventAPI;
|
||||
};
|
||||
|
||||
} // namespace chatterino::mock
|
||||
|
||||
Reference in New Issue
Block a user