Libkleo

test.cpp
1/*
2 utils/test.cpp
3
4 This file is part of libkleopatra, the KDE keymanagement library
5 SPDX-FileCopyrightText: 2021 g10 Code GmbH
6 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
7
8 SPDX-License-Identifier: GPL-2.0-or-later
9*/
10
11#include <config-libkleo.h>
12
13#include "test.h"
14
15#include "cryptoconfig_p.h"
16
17#include <QString>
18
19using namespace Kleo::Tests;
20
21FakeCryptoConfigIntValue::FakeCryptoConfigIntValue(const char *componentName, const char *entryName, int fakeValue)
22 : mComponentName(componentName)
23 , mEntryName(entryName)
24{
25 Kleo::Private::setFakeCryptoConfigIntValue(mComponentName, mEntryName, fakeValue);
26}
27
28FakeCryptoConfigIntValue::~FakeCryptoConfigIntValue()
29{
30 Kleo::Private::clearFakeCryptoConfigIntValue(mComponentName, mEntryName);
31}
32
33FakeCryptoConfigStringValue::FakeCryptoConfigStringValue(const char *componentName, const char *entryName, const QString &fakeValue)
34 : mComponentName(componentName)
35 , mEntryName(entryName)
36{
37 Kleo::Private::setFakeCryptoConfigStringValue(mComponentName, mEntryName, fakeValue);
38}
39
40FakeCryptoConfigStringValue::~FakeCryptoConfigStringValue()
41{
42 Kleo::Private::clearFakeCryptoConfigStringValue(mComponentName, mEntryName);
43}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.