mirror-chatterino2/mocks/include/mocks/Logging.hpp

37 lines
803 B
C++

#pragma once
#include "singletons/Logging.hpp"
#include <gmock/gmock.h>
#include <QString>
#include <QStringList>
namespace chatterino::mock {
class Logging : public ILogging
{
public:
Logging() = default;
~Logging() override = default;
MOCK_METHOD(void, addMessage,
(const QString &channelName, MessagePtr message,
const QString &platformName, const QString &streamID),
(override));
};
class EmptyLogging : public ILogging
{
public:
EmptyLogging() = default;
~EmptyLogging() override = default;
void addMessage(const QString &channelName, MessagePtr message,
const QString &platformName,
const QString &streamID) override
{
//
}
};
} // namespace chatterino::mock