1012b93e7ed2303fb4c05c017edeb7c6ac8afac6
[mdictionary] / tests / XdxfPluginTests / test.h
1 /*******************************************************************************
2
3     This file is part of mDictionary.
4
5     mDictionary is free software: you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation, either version 3 of the License, or
8     (at your option) any later version.
9
10     mDictionary is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with mDictionary.  If not, see <http://www.gnu.org/licenses/>.
17
18     Copyright 2010 Comarch S.A.
19
20 *******************************************************************************/
21
22 #ifndef TEST_H
23 #define TEST_H
24
25 #include <QtTest/QtTest>
26 #include <QList>
27 #include <QTime>
28 #include <QTimer>
29 #include <QtConcurrentRun>
30 #include <QFuture>
31 #include "../src/xdxfplugin.h"
32 #include <QDate>
33 #include <QTextStream>
34 #include <QString>
35
36  class XdxfTest: public QObject
37  {
38      Q_OBJECT
39
40
41  private slots:
42      void langFrom();
43      void getNew();
44      void stop();
45      void searchFile();
46      void searchWordListFile();
47      void makeCache();
48      void searchCache();
49      void searchWordListCache();
50      void removeAccents();
51      void timeCache();
52      void timeFile();
53      void timeCacheNormalize();
54      void timeFileNormalize();
55  };
56
57  class XdxfPluginSub : public XdxfPlugin
58  {
59     public:
60      XdxfPluginSub(QObject *parent = 0) : XdxfPlugin(parent){}
61      QString getRemoveAccents(QString s) {
62          return removeAccents(s);
63      }
64
65  };
66
67
68 #endif // TEST_H