|
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_CMUSAVAREGISTERAVAILABILITY_H__ |
|
20 #define __UT_CMUSAVAREGISTERAVAILABILITY_H__ |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <digia/eunit/ceunittestsuiteclass.h> |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 #include <e32def.h> |
|
27 #include <PbkFields.hrh> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CMusAvaAvailabilityObserverImp; |
|
31 class CSipSseTestTls; |
|
32 class CMusAvaSettingsImp; |
|
33 class CMusAvaRegisterAvailability; |
|
34 class CMusAvaSharedObject; |
|
35 |
|
36 // CLASS DEFINITION |
|
37 /** |
|
38 * |
|
39 * EUnitWizard generated test class. |
|
40 * |
|
41 */ |
|
42 class UT_CMusAvaRegisterAvailability |
|
43 : public CEUnitTestSuiteClass |
|
44 { |
|
45 public: // Constructors and destructors |
|
46 |
|
47 /** |
|
48 * Two phase construction |
|
49 */ |
|
50 static UT_CMusAvaRegisterAvailability* NewL(); |
|
51 static UT_CMusAvaRegisterAvailability* NewLC(); |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 ~UT_CMusAvaRegisterAvailability(); |
|
56 |
|
57 private: // Constructors and destructors |
|
58 |
|
59 UT_CMusAvaRegisterAvailability(); |
|
60 void ConstructL(); |
|
61 |
|
62 public: // From observer interface |
|
63 |
|
64 |
|
65 |
|
66 private: // New methods |
|
67 |
|
68 void SetupL(); |
|
69 |
|
70 void Teardown(); |
|
71 |
|
72 void UT_CMusAvaRegisterAvailability_NewLL(); |
|
73 |
|
74 void UT_CMusAvaRegisterAvailability_DoExecuteLL(); |
|
75 |
|
76 void UT_CMusAvaRegisterAvailability_NameL(); |
|
77 |
|
78 void UT_CMusAvaRegisterAvailability_StatusL(); |
|
79 |
|
80 void UT_CMusAvaRegisterAvailability_Stop(); |
|
81 |
|
82 void UT_CMusAvaRegisterAvailability_ProfileRegistryEventOccurredL(); |
|
83 |
|
84 void UT_CMusAvaRegisterAvailability_CreateSipAddressProposalLL(); |
|
85 |
|
86 void UT_CMusAvaRegisterAvailability_ConnectionStateChangedL(); |
|
87 |
|
88 void UT_CMusAvaRegisterAvailability_ProfileRegistryErrorOccurredL(); |
|
89 |
|
90 void UT_CMusAvaRegisterAvailability_RegisterLL(); |
|
91 |
|
92 void UT_CMusAvaRegisterAvailability_InitializeRegisterL(); |
|
93 |
|
94 void UT_CMusAvaRegisterAvailability_EnableRegisterLL(); |
|
95 |
|
96 void UT_CMusAvaRegisterAvailability_UpdateSIPProfileL(); |
|
97 |
|
98 void UT_CMusAvaRegisterAvailability_RegistrationStatusL(); |
|
99 |
|
100 private: // Data |
|
101 |
|
102 EUNIT_DECLARE_TEST_TABLE; |
|
103 |
|
104 CMusAvaAvailabilityObserverImp* iAvailabilityObserver; |
|
105 |
|
106 CMusAvaSettingsImp* iConcreteSettings; |
|
107 |
|
108 CMusAvaRegisterAvailability* iRegisterAvailability; |
|
109 |
|
110 CSipSseTestTls* iStorage; |
|
111 |
|
112 CMusAvaSharedObject* iSharedObj; |
|
113 |
|
114 TInt iProfileId; |
|
115 }; |
|
116 |
|
117 #endif // __UT_CMUSAVAREGISTERAVAILABILITY_H__ |
|
118 |
|
119 // End of file |