|
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_CPHONECONFERENCE_H__ |
|
19 #define __UT_CPHONECONFERENCE_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <CEUnitTestSuiteClass.h> |
|
23 #include <EUnitDecorators.h> |
|
24 #include "TPhoneCommandParam.h" |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CPhoneConference; |
|
29 class CPhoneStateMachineStub; |
|
30 class CPhoneViewController; |
|
31 class CSmcMockContext; |
|
32 |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * Generated EUnit test suite class. |
|
36 */ |
|
37 NONSHARABLE_CLASS( ut_cphoneconference ) |
|
38 : public CEUnitTestSuiteClass |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 static ut_cphoneconference* NewL(); |
|
43 static ut_cphoneconference* NewLC(); |
|
44 ~ut_cphoneconference(); |
|
45 |
|
46 private: // Constructors |
|
47 |
|
48 ut_cphoneconference(); |
|
49 void ConstructL(); |
|
50 |
|
51 private: // New methods |
|
52 |
|
53 void SetupL(); |
|
54 |
|
55 void Teardown(); |
|
56 |
|
57 void T_HandleConnectedL(); |
|
58 |
|
59 void T_HandleIdleL(); |
|
60 |
|
61 void T_HandleConferenceIdleL(); |
|
62 |
|
63 |
|
64 private: // Data |
|
65 |
|
66 CPhoneViewController* iViewCommandHandle; |
|
67 |
|
68 CPhoneStateMachineStub* iStateMachine; |
|
69 |
|
70 CPhoneConference * iStateConference; |
|
71 |
|
72 CSmcMockContext* iMockContext; |
|
73 |
|
74 EUNIT_DECLARE_TEST_TABLE; |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // __UT_CPHONECONFERENCE_H__ |