mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
37 lines
803 B
C++
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
|