Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
libkleo
Commits
2f216aae
Commit
2f216aae
authored
Apr 19, 2021
by
Ingo Klöcker
Browse files
Remove obsolete test helpers
GnuPG-bug-id: 5283
parent
608375f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
autotests/newkeyapprovaldialogtest.cpp
View file @
2f216aae
...
@@ -433,33 +433,6 @@ private Q_SLOTS:
...
@@ -433,33 +433,6 @@ private Q_SLOTS:
QCOMPARE
(
encryptionKeyWidgets
.
visible
.
size
(),
5
);
QCOMPARE
(
encryptionKeyWidgets
.
visible
.
size
(),
5
);
QCOMPARE
(
encryptionKeyWidgets
.
hidden
.
size
(),
0
);
QCOMPARE
(
encryptionKeyWidgets
.
hidden
.
size
(),
0
);
}
}
private:
QMap
<
QString
,
std
::
vector
<
GpgME
::
Key
>
>
resolved_senders_openpgp_and_smime
()
{
return
{
{
QStringLiteral
(
"sender@example.net"
),
{
createTestKey
(
"sender@example.net"
,
GpgME
::
OpenPGP
),
createTestKey
(
"sender@example.net"
,
GpgME
::
CMS
)
}}
};
}
QMap
<
QString
,
std
::
vector
<
GpgME
::
Key
>
>
resolved_recipients_openpgp_and_smime
()
{
return
{
{
QStringLiteral
(
"prefer-openpgp@example.net"
),
{
createTestKey
(
"Full Trust <prefer-openpgp@example.net>"
,
GpgME
::
OpenPGP
)
}},
{
QStringLiteral
(
"prefer-smime@example.net"
),
{
createTestKey
(
"Trusted S/MIME <prefer-smime@example.net>"
,
GpgME
::
CMS
)
}},
{
QStringLiteral
(
"sender@example.net"
),
{
createTestKey
(
"sender@example.net"
,
GpgME
::
OpenPGP
),
createTestKey
(
"sender@example.net"
,
GpgME
::
CMS
)
}}
};
}
};
};
QTEST_MAIN
(
NewKeyApprovalDialogTest
)
QTEST_MAIN
(
NewKeyApprovalDialogTest
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment