|
1 /* |
|
2 * Copyright (c) 2004 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_CMusAvaSettingAvailability_H__ |
|
20 #define __UT_CMusAvaSettingAvailability_H__ |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <digia/eunit/ceunittestsuiteclass.h> |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 #include <e32def.h> |
|
27 #include <e32property.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CMusAvaAvailabilityObserverImp; |
|
31 class CMusAvaSharedObject; |
|
32 class CMusAvaSettingAvailability; |
|
33 // CLASS DEFINITION |
|
34 |
|
35 // Next row is to disable warning emerging from EUnit code. |
|
36 // Placement is due to a fact that most test case files // include this file. Directive can be removed when // EUnit is fixed. |
|
37 #pragma warn_illtokenpasting off |
|
38 /** |
|
39 * |
|
40 * EUnitWizard generated test class. |
|
41 * |
|
42 */ |
|
43 class UT_CMusAvaSettingAvailability |
|
44 : public CEUnitTestSuiteClass |
|
45 { |
|
46 public: // Constructors and destructors |
|
47 |
|
48 /** |
|
49 * Two phase construction |
|
50 */ |
|
51 static UT_CMusAvaSettingAvailability* NewL(); |
|
52 static UT_CMusAvaSettingAvailability* NewLC(); |
|
53 /** |
|
54 * Destructor |
|
55 */ |
|
56 ~UT_CMusAvaSettingAvailability(); |
|
57 |
|
58 private: // Constructors and destructors |
|
59 |
|
60 UT_CMusAvaSettingAvailability(); |
|
61 void ConstructL(); |
|
62 |
|
63 |
|
64 private: // New methods |
|
65 |
|
66 void SetupL(); |
|
67 |
|
68 void Teardown(); |
|
69 |
|
70 void UT_CMusAvaSettingAvailability_NewLL(); |
|
71 |
|
72 void UT_CMusAvaSettingAvailability_IsForbiddenByOptionsResponseL(); |
|
73 |
|
74 void UT_CMusAvaSettingAvailability_CheckActivationStateL(); |
|
75 |
|
76 void UT_CMusAvaSettingAvailability_DoExecuteLL(); |
|
77 |
|
78 void UT_CMusAvaSettingAvailability_NameL(); |
|
79 |
|
80 void UT_CMusAvaSettingAvailability_StopL(); |
|
81 |
|
82 |
|
83 EUNIT_DECLARE_TEST_TABLE; |
|
84 |
|
85 private: |
|
86 CMusAvaAvailabilityObserverImp* iAvailabilityObserver; |
|
87 CMusAvaSettingAvailability* iSettingAvailability; |
|
88 }; |
|
89 |
|
90 #endif // __UT_CMusAvaSettingAvailability_H__ |
|
91 |
|
92 // End of file |