|
1 /* |
|
2 * Copyright (c) 2004 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_CMUSAVACONTACTAVAILABILITY_H__ |
|
20 #define __UT_CMUSAVACONTACTAVAILABILITY_H__ |
|
21 |
|
22 #include <mussettingskeys.h> |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 |
|
27 // INTERNAL INCLUDES |
|
28 #include <e32def.h> |
|
29 #include <PbkFields.hrh> |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CMusAvaAvailabilityObserverImp; |
|
33 class CMusAvaContactAvailability; |
|
34 class CSipSseTestTls; |
|
35 class CMusAvaSettingsImp; |
|
36 class CContactTextField; |
|
37 class CPbkContactItem; |
|
38 class CPbkContactEngine; |
|
39 // CLASS DEFINITION |
|
40 /** |
|
41 * |
|
42 * EUnitWizard generated test class. |
|
43 * |
|
44 */ |
|
45 class UT_CMusAvaContactAvailability |
|
46 : public CEUnitTestSuiteClass |
|
47 { |
|
48 public: // Constructors and destructors |
|
49 |
|
50 /** |
|
51 * Two phase construction |
|
52 */ |
|
53 static UT_CMusAvaContactAvailability* NewL(); |
|
54 static UT_CMusAvaContactAvailability* NewLC(); |
|
55 /** |
|
56 * Destructor |
|
57 */ |
|
58 ~UT_CMusAvaContactAvailability(); |
|
59 |
|
60 private: // Constructors and destructors |
|
61 |
|
62 UT_CMusAvaContactAvailability(); |
|
63 void ConstructL(); |
|
64 |
|
65 public: // From observer interface |
|
66 |
|
67 |
|
68 |
|
69 private: // New methods |
|
70 |
|
71 void SetupL(); |
|
72 |
|
73 void SetupOpSpecificL(); |
|
74 |
|
75 void Teardown(); |
|
76 |
|
77 void UT_CMusAvaController_NewLL(); |
|
78 |
|
79 void UT_CMusAvaController_DoExecuteLL(); |
|
80 |
|
81 void UT_CMusAvaController_DoExecuteL1_L(); |
|
82 |
|
83 void UT_CMusAvaController_DoExecuteL2_L(); |
|
84 |
|
85 void UT_CMusAvaController_NameL(); |
|
86 |
|
87 void UT_CMusAvaController_StatusL(); |
|
88 |
|
89 void UT_CMusAvaController_StopL(); |
|
90 |
|
91 void UT_CMusAvaController_ActiveCallLL(); |
|
92 |
|
93 void UT_CMusAvaController_ActiveCallLOpSpecificL(); |
|
94 |
|
95 void UT_CMusAvaController_ContactLL(); |
|
96 |
|
97 void UT_CMusAvaController_ContactArrayLL(); |
|
98 |
|
99 void UT_CMusAvaController_ContactItemL(); |
|
100 |
|
101 void UT_CMusAvaController_PhoneResulutionLL(); |
|
102 |
|
103 void UT_CMusAvaController_ContactIdL(); |
|
104 |
|
105 void UT_CMusAvaController_ContactIdSearchL(); |
|
106 |
|
107 void UT_CMusAvaController_ResolveAddressesLL(); |
|
108 |
|
109 void UT_CMusAvaController_ResolveAddressesLOpSpecificL(); |
|
110 |
|
111 void UT_CMusAvaController_ResolvePhoneContactLL(); |
|
112 |
|
113 void UT_CMusAvaController_ResolvePhoneContactLOpSpecificL(); |
|
114 |
|
115 void UT_CMusAvaController_IsExistAlreadyL(); |
|
116 |
|
117 void UT_CMusAvaController_UpdateContactNameLL(); |
|
118 |
|
119 void UT_CMusAvaController_CallConnectedLL(); |
|
120 CContactTextField* EditableContactFieldL( CPbkContactEngine& aContactEngine, |
|
121 CPbkContactItem& aContact, |
|
122 TPbkFieldId aFieldId ); |
|
123 |
|
124 void AddFields(CPbkContactEngine& aContactEngine, |
|
125 CPbkContactItem& contact, |
|
126 const TDesC& aText, |
|
127 TPbkFieldId aFieldId); |
|
128 |
|
129 void AddToMyContact( CPbkContactEngine& aContactEngine, |
|
130 const TDesC& aText, |
|
131 TPbkFieldId aFieldId, |
|
132 const TDesC& aText2, |
|
133 TPbkFieldId aFieldId2 ); |
|
134 |
|
135 |
|
136 private: // Data |
|
137 |
|
138 EUNIT_DECLARE_TEST_TABLE; |
|
139 |
|
140 CMusAvaAvailabilityObserverImp* iAvailabilityObserver; |
|
141 |
|
142 CMusAvaSettingsImp* iConcreteSettings; |
|
143 |
|
144 CMusAvaContactAvailability* iContactAvailability; |
|
145 |
|
146 CSipSseTestTls* iStorage; |
|
147 |
|
148 MusSettingsKeys::TOperatorVariant iSaveOperatorVariant; |
|
149 |
|
150 }; |
|
151 |
|
152 #endif // __UT_CMUSAVACONTACTAVAILABILITY_H__ |
|
153 |
|
154 // End of file |