|
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_CMusPropertyMonitor_H__ |
|
20 #define __UT_CMusPropertyMonitor_H__ |
|
21 |
|
22 |
|
23 // USER INCLUDES |
|
24 |
|
25 #include "mmuscallstateobserver.h" |
|
26 |
|
27 // EXTERNAL INCLUDES |
|
28 #include <digia/eunit/ceunittestsuiteclass.h> |
|
29 #include <digia/eunit/eunitmacros.h> |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CMusPropertyMonitor; |
|
33 |
|
34 // Next row is to disable warning emerging from EUnit code. |
|
35 // Placement is due to a fact that most test case files |
|
36 // include this file. Directive can be removed when |
|
37 // EUnit is fixed. |
|
38 #pragma warn_illtokenpasting off |
|
39 |
|
40 // CLASS DEFINITION |
|
41 /** |
|
42 * Tester class for CMusTsyPropertyMonitor. |
|
43 * |
|
44 */ |
|
45 NONSHARABLE_CLASS( UT_CMusPropertyMonitor ): public CEUnitTestSuiteClass, |
|
46 MMusCallStateObserver |
|
47 { |
|
48 public: // Constructors and destructors |
|
49 |
|
50 /** |
|
51 * Two phase construction |
|
52 */ |
|
53 static UT_CMusPropertyMonitor* NewL(); |
|
54 static UT_CMusPropertyMonitor* NewLC(); |
|
55 |
|
56 /** |
|
57 * Destructor |
|
58 */ |
|
59 ~UT_CMusPropertyMonitor(); |
|
60 |
|
61 |
|
62 public: // MMusCallStateObserver |
|
63 |
|
64 virtual void MusCallStateChanged(); |
|
65 |
|
66 |
|
67 private: // Constructors and destructors |
|
68 |
|
69 UT_CMusPropertyMonitor(); |
|
70 void ConstructL(); |
|
71 |
|
72 private: // Test case setup and teardown |
|
73 |
|
74 void SetupL(); |
|
75 |
|
76 void Teardown(); |
|
77 |
|
78 private: // Test methdods |
|
79 |
|
80 void UT_CMusPropertyMonitor_RunLL(); |
|
81 void UT_CMusPropertyMonitor_DoCancelL(); |
|
82 void UT_CMusPropertyMonitor_RunErrorL(); |
|
83 void UT_CMusPropertyMonitor_IsCallConnected(); |
|
84 |
|
85 private: // Data |
|
86 CMusPropertyMonitor* iMusPropertyMonitor; |
|
87 TBool iMusCallStateObserverInovked; |
|
88 |
|
89 |
|
90 EUNIT_DECLARE_TEST_TABLE; |
|
91 |
|
92 }; |
|
93 |
|
94 #endif // __UT_CMusPropertyMonitor_H__ |
|
95 |
|
96 // End of file |