File indexing completed on 2024-09-22 04:49:57
0001 /* 0002 SPDX-FileCopyrightText: 2015 Sandro Knauß <bugs@sandroknauss.de> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 0011 namespace MailCommon 0012 { 0013 class FilterAction; 0014 } 0015 0016 class FilterActionPipeThroughTest : public QObject 0017 { 0018 Q_OBJECT 0019 public: 0020 FilterActionPipeThroughTest(); 0021 private Q_SLOTS: 0022 void testWithNoCommand(); 0023 void testWithInvalidCommandPath(); 0024 void testCommandWithoutOutput(); 0025 void testWithMailOutput(); 0026 void testCopyMail(); 0027 void testXUidChange(); 0028 void testXUidUnchange(); 0029 void testXUidRemoved(); 0030 void shouldRequiresPart(); 0031 0032 private: 0033 void setOutput(MailCommon::FilterAction *filter, const QByteArray &output); 0034 };