|
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_CPHONECONFERENCEANDWAITING_H__ |
|
19 #define __UT_CPHONECONFERENCEANDWAITING_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <CEUnitTestSuiteClass.h> |
|
23 #include <EUnitDecorators.h> |
|
24 |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 class CPhoneConferenceAndWaiting; |
|
30 |
|
31 class CSmcMockContext; |
|
32 class CPhoneStateMachineGSM; |
|
33 class MPhoneViewCommandHandle; |
|
34 class TPhoneCommandParam; |
|
35 class CPhoneMainResourceResolverMock; |
|
36 |
|
37 // CLASS DEFINITION |
|
38 /** |
|
39 * Generated EUnit test suite class. |
|
40 */ |
|
41 TBool operator==(const TPhoneCommandParam& param1, const TPhoneCommandParam& param2 ); |
|
42 |
|
43 NONSHARABLE_CLASS( ut_cphoneconferenceandwaiting ) |
|
44 : public CEUnitTestSuiteClass |
|
45 { |
|
46 public: // Constructors and destructor |
|
47 |
|
48 static ut_cphoneconferenceandwaiting* NewL(); |
|
49 static ut_cphoneconferenceandwaiting* NewLC(); |
|
50 ~ut_cphoneconferenceandwaiting(); |
|
51 |
|
52 private: // Constructors |
|
53 |
|
54 ut_cphoneconferenceandwaiting(); |
|
55 void ConstructL(); |
|
56 |
|
57 private: // New methods |
|
58 |
|
59 void SetupL(); |
|
60 void Setup_NoRingingCallIdL(); |
|
61 |
|
62 void Teardown(); |
|
63 |
|
64 void T_ConstructionL(); |
|
65 |
|
66 void T_HandleConnected_1L(); |
|
67 void T_HandleConnected_2L(); |
|
68 |
|
69 void T_HandleIdleL_1(); |
|
70 void T_HandleIdleL_2(); |
|
71 void T_HandleIdleL_3(); |
|
72 void T_HandleIdleL_4(); |
|
73 |
|
74 void T_HandleWentOneToOne_1L(); |
|
75 |
|
76 |
|
77 |
|
78 private: // Data |
|
79 |
|
80 MPhoneViewCommandHandle* iViewCmdHandleMock; |
|
81 |
|
82 CPhoneStateMachineGSM* iStateMachineMock; |
|
83 |
|
84 CPhoneConferenceAndWaiting* iStateConferenceAndWaiting; |
|
85 |
|
86 CSmcMockContext* iMockContext; |
|
87 |
|
88 CPhoneMainResourceResolverMock* iCPhoneMainResourceResolverMock; |
|
89 |
|
90 |
|
91 EUNIT_DECLARE_TEST_TABLE; |
|
92 |
|
93 }; |
|
94 |
|
95 #endif // __UT_CPHONECONFERENCEANDWAITING_H__ |