File indexing completed on 2024-04-28 05:52:32

0001 /*
0002     This file is part of the Okteta Core library, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2006, 2011 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #include "textcharcodeccharcodeciftest.hpp"
0010 
0011 // lib
0012 #include <charcodecs/textcharcodec.hpp>
0013 // Qt
0014 #include <QTest>
0015 
0016 namespace Okteta {
0017 
0018 CharCodec* TextCharCodecCharCodecIfTest::createCodec()
0019 {
0020     return TextCharCodec::createCodec(QStringLiteral("ISO8859-1"));
0021     // TODO: test for some more, e.g. KOI8-R
0022 }
0023 
0024 void TextCharCodecCharCodecIfTest::deleteCodec(CharCodec* codec)
0025 {
0026     delete codec;
0027 }
0028 
0029 }
0030 
0031 QTEST_GUILESS_MAIN(Okteta::TextCharCodecCharCodecIfTest)
0032 
0033 #include "moc_textcharcodeccharcodeciftest.cpp"