File indexing completed on 2025-03-09 04:53:53

0001 /*
0002   SPDX-FileCopyrightText: 2022 Sandro Knauß <knauss@kde.org>
0003 
0004   SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QDir>
0010 #include <QObject>
0011 
0012 #include <memory>
0013 
0014 namespace Kleo{
0015 class KeyCache;
0016 }
0017 
0018 class AutocryptKeyResolverCoreTest : public QObject
0019 {
0020     Q_OBJECT
0021 
0022 private Q_SLOTS:
0023     void initTestCase();
0024     void init();
0025     void cleanup();
0026 
0027     void testAutocryptKeyResolver();
0028     void testAutocryptKeyResolverSkipSender();
0029     void testAutocryptKeyResolverUnresolved();
0030     void testAutocryptKeyResolverPreferNormal();
0031     void testNormalKeyResolver();
0032 
0033 private:
0034     QDir autocryptDir;
0035     std::shared_ptr<const Kleo::KeyCache> mKeyCache;
0036 };