equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 - 2010 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: Implementation of the Ut_vmbxCpPlugin class |
|
15 * |
|
16 */ |
|
17 |
|
18 // System includes |
|
19 #include <e32base.h> |
|
20 #include <cpitemdatahelper.h> |
|
21 |
|
22 // User includes |
|
23 #include "vmbxcpplugin.h" |
|
24 #include "vmbxcpgroup.h" |
|
25 #include "ut_vmbxcpplugin.h" |
|
26 |
|
27 /*! |
|
28 Ut_vmbxCpPlugin::createSettingFormItemData |
|
29 */ |
|
30 void Ut_vmbxCpPlugin::testCreateSettingFormItemData() |
|
31 { |
|
32 CpItemDataHelper itemDataHelper; |
|
33 VmbxCpPlugin *plugin = new VmbxCpPlugin(); |
|
34 QVERIFY(plugin); |
|
35 QList<CpSettingFormItemData *> list; |
|
36 list = plugin->createSettingFormItemData(itemDataHelper); |
|
37 QVERIFY2(0 != list[0], "createSettingFormItemData failed"); |
|
38 delete plugin; |
|
39 plugin = NULL; |
|
40 } |
|
41 |
|
42 /*! |
|
43 VmbxCpGroup construtor and destroctor |
|
44 */ |
|
45 void Ut_vmbxCpPlugin::testCreateVmbxCpGroup() |
|
46 { |
|
47 CpItemDataHelper itemDataHelper; |
|
48 VmbxCpGroup *group = new VmbxCpGroup(itemDataHelper); |
|
49 QVERIFY(group); |
|
50 delete group; |
|
51 group = NULL; |
|
52 } |
|
53 //End of file |