|
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_CPHONESTATE_H__ |
|
19 #define __UT_CPHONESTATE_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <CEUnitTestSuiteClass.h> |
|
23 #include <EUnitDecorators.h> |
|
24 |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 |
|
30 // CLASS DEFINITION |
|
31 class CSmcMockContext; |
|
32 class CPhoneStateMachineGSM; |
|
33 class CPhoneViewController; |
|
34 class CPhoneMainResourceResolverMock; |
|
35 class CPEEngineInfo; |
|
36 class MPhoneViewCommandHandle; |
|
37 class TPhoneCommandParam; |
|
38 class CPhoneCustomizationVoip; |
|
39 class cphonestate_tester; |
|
40 |
|
41 |
|
42 TBool operator==(const TPhoneCommandParam& param1, const TPhoneCommandParam& param2 ); |
|
43 |
|
44 /** |
|
45 * Generated EUnit test suite class. |
|
46 */ |
|
47 NONSHARABLE_CLASS( ut_cphonestate ) |
|
48 : public CEUnitTestSuiteClass |
|
49 { |
|
50 public: // Constructors and destructor |
|
51 |
|
52 static ut_cphonestate* NewL(); |
|
53 static ut_cphonestate* NewLC(); |
|
54 ~ut_cphonestate(); |
|
55 |
|
56 private: // Constructors |
|
57 |
|
58 ut_cphonestate(); |
|
59 void ConstructL(); |
|
60 |
|
61 private: // New methods |
|
62 |
|
63 void SetupL(); |
|
64 |
|
65 |
|
66 void Teardown(); |
|
67 |
|
68 void T_ConstructionL(); |
|
69 void T_DisplayCallTerminationNoteL(); |
|
70 //key event tests |
|
71 void T_HandleKeyEventRightArrowL(); |
|
72 void T_HandleKeyEventUpArrowNENotVisibleL(); |
|
73 void T_HandleKeyEventDownArrowNENotVisibleL(); |
|
74 |
|
75 //HandleDtmfKeyTone tests |
|
76 void T_HandleDtmfKeyToneStarkeyL(); |
|
77 void T_HandleDtmfKeyTone1KeyL(); |
|
78 |
|
79 // other |
|
80 void T_HandleAudioOutputChangedL(); |
|
81 |
|
82 void T_HandlePhoneFocusLostEventL(); |
|
83 |
|
84 void T_StartShowSecurityNoteL(); |
|
85 void T_HandleDtmfKeyToneL_ModeChange(); |
|
86 |
|
87 void T_HandleDisconnectingL(); |
|
88 |
|
89 void T_HandleBTActivatedL(); |
|
90 |
|
91 void T_OnlySideVolumeKeySupported_VolumeKeysFALSEandSideVolumeKeysTRUE_L(); |
|
92 void T_OnlySideVolumeKeySupported_VolumeKeysFALSEandSideVolumeKeysFALSE_L(); |
|
93 void T_OnlySideVolumeKeySupported_VolumeKeysTRUEandSideVolumeKeysFALSE_L(); |
|
94 |
|
95 void T_DisplayCallSetup_SetNEVisibilityFalseL(); |
|
96 void T_DisplayCallSetup_CheckIfNEUsedBeforeSettingVisibilityFalseL(); |
|
97 |
|
98 /* old voip related test cases |
|
99 void SetupWithVoipL(); |
|
100 void T_HandleCommandL_CallsPhoneCustomization_L(); |
|
101 void T_HandlePhoneEngineMessage_EPEMessageCallSecureStatusChanged_L(); |
|
102 void T_HandlePhoneEngineMessage_CallsPhoneCustomization_L(); |
|
103 void T_ShowNumberBusyNoteL_CallsCustomizeBusyNoteText_L(); |
|
104 void T_PhoneNumberFromEntryLC(); |
|
105 void T_UpdateRemoteInfoDataL(); |
|
106 void T_UpdateSingleActiveCallL_VoIPcallL();*/ |
|
107 |
|
108 private: // Data |
|
109 |
|
110 |
|
111 EUNIT_DECLARE_TEST_TABLE; |
|
112 |
|
113 MPhoneViewCommandHandle* iViewCmdHandleMock; |
|
114 |
|
115 CPhoneStateMachineGSM* iStateMachineMock; |
|
116 |
|
117 CSmcMockContext* iMockContext; |
|
118 |
|
119 CPhoneMainResourceResolverMock* iCPhoneMainResourceResolverMock; |
|
120 |
|
121 CPEEngineInfo* iEngineInfoMock; |
|
122 |
|
123 CPhoneCustomizationVoip* iCustomizationMock; |
|
124 |
|
125 cphonestate_tester* iPhoneState; |
|
126 |
|
127 |
|
128 }; |
|
129 |
|
130 #endif // __UT_CPHONESTATE_H__ |