2023-05-20 12:54:50 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Application.hpp"
|
2023-12-29 15:40:31 +01:00
|
|
|
#include "common/Args.hpp"
|
2023-05-20 12:54:50 +02:00
|
|
|
|
|
|
|
namespace chatterino::mock {
|
|
|
|
|
|
|
|
class EmptyApplication : public IApplication
|
|
|
|
{
|
|
|
|
public:
|
2023-08-27 14:07:46 +02:00
|
|
|
virtual ~EmptyApplication() = default;
|
|
|
|
|
2023-12-29 15:40:31 +01:00
|
|
|
const Args &getArgs() override
|
|
|
|
{
|
|
|
|
return this->args_;
|
|
|
|
}
|
|
|
|
|
2023-05-20 12:54:50 +02:00
|
|
|
Theme *getThemes() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(
|
|
|
|
false &&
|
|
|
|
"EmptyApplication::getThemes was called without being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
Fonts *getFonts() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(
|
|
|
|
false &&
|
|
|
|
"EmptyApplication::getFonts was called without being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
IEmotes *getEmotes() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(
|
|
|
|
false &&
|
|
|
|
"EmptyApplication::getEmotes was called without being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
AccountController *getAccounts() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getAccounts was called without "
|
|
|
|
"being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
HotkeyController *getHotkeys() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getHotkeys was called without being "
|
|
|
|
"initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
WindowManager *getWindows() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getWindows was called without being "
|
|
|
|
"initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
Toasts *getToasts() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(
|
|
|
|
false &&
|
|
|
|
"EmptyApplication::getToasts was called without being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2023-12-24 15:38:58 +01:00
|
|
|
CrashHandler *getCrashHandler() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getCrashHandler was called without "
|
|
|
|
"being initialized");
|
2023-12-24 15:38:58 +01:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2023-05-20 12:54:50 +02:00
|
|
|
CommandController *getCommands() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getCommands was called without "
|
|
|
|
"being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
NotificationController *getNotifications() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getNotifications was called without "
|
|
|
|
"being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
HighlightController *getHighlights() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getHighlights was called without "
|
|
|
|
"being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2023-05-21 12:10:49 +02:00
|
|
|
ITwitchIrcServer *getTwitch() override
|
2023-05-20 12:54:50 +02:00
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(
|
|
|
|
false &&
|
|
|
|
"EmptyApplication::getTwitch was called without being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2024-01-06 13:18:37 +01:00
|
|
|
PubSub *getTwitchPubSub() override
|
|
|
|
{
|
|
|
|
assert(false && "getTwitchPubSub was called without being initialized");
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2023-12-31 13:51:40 +01:00
|
|
|
Logging *getChatLogger() override
|
|
|
|
{
|
|
|
|
assert(!"getChatLogger was called without being initialized");
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2023-05-20 12:54:50 +02:00
|
|
|
ChatterinoBadges *getChatterinoBadges() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getChatterinoBadges was called "
|
|
|
|
"without being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
FfzBadges *getFfzBadges() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getFfzBadges was called without "
|
|
|
|
"being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2023-10-13 17:41:23 +02:00
|
|
|
SeventvBadges *getSeventvBadges() override
|
|
|
|
{
|
|
|
|
assert(!"getSeventvBadges was called without being initialized");
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2023-05-20 12:54:50 +02:00
|
|
|
IUserDataController *getUserData() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getUserData was called without "
|
|
|
|
"being initialized");
|
2023-05-20 12:54:50 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
2023-07-02 15:52:15 +02:00
|
|
|
|
2023-11-26 22:06:12 +01:00
|
|
|
ISoundController *getSound() override
|
|
|
|
{
|
|
|
|
assert(!"getSound was called without being initialized");
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2023-07-02 15:52:15 +02:00
|
|
|
ITwitchLiveController *getTwitchLiveController() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getTwitchLiveController was called "
|
|
|
|
"without being initialized");
|
2023-07-02 15:52:15 +02:00
|
|
|
return nullptr;
|
|
|
|
}
|
2023-11-19 12:05:30 +01:00
|
|
|
|
|
|
|
ImageUploader *getImageUploader() override
|
|
|
|
{
|
2024-01-06 11:42:45 +01:00
|
|
|
assert(false && "EmptyApplication::getImageUploader was called without "
|
|
|
|
"being initialized");
|
2023-11-19 12:05:30 +01:00
|
|
|
return nullptr;
|
|
|
|
}
|
2023-11-26 16:54:19 +01:00
|
|
|
|
|
|
|
SeventvAPI *getSeventvAPI() override
|
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
2023-12-29 15:40:31 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
Args args_;
|
2023-05-20 12:54:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino::mock
|