Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F35336913
test.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
test.cpp
View Options
/*
utils/test.cpp
This file is part of libkleopatra, the KDE keymanagement library
SPDX-FileCopyrightText: 2021 g10 Code GmbH
SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include
"test.h"
#include
"cryptoconfig_p.h"
#include
<QString>
using
namespace
Kleo
::
Tests
;
FakeCryptoConfigIntValue
::
FakeCryptoConfigIntValue
(
const
char
*
componentName
,
const
char
*
entryName
,
int
fakeValue
)
:
mComponentName
(
componentName
)
,
mEntryName
(
entryName
)
{
Kleo
::
Private
::
setFakeCryptoConfigIntValue
(
mComponentName
,
mEntryName
,
fakeValue
);
}
FakeCryptoConfigIntValue
::~
FakeCryptoConfigIntValue
()
{
Kleo
::
Private
::
clearFakeCryptoConfigIntValue
(
mComponentName
,
mEntryName
);
}
FakeCryptoConfigStringValue
::
FakeCryptoConfigStringValue
(
const
char
*
componentName
,
const
char
*
entryName
,
const
QString
&
fakeValue
)
:
mComponentName
(
componentName
)
,
mEntryName
(
entryName
)
{
Kleo
::
Private
::
setFakeCryptoConfigStringValue
(
mComponentName
,
mEntryName
,
fakeValue
);
}
FakeCryptoConfigStringValue
::~
FakeCryptoConfigStringValue
()
{
Kleo
::
Private
::
clearFakeCryptoConfigStringValue
(
mComponentName
,
mEntryName
);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Feb 6, 8:11 AM (12 h, 52 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
23/4d/0ba62c1dc526a28da3d26ed742e6
Attached To
rLIBKLEO Libkleo
Event Timeline
Log In to Comment