|
1 /* |
|
2 * Copyright (c) 2010 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 ----------------------------------------------------------------------------- |
|
19 This file has been generated with EUnit Pro |
|
20 http://www.digia.com/eunit |
|
21 ----------------------------------------------------------------------------- |
|
22 */ |
|
23 #ifndef __ut_cphoneerrormessageshandler_H__ |
|
24 #define __ut_cphoneerrormessageshandler_H__ |
|
25 |
|
26 // INCLUDES |
|
27 #include <CEUnitTestSuiteClass.h> |
|
28 #include <EUnitDecorators.h> |
|
29 |
|
30 #include "cpeengineinfo.h" |
|
31 #include <phonerssbase.h> |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class CSmcMockContext; |
|
35 class CPhoneErrorMessagesHandler; |
|
36 class MPhoneStateMachine; |
|
37 class MPhoneViewCommandHandle; |
|
38 class CCoeEnv; |
|
39 class CPEEngineInfo; |
|
40 class CPhoneMainErrorMessagesHandler; |
|
41 class CPhoneMainResourceResolver; |
|
42 |
|
43 // CLASS DEFINITION |
|
44 /** |
|
45 * Generated EUnit test suite class. |
|
46 */ |
|
47 NONSHARABLE_CLASS( ut_cphoneerrormessageshandler ) |
|
48 : public CEUnitTestSuiteClass |
|
49 { |
|
50 public: // Constructors and destructor |
|
51 |
|
52 static ut_cphoneerrormessageshandler* NewL(); |
|
53 static ut_cphoneerrormessageshandler* NewLC(); |
|
54 ~ut_cphoneerrormessageshandler(); |
|
55 |
|
56 private: // Constructors |
|
57 |
|
58 ut_cphoneerrormessageshandler(); |
|
59 void ConstructL(); |
|
60 |
|
61 private: // New methods |
|
62 |
|
63 void SetupL(); |
|
64 |
|
65 void Teardown(); |
|
66 |
|
67 void T_Global_ShowErrorSpecificNoteForVideoCallL(); |
|
68 |
|
69 void T_Global_ShowErrorSpecificNoteForCsCallL(); |
|
70 |
|
71 void VerifyNote( TPECallType aCallType, TCCPError aErrorCode, TPhoneRssBase aNote ); |
|
72 void VerifyNoNote( TPECallType aCallType, TCCPError aErrorCode ); |
|
73 void T_Global_ShowErrorSpecificNoteL(); |
|
74 |
|
75 private: // Data |
|
76 |
|
77 CPhoneErrorMessagesHandler* iCPhoneErrorMessagesHandler; |
|
78 CSmcMockContext* iMockContext; |
|
79 MPhoneStateMachine* iStateMachineMock; |
|
80 MPhoneViewCommandHandle* iViewCommandHandleMock; |
|
81 CCoeEnv* iCoeEnvMock; |
|
82 CPhoneMainErrorMessagesHandler* iCPhoneMainErrorMessagesHandlerMock; |
|
83 CPhoneMainResourceResolver* iCPhoneMainResourceResolverMock; |
|
84 CPEEngineInfo* iEngineInfoMock; |
|
85 |
|
86 EUNIT_DECLARE_TEST_TABLE; |
|
87 |
|
88 }; |
|
89 |
|
90 #endif // __ut_cphoneerrormessageshandler_H__ |