phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertselectionitem/ut_cpdivertselectionitem.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 * |
|
16 */ |
|
17 |
|
18 #ifndef UT_CPDIVERTSELECTIONITEM_H |
|
19 #define UT_CPDIVERTSELECTIONITEM_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 #include <mockservice.h> |
|
23 |
|
24 class CpDivertSelectionItem; |
|
25 class HbDataForm; |
|
26 |
|
27 class UT_CpDivertSelectionItem : public QObject, MockService |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 UT_CpDivertSelectionItem(); |
|
33 ~UT_CpDivertSelectionItem(); |
|
34 |
|
35 private slots: |
|
36 |
|
37 void init(); |
|
38 |
|
39 void cleanup(); |
|
40 |
|
41 void t_memleak(); |
|
42 |
|
43 void t_createItem(); |
|
44 void t_canSetModelIndex(); |
|
45 void t_createCustomWidget(); |
|
46 private: |
|
47 // Not own |
|
48 CpDivertSelectionItem *m_item; |
|
49 |
|
50 // Own |
|
51 HbDataForm *m_form; |
|
52 |
|
53 }; |
|
54 |
|
55 #endif // UT_CPDIVERTSELECTIONITEM_H |
|