|
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_MUSENGORIENTATIONHANDLER_H__ |
|
20 #define __UT_MUSENGORIENTATIONHANDLER_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 #include <digia/eunit/eunitmacros.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMusEngLiveSession; |
|
29 class CMusEngObserverStub; |
|
30 class CMusEngOrientationHandler; |
|
31 |
|
32 |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * Tester class for CMusEngLiveSession. |
|
36 * Tests only implementations that are not tested in ancestor classes. |
|
37 * |
|
38 */ |
|
39 NONSHARABLE_CLASS( UT_CMusEngOrientationHandler ): public CEUnitTestSuiteClass |
|
40 { |
|
41 public: // Constructors and destructors |
|
42 |
|
43 /** |
|
44 * Two phase construction |
|
45 */ |
|
46 static UT_CMusEngOrientationHandler* NewL(); |
|
47 static UT_CMusEngOrientationHandler* NewLC(); |
|
48 |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 ~UT_CMusEngOrientationHandler(); |
|
53 |
|
54 private: // Constructors and destructors |
|
55 |
|
56 UT_CMusEngOrientationHandler(); |
|
57 void ConstructL(); |
|
58 |
|
59 private: // Test case setup and teardown |
|
60 |
|
61 void SetupL(); |
|
62 |
|
63 void Teardown(); |
|
64 |
|
65 private: // Test methdods |
|
66 |
|
67 void UT_NewLL(); |
|
68 void UT_RefreshOrientationL(); |
|
69 |
|
70 private: // Data |
|
71 |
|
72 CMusEngLiveSession* iLiveSession; |
|
73 CMusEngObserverStub* iObserver; |
|
74 CMusEngOrientationHandler* iHandler; |
|
75 |
|
76 EUNIT_DECLARE_TEST_TABLE; |
|
77 |
|
78 }; |
|
79 |
|
80 #endif // __UT_MUSENGORIENTATIONHANDLER_H__ |
|
81 |
|
82 // End of file |