|
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 __MT_CALLINFORMATION_H__ |
|
19 #define __MT_CALLINFORMATION_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <CEUnitTestSuiteClass.h> |
|
23 #include <EUnitDecorators.h> |
|
24 |
|
25 #include <etel.h> |
|
26 #include <CCallInformation.h> |
|
27 #include <MCallInformationObserver.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CDialer; |
|
31 #ifdef __WINSCW__ |
|
32 class CPhoneEngineCreator; |
|
33 class MPEPhoneModel; |
|
34 class CPEMessageWaiter; |
|
35 #endif |
|
36 |
|
37 // CLASS DEFINITION |
|
38 /** |
|
39 * Generated EUnit test suite class. |
|
40 */ |
|
41 NONSHARABLE_CLASS( MT_CallInformation ) |
|
42 : public CEUnitTestSuiteClass, public MCallInformationObserver |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 static MT_CallInformation* NewL(); |
|
47 static MT_CallInformation* NewLC(); |
|
48 ~MT_CallInformation(); |
|
49 |
|
50 private: // Constructors |
|
51 |
|
52 MT_CallInformation(); |
|
53 void ConstructL(); |
|
54 void CallInformationChanged(); |
|
55 |
|
56 |
|
57 private: // New methods |
|
58 |
|
59 void SetupL(); |
|
60 |
|
61 void Teardown(); |
|
62 |
|
63 void TestNoCallsL(); |
|
64 void TestActiveCallL(); |
|
65 void TestSingleCallL(); |
|
66 void TestEmergencyCallL(); |
|
67 void TestMultiCallL(); |
|
68 void TwoCallsExistL(); |
|
69 |
|
70 |
|
71 |
|
72 private: // Data |
|
73 |
|
74 CCallInformation* iCallInfos; |
|
75 CDialer* iDialer; |
|
76 CActiveSchedulerWait* iWait; |
|
77 RTelServer iTelServer; |
|
78 |
|
79 #ifdef __WINSCW__ |
|
80 CPhoneEngineCreator* iPECreator; |
|
81 MPEPhoneModel* iPhoneModel; |
|
82 CPEMessageWaiter* iMsgWaiter; |
|
83 #endif |
|
84 |
|
85 EUNIT_DECLARE_TEST_TABLE; |
|
86 |
|
87 }; |
|
88 |
|
89 #endif // __MT_CALLINFORMATION_H__ |