74
|
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_CPHONEEMERGENCY_H__
|
|
19 |
#define __UT_CPHONEEMERGENCY_H__
|
|
20 |
|
|
21 |
// INCLUDES
|
|
22 |
#include <CEUnitTestSuiteClass.h>
|
|
23 |
#include <EUnitDecorators.h>
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
// FORWARD DECLARATIONS
|
|
28 |
class CSmcMockContext;
|
|
29 |
class CPhoneStateMachineGSM;
|
|
30 |
class CPhoneViewCommandHandleMock;
|
|
31 |
class CPhoneMainResourceResolverMock;
|
|
32 |
class CPEEngineInfo;
|
|
33 |
class MPhoneViewCommandHandle;
|
|
34 |
class TPhoneCommandParam;
|
|
35 |
class CPhoneEmergency;
|
|
36 |
// CLASS DEFINITION
|
|
37 |
/**
|
|
38 |
* Generated EUnit test suite class.
|
|
39 |
*/
|
|
40 |
|
|
41 |
|
|
42 |
TBool operator==(const TPhoneCommandParam& param1, const TPhoneCommandParam& param2 );
|
|
43 |
|
|
44 |
NONSHARABLE_CLASS( ut_cphoneemergency )
|
|
45 |
: public CEUnitTestSuiteClass
|
|
46 |
{
|
|
47 |
public: // Constructors and destructor
|
|
48 |
|
|
49 |
static ut_cphoneemergency* NewL();
|
|
50 |
static ut_cphoneemergency* NewLC();
|
|
51 |
~ut_cphoneemergency();
|
|
52 |
|
|
53 |
private: // Constructors
|
|
54 |
|
|
55 |
ut_cphoneemergency();
|
|
56 |
void ConstructL();
|
|
57 |
|
|
58 |
private: // New methods
|
|
59 |
|
|
60 |
void SetupL();
|
|
61 |
|
|
62 |
void Teardown();
|
|
63 |
|
|
64 |
void T_HandleConnectingL();
|
|
65 |
|
|
66 |
void T_HandleDialingL();
|
|
67 |
|
|
68 |
void T_HandleConnectedL();
|
|
69 |
|
|
70 |
void T_HandleIdleEmergencyL();
|
|
71 |
|
|
72 |
void T_HandleAudioOutputChangedL();
|
|
73 |
|
|
74 |
void T_EmergencyCallSetup_HandleEPEMessageConnectedL();
|
|
75 |
|
|
76 |
void T_HandleIdleEmergencyWithNeOpenL();
|
|
77 |
|
|
78 |
void T_HandleKeyEventSimNotUsableL();
|
|
79 |
|
|
80 |
void T_HandleOtherIdleThanEmergency();
|
|
81 |
|
|
82 |
void T_HandleIdleEmergencySecurityNoteShownSimlessOfflineOffL();
|
|
83 |
|
|
84 |
void T_HandleIdleEmergencySecurityNoteShownSimlessOfflineOnL();
|
|
85 |
|
|
86 |
void T_HandleIdleEmergencySecurityNoteNotShownSimlessOfflineOffL();
|
|
87 |
|
|
88 |
void T_HandleIdleEmergencySecurityNoteNotShownSimlessOfflineOnL();
|
|
89 |
|
|
90 |
void T_HandleRemConCommand_MuteL();
|
|
91 |
|
|
92 |
private: // Data
|
|
93 |
|
|
94 |
MPhoneViewCommandHandle* iViewCmdHandleMock;
|
|
95 |
|
|
96 |
CPhoneStateMachineGSM* iStateMachineMock;
|
|
97 |
|
|
98 |
CSmcMockContext* iMockContext;
|
|
99 |
|
|
100 |
CPhoneMainResourceResolverMock* iCPhoneMainResourceResolverMock;
|
|
101 |
|
|
102 |
CPEEngineInfo* iEngineInfoMock;
|
|
103 |
|
|
104 |
CPhoneEmergency * iStateEmergency;
|
|
105 |
|
|
106 |
EUNIT_DECLARE_TEST_TABLE;
|
|
107 |
|
|
108 |
};
|
|
109 |
|
|
110 |
#endif // __UT_CPHONEEMERGENCY_H__
|