|
1 /* |
|
2 * Copyright (c) 2004-2007 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: Unit tests for CMusApplicationManager class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef UT_CMUSAPPLICATIONMANAGER_H |
|
20 #define UT_CMUSAPPLICATIONMANAGER_H |
|
21 |
|
22 #include <digia/eunit/ceunittestsuiteclass.h> |
|
23 |
|
24 class CMusApplicationManager; |
|
25 |
|
26 #include <e32def.h> |
|
27 #ifndef NONSHARABLE_CLASS |
|
28 #define NONSHARABLE_CLASS(x) class x |
|
29 #endif |
|
30 |
|
31 /** |
|
32 * Unit test class for CMusApplicationManager class. |
|
33 * Implements unit testing of CMusApplicationManager class. |
|
34 * |
|
35 * @since S60 v3.2 |
|
36 */ |
|
37 NONSHARABLE_CLASS( UT_CMusApplicationManager ) : public CEUnitTestSuiteClass |
|
38 { |
|
39 public: |
|
40 |
|
41 static UT_CMusApplicationManager* NewL(); |
|
42 |
|
43 static UT_CMusApplicationManager* NewLC(); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~UT_CMusApplicationManager(); |
|
49 |
|
50 private: |
|
51 |
|
52 UT_CMusApplicationManager(); |
|
53 |
|
54 void ConstructL(); |
|
55 |
|
56 /** |
|
57 * Sets up a test case. |
|
58 */ |
|
59 void SetupL(); |
|
60 |
|
61 /** |
|
62 * Tears down a test case. |
|
63 */ |
|
64 void Teardown(); |
|
65 |
|
66 /** |
|
67 * Invidual unit test methods. |
|
68 */ |
|
69 void UT_CMusApplicationManager_NewLL(); |
|
70 void UT_CMusApplicationManager_NewLCL(); |
|
71 void UT_CMusApplicationManager_ApplicationRunningL(); |
|
72 void UT_CMusApplicationManager_StartApplicationLL(); |
|
73 void UT_CMusApplicationManager_StopApplicationLL(); |
|
74 void UT_CMusApplicationManager_ShowApplicationLL(); |
|
75 void UT_CMusApplicationManager_WriteSessionPropertiesL(); |
|
76 void UT_CMusApplicationManager_SetPropertyLL(); |
|
77 void UT_CMusApplicationManager_SetPropertyL2L(); |
|
78 void UT_CMusApplicationManager_GetApaTaskL(); |
|
79 void UT_CMusApplicationManager_MapAvailabilitiesL(); |
|
80 void UT_CMusApplicationManager_SetStatusLL(); |
|
81 |
|
82 private: // data |
|
83 |
|
84 /** |
|
85 * Instance of tested class. |
|
86 * Own. |
|
87 */ |
|
88 CMusApplicationManager* iManager; |
|
89 |
|
90 EUNIT_DECLARE_TEST_TABLE; |
|
91 |
|
92 }; |
|
93 |
|
94 #endif // UT_CMUSAPPLICATIONMANAGER_H |