File: composerviewbasetest.h

package info (click to toggle)
kf5-messagelib 4%3A22.12.3-2~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 88,232 kB
  • sloc: cpp: 104,707; xml: 375; sh: 25; makefile: 24
file content (40 lines) | stat: -rw-r--r-- 931 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
  SPDX-FileCopyrightText: 2014-2022 Laurent Montel <montel@kde.org>

  SPDX-License-Identifier: GPL-2.0-only
*/

#pragma once

#include <QDir>
#include <QObject>

namespace KIdentityManagement
{
class IdentityManager;
class IdentityCombo;
}

class ComposerViewBaseTest : public QObject
{
    Q_OBJECT
public:
    explicit ComposerViewBaseTest(QObject *parent = nullptr);
    ~ComposerViewBaseTest() override;
private Q_SLOTS:
    void cleanupTestCase();
    void initTestCase();
    void init();
    void cleanup();
    void shouldHaveDefaultValue();
    void testGenerateCryptoMessagesAutocrypt_data();
    void testGenerateCryptoMessagesAutocrypt();
    void testGenerateCryptoMessagesAutocryptSMime();
    void testAutoSaveMessage();
    void testAutocryptKey();

private:
    KIdentityManagement::IdentityManager *mIdentMan = nullptr;
    KIdentityManagement::IdentityCombo *mIdentCombo = nullptr;
    QDir autocryptDir;
};