|
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 |
|
19 #ifndef __UT_CMUSCONFERENCECALLMONITOR_H__ |
|
20 #define __UT_CMUSCONFERENCECALLMONITOR_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 #include <digia/eunit/eunitmacros.h> |
|
26 #include <etelmm.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CMusCallConferenceMonitor; |
|
30 class CMusCallMonitor; |
|
31 |
|
32 // Next row is to disable warning emerging from EUnit code. |
|
33 // Placement is due to a fact that most test case files |
|
34 // include this file. Directive can be removed when |
|
35 // EUnit is fixed. |
|
36 #pragma warn_illtokenpasting off |
|
37 |
|
38 // CLASS DEFINITION |
|
39 /** |
|
40 * Tester class for MusConferenceCallMonitor. |
|
41 * |
|
42 */ |
|
43 NONSHARABLE_CLASS( UT_CMusCallConferenceMonitor ): public CEUnitTestSuiteClass |
|
44 { |
|
45 public: // Constructors and destructors |
|
46 |
|
47 /** |
|
48 * Two phase construction |
|
49 */ |
|
50 static UT_CMusCallConferenceMonitor* NewL(); |
|
51 static UT_CMusCallConferenceMonitor* NewLC(); |
|
52 |
|
53 /** |
|
54 * Destructor |
|
55 */ |
|
56 ~UT_CMusCallConferenceMonitor(); |
|
57 |
|
58 private: // Constructors and destructors |
|
59 |
|
60 UT_CMusCallConferenceMonitor(); |
|
61 void ConstructL(); |
|
62 |
|
63 private: // Test case setup and teardown |
|
64 |
|
65 void SetupL(); |
|
66 void Teardown(); |
|
67 |
|
68 private: // Test methdods |
|
69 |
|
70 void UT_CMusCallConferenceMonitor_NewLL(); |
|
71 void UT_CMusCallConferenceMonitor_RunLL(); |
|
72 void UT_CMusCallConferenceMonitor_DoCancelL(); |
|
73 void UT_CMusCallConferenceMonitor_RunErrorL(); |
|
74 void UT_CMusCallConferenceMonitor_MonitorCallLL(); |
|
75 |
|
76 private: // Data |
|
77 |
|
78 CMusCallConferenceMonitor* iConferenceCallMonitor; |
|
79 RMobilePhone iMobilePhone; |
|
80 RMobileLine iLine; |
|
81 RPointerArray<CMusCallMonitor> iCallMonitorArray; |
|
82 |
|
83 |
|
84 EUNIT_DECLARE_TEST_TABLE; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif // __UT_CMusCallConferenceMonitor_H__ |
|
89 |
|
90 // End of file |