File indexing completed on 2024-03-24 05:21:14
0001 /* 0002 SPDX-FileCopyrightText: 2006 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #pragma once 0007 0008 #include <QObject> 0009 0010 class ContentTest : public QObject 0011 { 0012 Q_OBJECT 0013 private Q_SLOTS: 0014 void testGetHeaderInstance(); 0015 void testHeaderAddRemove(); 0016 void testHeaderAppend(); 0017 void testExplicitMultipartGeneration(); 0018 void testSetContent(); 0019 void testEncodedContent(); 0020 void testDecodedContent(); 0021 void testMultipartMixed(); 0022 void testMultipleHeaderExtraction(); 0023 /** 0024 Tests that a message with uuencoded content 0025 is parsed correctly and if a corresponding 0026 MIME structure is created. 0027 */ 0028 void testParsingUuencoded(); 0029 // TODO: grab samples from http://www.yenc.org/develop.htm and make a Yenc test 0030 void testParent(); 0031 void testFreezing(); 0032 void testContentTypeMimetype_data(); 0033 void testContentTypeMimetype(); 0034 }; 0035