mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
chore: update mocks
This commit is contained in:
parent
7d0c473828
commit
c4faca50e0
|
@ -26,6 +26,7 @@ public:
|
|||
, mentionsChannel(std::shared_ptr<Channel>(new MockChannel("forsen3")))
|
||||
, liveChannel(std::shared_ptr<Channel>(new MockChannel("forsen")))
|
||||
, automodChannel(std::shared_ptr<Channel>(new MockChannel("forsen2")))
|
||||
, channelNamesById_(1)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -49,6 +50,14 @@ public:
|
|||
return {};
|
||||
}
|
||||
|
||||
std::optional<QString> getOrPopulateChannelCache(
|
||||
const QString &channelId) override
|
||||
{
|
||||
assert(false &&
|
||||
"unimplemented getOrPopulateChannelCache in mock irc server");
|
||||
return {};
|
||||
}
|
||||
|
||||
void addFakeMessage(const QString &data) override
|
||||
{
|
||||
}
|
||||
|
@ -148,6 +157,7 @@ public:
|
|||
ChannelPtr mentionsChannel;
|
||||
ChannelPtr liveChannel;
|
||||
ChannelPtr automodChannel;
|
||||
UniqueAccess<cache::lru_cache<QString, QString>> channelNamesById_;
|
||||
QString lastUserThatWhisperedMe{"forsen"};
|
||||
|
||||
std::unordered_map<QString, std::weak_ptr<Channel>> mockChannels;
|
||||
|
|
Loading…
Reference in a new issue