aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/mcusupport/test/settingshandlermock.h
blob: 1cb3faf4730975181686a2506184304e5b061b25 (plain)
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
29
30
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once

#include "settingshandler.h"

#include <gmock/gmock.h>

#include <utils/filepath.h>
#include <utils/storekey.h>

namespace McuSupport::Internal {

class SettingsHandlerMock : public SettingsHandler
{
public:
    SettingsHandlerMock() = default;
    ~SettingsHandlerMock() override = default;

    MOCK_METHOD(Utils::FilePath,
                getPath,
                (const Utils::Key &, QSettings::Scope, const Utils::FilePath &),
                (const, override));
    MOCK_METHOD(bool,
                write,
                (const Utils::Key &, const Utils::FilePath &, const Utils::FilePath &),
                (const, override));
};

} // namespace McuSupport::Internal