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 |
|
19 #ifndef UT_MUSWPITEM_H__ |
|
20 #define UT_MUSWPITEM_H__ |
|
21 |
|
22 // Next row is to disable warning emerging from EUnit code. |
|
23 // Directive can be removed when EUnit is fixed. |
|
24 #pragma warn_illtokenpasting off |
|
25 |
|
26 // EXTERNAL INCLUDES |
|
27 #include <digia/eunit/ceunittestsuiteclass.h> |
|
28 #include <digia/eunit/eunitmacros.h> |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CMusWpItem; |
|
32 |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * Tester class for CMusWpItem. |
|
36 * |
|
37 */ |
|
38 NONSHARABLE_CLASS( UT_CMusWpItem ): public CEUnitTestSuiteClass |
|
39 { |
|
40 public: // Constructors and destructors |
|
41 |
|
42 /** |
|
43 * Two phase construction |
|
44 */ |
|
45 static UT_CMusWpItem* NewL(); |
|
46 static UT_CMusWpItem* NewLC(); |
|
47 |
|
48 /** |
|
49 * Destructor |
|
50 */ |
|
51 ~UT_CMusWpItem(); |
|
52 |
|
53 private: // Constructors and destructors |
|
54 |
|
55 UT_CMusWpItem(); |
|
56 void ConstructL(); |
|
57 |
|
58 private: // Test case setup and teardown |
|
59 |
|
60 void SetupL(); |
|
61 |
|
62 void Teardown(); |
|
63 |
|
64 private: // Test methods |
|
65 |
|
66 void UT_CMusWpItem_NewLL(); |
|
67 void UT_CMusWpItem_ProviderIdL(); |
|
68 void UT_CMusWpItem_SetProviderIdLL(); |
|
69 void UT_CMusWpItem_NameL(); |
|
70 void UT_CMusWpItem_SetNameLL(); |
|
71 void UT_CMusWpItem_ToAppRefL(); |
|
72 void UT_CMusWpItem_SetToAppRefLL(); |
|
73 void UT_CMusWpItem_SetEdgeDtmSupportL(); |
|
74 void UT_CMusWpItem_SetForceInternetSignalingL(); |
|
75 void UT_CMusWpItem_SetCapabilityQueryL(); |
|
76 void UT_CMusWpItem_SetActivationConditionL(); |
|
77 void UT_CMusWpItem_SaveLL(); |
|
78 |
|
79 private: // Data |
|
80 |
|
81 CMusWpItem* iWpItem; |
|
82 |
|
83 EUNIT_DECLARE_TEST_TABLE; |
|
84 |
|
85 }; |
|
86 |
|
87 #endif // UT_MUSWPITEM_H__ |
|
88 |
|
89 // End of file |
|