Warning, file /frameworks/ktexteditor/autotests/src/plaintextsearch_test.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2010 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KATE_PLAINTEXTSEARCH_TEST_H
0009 #define KATE_PLAINTEXTSEARCH_TEST_H
0010 
0011 #include <QObject>
0012 
0013 namespace KTextEditor
0014 {
0015 class DocumentPrivate;
0016 }
0017 class KatePlainTextSearch;
0018 
0019 class PlainTextSearchTest : public QObject
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     PlainTextSearchTest();
0025     ~PlainTextSearchTest() override;
0026 
0027 private Q_SLOTS:
0028     void initTestCase();
0029     void cleanupTestCase();
0030 
0031     void init();
0032     void cleanup();
0033 
0034     void testSearchBackward_data();
0035     void testSearchBackward();
0036 
0037     void testSingleLineDocument_data();
0038     void testSingleLineDocument();
0039 
0040     void testMultilineSearch_data();
0041     void testMultilineSearch();
0042 
0043 private:
0044     KTextEditor::DocumentPrivate *m_doc = nullptr;
0045     KatePlainTextSearch *m_search = nullptr;
0046 
0047 public:
0048     static QtMessageHandler s_msgHandler;
0049 };
0050 
0051 #endif