contenttest.h 1.69 KB
Newer Older
1
/*
Volker Krause's avatar
Volker Krause committed
2
    Copyright (c) 2006 Volker Krause <vkrause@kde.org>
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

    This library is free software; you can redistribute it and/or modify it
    under the terms of the GNU Library General Public License as published by
    the Free Software Foundation; either version 2 of the License, or (at your
    option) any later version.

    This library is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
    License for more details.

    You should have received a copy of the GNU Library General Public License
    along with this library; see the file COPYING.LIB.  If not, write to the
    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
*/
19 20
#ifndef CONTENT_TEST_H
#define CONTENT_TEST_H
21 22 23

#include <QtCore/QObject>

24
class ContentTest : public QObject
25
{
Laurent Montel's avatar
Laurent Montel committed
26 27
    Q_OBJECT
private Q_SLOTS:
28
    void testGetHeaderInstance();
29
    void testHeaderAddRemove();
30
    void testHeaderAppend();
31
    void testImplicitMultipartGeneration();
32
    void testExplicitMultipartGeneration();
33 34
    void testSetContent();
    void testEncodedContent();
35
    void testDecodedContent();
36
    void testMultipartMixed();
37
    void testMultipleHeaderExtraction();
38 39 40 41 42 43
    /**
      Tests that a message with uuencoded content
      is parsed correctly and if a corresponding
      MIME structure is created.
    */
    void testParsingUuencoded();
44
    // TODO: grab samples from http://www.yenc.org/develop.htm and make a Yenc test
45
    void testParent();
46
    void testFreezing();
Laurent Montel's avatar
Laurent Montel committed
47
    void testContentTypeMimetype_data();
48
    void testContentTypeMimetype();
49 50 51
};

#endif