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

0001 /*
0002   SPDX-FileCopyrightText: 2019 Glen Ditchfield <GJDitchfield@acm.org>
0003 
0004   SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <KMime/Message>
0010 
0011 #include <QObject>
0012 
0013 #include <MessageComposer/MessageFactoryNG>
0014 
0015 namespace KIdentityManagementCore
0016 {
0017 class IdentityManager;
0018 }
0019 
0020 class ReplyStrategyTest : public QObject
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     explicit ReplyStrategyTest(QObject *parent = nullptr);
0026     ~ReplyStrategyTest() override;
0027 
0028 private Q_SLOTS:
0029     void initTestCase();
0030     void cleanupTestCase();
0031 
0032     void testReply_data();
0033     void testReply();
0034 
0035 private:
0036     KMime::Message::Ptr makeReply(const KMime::Message::Ptr &original, const MessageComposer::ReplyStrategy strategy);
0037 
0038     KIdentityManagementCore::IdentityManager *mIdentityManager = nullptr;
0039 };