mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
37 lines
956 B
C++
37 lines
956 B
C++
#pragma once
|
|
|
|
#include "mocks/Channel.hpp"
|
|
#include "providers/bttv/BttvEmotes.hpp"
|
|
#include "providers/ffz/FfzEmotes.hpp"
|
|
#include "providers/seventv/SeventvEmotes.hpp"
|
|
#include "providers/twitch/TwitchIrcServer.hpp"
|
|
|
|
namespace chatterino::mock {
|
|
|
|
class MockTwitchIrcServer : public ITwitchIrcServer
|
|
{
|
|
public:
|
|
MockTwitchIrcServer()
|
|
: watchingChannelInner(
|
|
std::shared_ptr<Channel>(new MockChannel("testaccount_420")))
|
|
, watchingChannel(this->watchingChannelInner,
|
|
Channel::Type::TwitchWatching)
|
|
{
|
|
}
|
|
|
|
const IndirectChannel &getWatchingChannel() const override
|
|
{
|
|
return this->watchingChannel;
|
|
}
|
|
|
|
QString getLastUserThatWhisperedMe() const override
|
|
{
|
|
return this->lastUserThatWhisperedMe;
|
|
}
|
|
|
|
ChannelPtr watchingChannelInner;
|
|
IndirectChannel watchingChannel;
|
|
QString lastUserThatWhisperedMe{"forsen"};
|
|
};
|
|
|
|
} // namespace chatterino::mock
|