|
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_CPHONESTATEIDLE_H__ |
|
19 #define __UT_CPHONESTATEIDLE_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <CEUnitTestSuiteClass.h> |
|
23 #include <EUnitDecorators.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 |
|
27 class CPhoneStateIdle_Inherited; |
|
28 class CPhoneViewCommandHandleMock; |
|
29 class CPhoneStateMachine; |
|
30 class CPhoneMainResourceResolverMock; |
|
31 class CPEEngineInfo; |
|
32 class CPhoneStateMachineGSM; |
|
33 class CSmcMockContext; |
|
34 class CCoeEnv; |
|
35 class CPhoneCustomizationVoip; |
|
36 class TPhoneCommandParam; |
|
37 |
|
38 TBool operator==(const TPhoneCommandParam& param1, const TPhoneCommandParam& param2 ); |
|
39 |
|
40 // CLASS DEFINITION |
|
41 /** |
|
42 * Generated EUnit test suite class. |
|
43 */ |
|
44 NONSHARABLE_CLASS( ut_cphonestateidle ) |
|
45 : public CEUnitTestSuiteClass |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 static ut_cphonestateidle* NewL(); |
|
50 static ut_cphonestateidle* NewLC(); |
|
51 ~ut_cphonestateidle(); |
|
52 |
|
53 private: // Constructors |
|
54 |
|
55 ut_cphonestateidle(); |
|
56 void ConstructL(); |
|
57 |
|
58 private: // New methods |
|
59 |
|
60 void SetupL(); |
|
61 void Teardown(); |
|
62 |
|
63 void T_IdlePhoneFocusLost_DiallerNotUsedL(); |
|
64 void T_IdlePhoneFocusLost_DiallerUsedL(); |
|
65 void T_IdleEndKeyPressGeneratesCancelNotificationsL(); |
|
66 void T_HandleIdleForegroundEventL(); |
|
67 void T_HandlePhoneForegroundEventL(); |
|
68 void T_HandleKeyMessageL(); |
|
69 void T_HandleKeyMessageL_AppKeyL(); |
|
70 void T_HandleKeyMessageL_AppKeyL_SecurityModeOff(); |
|
71 void T_HandleKeyMessageL_AppKeyL_NEOpen(); |
|
72 void T_HandleCommand_NumberAcqCmdCallL(); |
|
73 void T_HandleCommand_NumberAcqCmdSendCommandL(); |
|
74 void T_DialL(); |
|
75 void T_DialVideoCallL(); |
|
76 void T_HandleEndKeyPressSecurityNoteShownSimlessOfflineUndefL(); |
|
77 void T_HandleEndKeyPressSecurityNoteShownSimlessOfflineDefinedL(); |
|
78 void T_HandleNumberEntryClearedL(); |
|
79 |
|
80 private: // Data |
|
81 |
|
82 CPhoneViewCommandHandleMock* iViewCmdHandleMock; |
|
83 CPhoneStateMachineGSM* iStateMachineGsmMock; |
|
84 CPhoneStateIdle_Inherited* iStateIdle; |
|
85 CSmcMockContext* iMockContext; |
|
86 CPhoneMainResourceResolverMock* iCPhoneMainResourceResolverMock; |
|
87 CPEEngineInfo* iEngineInfoMock; |
|
88 CCoeEnv* iCoeEnvMock; |
|
89 CPhoneCustomizationVoip* iCustomizationMock; |
|
90 |
|
91 EUNIT_DECLARE_TEST_TABLE; |
|
92 |
|
93 }; |
|
94 |
|
95 #endif // __UT_CPHONESTATEIDLE_H__ |