Zrythm
v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
mock_settings_backend.h
1
// SPDX-FileCopyrightText: © 2026 Alexandros Theodotou <alex@zrythm.org>
2
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4
#pragma once
5
6
#include "utils/isettings_backend.h"
7
8
#include <gmock/gmock.h>
9
10
namespace
zrythm::test_helpers
11
{
12
13
class
MockSettingsBackend
:
public
utils::ISettingsBackend
14
{
15
public
:
16
MOCK_METHOD (
17
QVariant,
18
value,
19
(QAnyStringView key,
const
QVariant &defaultValue),
20
(
const
,
override
));
21
MOCK_METHOD (
22
void
,
23
setValue,
24
(QAnyStringView key,
const
QVariant &value),
25
(
override
));
26
};
27
28
}
// namespace zrythm::test_helpers
zrythm::test_helpers::MockSettingsBackend
Definition
mock_settings_backend.h:14
zrythm::utils::ISettingsBackend
Interface for an app settings provider.
Definition
isettings_backend.h:14
tests
helpers
mock_settings_backend.h
Generated by
1.15.0