|
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 UT_MUSENGSESSIONMANAGER_H |
|
19 #define UT_MUSENGSESSIONMANAGER_H |
|
20 |
|
21 // EXTERNAL INCLUDES |
|
22 #include <ceunittestsuiteclass.h> |
|
23 #include <eunitmacros.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CMusEngSessionManager; |
|
27 class CLcUiProviderStub; |
|
28 |
|
29 |
|
30 // CLASS DEFINITION |
|
31 /** |
|
32 * Tester class for CMusEngSessionManager. |
|
33 * |
|
34 */ |
|
35 NONSHARABLE_CLASS( UT_CMusEngSessionManager ): public CEUnitTestSuiteClass |
|
36 { |
|
37 public: // Constructors and destructors |
|
38 |
|
39 /** |
|
40 * Two phase construction |
|
41 */ |
|
42 static UT_CMusEngSessionManager* NewL(); |
|
43 static UT_CMusEngSessionManager* NewLC(); |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 ~UT_CMusEngSessionManager(); |
|
49 |
|
50 private: // Constructors and destructors |
|
51 |
|
52 UT_CMusEngSessionManager(); |
|
53 void ConstructL(); |
|
54 |
|
55 private: // Test case setup and teardown |
|
56 |
|
57 void SetupL(); |
|
58 |
|
59 void Teardown(); |
|
60 |
|
61 private: // Test methdods |
|
62 |
|
63 void UT_NewL(); |
|
64 void UT_SessionL(); |
|
65 void UT_IsFeatureSupportedL(); |
|
66 void UT_CreateMusSessionL(); |
|
67 void UT_PropertyChangedL(); |
|
68 |
|
69 private: // Data |
|
70 |
|
71 CMusEngSessionManager* iSessionManager; |
|
72 CLcUiProviderStub* iLcUiProvider; |
|
73 |
|
74 EUNIT_DECLARE_TEST_TABLE; |
|
75 }; |
|
76 |
|
77 #endif // UT_MUSENGSESSIONMANAGER_H |
|
78 |
|
79 // End of file |