1
/***************************************************************************
2
* Copyright 1999-2001 Bernd Gehrmann and the KDevelop Team *
4
* Copyright 2010 Julien Desgats <julien.desgats@gmail.com> *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
11
***************************************************************************/
17
#include <QtCore/QObject>
28
class FindReplaceTest : public QObject
34
Match(int l,int s,int e) : line(l), start(s), end(e) {}
39
typedef QList<Match> MatchList;
41
typedef QPair<QString, QString> File; /// Represent a file with name => content
42
typedef QList<File> FileList;
45
KDevelop::TestCore* m_testCore;
46
GrepViewPlugin* m_plugin;
55
void testReplace_data();
57
void cleanupTestCase();
60
Q_DECLARE_METATYPE(FindReplaceTest::MatchList)
61
Q_DECLARE_METATYPE(FindReplaceTest::FileList);
63
#endif // REPLACETEST_H