controlpanelui/src/cpcategorymodel/tsrc/ut_cppluginconfigreader/src/ut_cppluginconfigreader.h
equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0"" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * test the functions in cppluginconfigreader class |
|
16 */ |
|
17 |
|
18 #ifndef UT_CPPLUGINCONFIGREADER_H |
|
19 #define UT_CPPLUGINCONFIGREADER_H |
|
20 |
|
21 |
|
22 #include "cppluginconfig.h" |
|
23 |
|
24 #include <QObject> |
|
25 #include <QList> |
|
26 |
|
27 class TestCppluginConfigReader :public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 private slots: |
|
31 |
|
32 void initTestCase(); |
|
33 void testConstructor(); |
|
34 void testReadValidConfigFile(); // test with a valid config file. |
|
35 void testReadEmptyConfigFilePath(); // test testReadEmptyConfigFilePath() with empty path. |
|
36 void testReadEmptyConfigFile(); // test with empty config file. |
|
37 void testReaderWithWrongChildPluginTag(); // test with wrong child plugin tags. |
|
38 void testReaderWithEmptyChildElement(); // test with empty child plugin element. |
|
39 void testReaderWithWrongPluginTag(); // test with wrong plugin tag. |
|
40 void testReaderWithoutAttrs(); // test without any plugin attrs. |
|
41 void testReaderWithWrongDescTag(); // test with wrong desc tag. |
|
42 void cleanupTestCase(); |
|
43 private: |
|
44 QList<CpPluginConfig> mCorrectConfig; |
|
45 }; |
|
46 #endif /* UT_CPPLUGINCONFIGREADER_H */ |
|