1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* ============================================================
* The rekonq project
* ============================================================
* SPDX-License-Identifier: GPL-3.0-only
* Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
* ============================================================ */
#pragma once
#include <gmock/gmock.h>
#include <rsettings.hpp>
class MockSettings : public RekonqSettings {
Q_OBJECT
public:
explicit MockSettings() : RekonqSettings(nullptr) {}
~MockSettings() override = default;
MOCK_METHOD(void, beginGroup, (const QString &), (override));
MOCK_METHOD(void, endGroup, (), (override));
MOCK_METHOD(void, setValue, (const QString &, const QVariant &), (override));
MOCK_METHOD(void, resetValue, (const QString &), (override));
MOCK_METHOD(QVariant, value, (const QString &), (const, override));
MOCK_METHOD(QString, filePath, (), (const, override));
};
|