|
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_CMUSAVACAPABILITYEXCHANGE_H__ |
|
20 #define __UT_CMUSAVACAPABILITYEXCHANGE_H__ |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <digia/eunit/ceunittestsuiteclass.h> |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 #include <e32def.h> |
|
27 #include <e32property.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CSipSseTestTls; |
|
31 class CMusAvaCapabilityExchange; |
|
32 class CSIP; |
|
33 class CSIPConnection; |
|
34 class CSIPProfile; |
|
35 class CMusAvaCapability; |
|
36 class CMusAvaOptionHandler; |
|
37 class CMusAvaObserverImp; |
|
38 class CMusAvaSettingsImp; |
|
39 class CMusAvaAvailabilityObserverImp; |
|
40 |
|
41 // CLASS DEFINITION |
|
42 /** |
|
43 * |
|
44 * EUnitWizard generated test class. |
|
45 * |
|
46 */ |
|
47 class UT_CMusAvaCapabilityExchange |
|
48 : public CEUnitTestSuiteClass |
|
49 { |
|
50 public: // Constructors and destructors |
|
51 |
|
52 /** |
|
53 * Two phase construction |
|
54 */ |
|
55 static UT_CMusAvaCapabilityExchange* NewL(); |
|
56 static UT_CMusAvaCapabilityExchange* NewLC(); |
|
57 /** |
|
58 * Destructor |
|
59 */ |
|
60 ~UT_CMusAvaCapabilityExchange(); |
|
61 |
|
62 private: // Constructors and destructors |
|
63 |
|
64 UT_CMusAvaCapabilityExchange(); |
|
65 void ConstructL(); |
|
66 |
|
67 public: // From observer interface |
|
68 |
|
69 |
|
70 |
|
71 private: // New methods |
|
72 |
|
73 void SetupL(); |
|
74 |
|
75 void Teardown(); |
|
76 |
|
77 void UT_CMusAvaCapabilityExchange_NewLL(); |
|
78 |
|
79 void UT_CMusAvaCapabilityExchange_QueryObserverL(); |
|
80 |
|
81 void UT_CMusAvaCapabilityExchange_TerminalIdL(); |
|
82 |
|
83 void UT_CMusAvaCapabilityExchange_QueryReceivedL(); |
|
84 |
|
85 void UT_CMusAvaCapabilityExchange_QueryReceived1L(); |
|
86 |
|
87 void UT_CMusAvaCapabilityExchange_QueryReceived2L(); |
|
88 |
|
89 void UT_CMusAvaCapabilityExchange_CancelQueryL(); |
|
90 |
|
91 void UT_CMusAvaCapabilityExchange_AddCapabilityLL(); |
|
92 |
|
93 void UT_CMusAvaCapabilityExchange_TerminalLL(); |
|
94 |
|
95 void UT_CMusAvaCapabilityExchange_RejectQueryLL(); |
|
96 |
|
97 void UT_CMusAvaCapabilityExchange_FindByFeatureL(); |
|
98 |
|
99 void UT_CMusAvaCapabilityExchange_AnswerToQueryReceivedL(); |
|
100 |
|
101 private: // Data |
|
102 |
|
103 EUNIT_DECLARE_TEST_TABLE; |
|
104 |
|
105 CSipSseTestTls* iStorage; |
|
106 CMusAvaCapabilityExchange* iExchange; |
|
107 CSIP* iSIP; |
|
108 CSIPConnection* iSIPConnection; |
|
109 CSIPProfile* iProfile; |
|
110 |
|
111 CMusAvaOptionHandler* iOptionHandler; |
|
112 CMusAvaAvailabilityObserverImp* iAvailabilityObserver; |
|
113 CMusAvaSettingsImp* iConcreteSettings; |
|
114 |
|
115 private: // NOT owned |
|
116 |
|
117 CMusAvaCapability* iCapability; |
|
118 |
|
119 }; |
|
120 |
|
121 #endif // __UT_CMUSAVACAPABILITYEXCHANGE_H__ |
|
122 |
|
123 // End of file |