File indexing completed on 2023-05-30 10:52:51
0001 /* 0002 Copyright (c) 2005 David Faure <faure@kde.org> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License version 2 as published by the Free Software Foundation. 0007 0008 This library is distributed in the hope that it will be useful, 0009 but WITHOUT ANY WARRANTY; without even the implied warranty of 0010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0011 Library General Public License for more details. 0012 0013 You should have received a copy of the GNU Library General Public License 0014 along with this library; see the file COPYING.LIB. If not, write to 0015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0016 Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #ifndef kurltest_h 0020 #define kurltest_h 0021 0022 #include <QObject> 0023 0024 class KUrlTest : public QObject 0025 { 0026 Q_OBJECT 0027 private Q_SLOTS: 0028 void testQUrl(); 0029 void testEmptyURL(); 0030 void testIsValid(); 0031 void testSetQuery(); 0032 void testEmptyNullReference(); 0033 void testSetRef(); 0034 void testSetHTMLRef(); 0035 void testDirectory(); 0036 void testUtf8(); 0037 void testIsLocalFile(); 0038 void testSimpleMethods(); 0039 void testHostName(); 0040 void testParsingTolerance(); 0041 void testNewLine(); 0042 void testQueryParsing(); 0043 void testEmptyQueryOrRef(); 0044 void testURLsWithoutPath(); 0045 void testPathAndQuery(); 0046 void testUpUrl(); 0047 void testSetFileName(); 0048 void testPrettyURL(); 0049 void testIsRelative(); 0050 void testRelativePath(); 0051 void testRelativeURL(); 0052 void testAdjustPath(); 0053 void testIPV6(); 0054 void testBaseURL(); 0055 void testSetUser(); 0056 void testSetEncodedFragment_data(); 0057 void testSetEncodedFragment(); 0058 void testSubURL(); 0059 void testComparisons(); 0060 void testStreaming_data(); 0061 void testStreaming(); 0062 void testBrokenStuff(); 0063 void testMoreBrokenStuff(); 0064 void testMailto(); 0065 void testSmb(); 0066 void testOtherProtocols(); 0067 void testOtherEncodings(); 0068 void testPathOrURL(); 0069 void testAssignment(); 0070 void testQueryItem(); 0071 void testEncodeString(); 0072 void testIdn(); 0073 void testUriMode(); 0074 void testToLocalFile(); 0075 void testUrl_data(); 0076 void testUrl(); 0077 void testToStringList(); 0078 void testHashing(); 0079 }; 0080 0081 #endif 0082