|
1 /* |
|
2 * Copyright (c) 2006 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: Main plugin class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MUSAIWPROVIDERTEST_H |
|
20 #define MUSAIWPROVIDERTEST_H |
|
21 |
|
22 |
|
23 #include <digia/eunit/ceunittestsuiteclass.h> |
|
24 #include <aiwcommon.h> |
|
25 #include <eikmobs.h> |
|
26 |
|
27 class CMusAiwProvider; |
|
28 |
|
29 /** |
|
30 * Main plugin class |
|
31 * |
|
32 * @lib ut_musAiwProvider.dll |
|
33 */ |
|
34 class UT_CMusAiwProvider: public CEUnitTestSuiteClass, |
|
35 public MEikMenuObserver, |
|
36 public MAiwNotifyCallback |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Symbian two-phase constructor. |
|
42 * @return New UT_CMusAiwProvider instance |
|
43 */ |
|
44 static UT_CMusAiwProvider* NewL(); |
|
45 |
|
46 static UT_CMusAiwProvider* NewLC(); |
|
47 |
|
48 /** |
|
49 * C++ destructor. |
|
50 */ |
|
51 ~UT_CMusAiwProvider(); |
|
52 |
|
53 |
|
54 private: // constructors |
|
55 |
|
56 /** |
|
57 * C++ constructor. |
|
58 */ |
|
59 UT_CMusAiwProvider(); |
|
60 |
|
61 /** |
|
62 * Symbian second-phase constructor. |
|
63 */ |
|
64 void ConstructL(); |
|
65 |
|
66 |
|
67 public: // Test case setup and teardown |
|
68 |
|
69 void SetupL(); |
|
70 |
|
71 void Teardown(); |
|
72 |
|
73 |
|
74 public: // from MEikMenuObserver |
|
75 |
|
76 void SetEmphasis( CCoeControl* aMenuControl,TBool aEmphasis ); |
|
77 |
|
78 void ProcessCommandL( TInt aCommandId ); |
|
79 |
|
80 |
|
81 public: // from MAiwNotifyCallback |
|
82 |
|
83 TInt HandleNotifyL( TInt aCmdId, |
|
84 TInt aEventId, |
|
85 CAiwGenericParamList& aEventParamList, |
|
86 const CAiwGenericParamList& aInParamList); |
|
87 |
|
88 |
|
89 public: // Tester functions |
|
90 |
|
91 void UT_CMusAiwProvider_InitialiseLL(); |
|
92 void UT_CMusAiwProvider_HandleServiceCmdLL(); |
|
93 void UT_CMusAiwProvider_InitializeMenuPaneLL(); |
|
94 void UT_CMusAiwProvider_InitializeMenuPaneL2L(); |
|
95 void UT_CMusAiwProvider_InitializeMenuPaneL3L(); |
|
96 void UT_CMusAiwProvider_InitializeMenuPaneL4L(); |
|
97 void UT_CMusAiwProvider_InitializeMenuPaneL5L(); |
|
98 void UT_CMusAiwProvider_InitializeMenuPaneL6L(); |
|
99 void UT_CMusAiwProvider_InitializeMenuPaneL7L(); |
|
100 |
|
101 |
|
102 void UT_CMusAiwProvider_HandleMenuCmdLL(); |
|
103 void UT_CMusAiwProvider_ApplicationRunningLL(); |
|
104 void UT_CMusAiwProvider_ShowErrorNoteLL(); |
|
105 void UT_CMusAiwProvider_ErrorNoteTextLCL(); |
|
106 void UT_CMusAiwProvider_ErrorNoteText8LL(); |
|
107 void UT_ImplementationGroupProxyL(); |
|
108 |
|
109 |
|
110 private: // data |
|
111 |
|
112 CMusAiwProvider* iProvider; |
|
113 |
|
114 EUNIT_DECLARE_TEST_TABLE; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // MUSAIWPROVIDERTEST_H |