aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests/t-support.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-08-25 13:20:02 +0000
committerAndre Heinecke <[email protected]>2016-08-25 13:20:02 +0000
commit053e6e0a7b8ea38ad9d4160c84814867bbb9fcf6 (patch)
tree5c291fffeed07e80ac7ae42d396975e159ed2be5 /lang/qt/tests/t-support.h
parentqt: Remove unused variable in test (diff)
downloadgpgme-053e6e0a7b8ea38ad9d4160c84814867bbb9fcf6.tar.gz
gpgme-053e6e0a7b8ea38ad9d4160c84814867bbb9fcf6.zip
qt: Fix tofuinfo test when gpg is gpg2
* lang/qt/tests/t-support.cpp (QGpgMETest::copyKeyrings): New helper. * lang/qt/tests/t-support.h: Declare. * lang/qt/tests/t-encrypt.cpp: use it * lang/qt/tests/t-tofuinbo.cpp: ditto. -- New helper takes care of copying the correct files for either keybox or keyring.
Diffstat (limited to 'lang/qt/tests/t-support.h')
-rw-r--r--lang/qt/tests/t-support.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/qt/tests/t-support.h b/lang/qt/tests/t-support.h
index cf0cb26e..74163b11 100644
--- a/lang/qt/tests/t-support.h
+++ b/lang/qt/tests/t-support.h
@@ -55,6 +55,8 @@ void killAgent(const QString &dir = qgetenv("GNUPGHOME"));
class QGpgMETest : public QObject
{
Q_OBJECT
+protected:
+ bool copyKeyrings(const QString &from, const QString& to);
public Q_SLOTS:
void initTestCase();