More tests for remotelist
[irwi] / ut / ut_remotelist / ut_remotelist.h
1 #ifndef _UT_REMOTELIST_H_
2 #define _UT_REMOTELIST_H_
3
4 #include <QObject>
5 #include <QStringList>
6 #include <QMap>
7 #include <QList>
8 #include "model.h"
9
10 class Ut_RemoteList: public QObject
11 {
12     Q_OBJECT
13
14 private slots:
15     void initTestCase();
16     void cleanupTestCase();
17     void init();    // Before each test case
18     
19     void testSetContent();
20     void testIsValid();
21     void testIsValid_InvalidFile();
22     void testIsValid_FileNotFound();
23     void testLetters();
24     void testManufacturers();
25     void testModels();
26
27 private:
28     QStringList validLetters;
29     QMap<QString, QStringList> validMfgs;
30     QMap<QString, QList<Model> > validModels;
31 };
32
33 #endif // UT_REMOTELIST_H
34