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_MUSENGCAMERAHANDLER_H__ |
|
20 #define __UT_MUSENGCAMERAHANDLER_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <ceunittestsuiteclass.h> |
|
25 #include <eunitmacros.h> |
|
26 |
|
27 #include "musengcamerahandler.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CMceManager; |
|
31 class CMusSipProfileHandler; |
|
32 class CMceSession; |
|
33 class CMusEngObserverStub; |
|
34 class CMceDisplaySink; |
|
35 |
|
36 |
|
37 // CLASS DEFINITION |
|
38 /** |
|
39 * Tester class for CMusEngLiveSession. |
|
40 * Tests only implementations that are not tested in ancestor classes. |
|
41 * |
|
42 */ |
|
43 NONSHARABLE_CLASS( UT_TMusEngCameraHandler ): public CEUnitTestSuiteClass |
|
44 { |
|
45 public: // Constructors and destructors |
|
46 |
|
47 /** |
|
48 * Two phase construction |
|
49 */ |
|
50 static UT_TMusEngCameraHandler* NewL(); |
|
51 static UT_TMusEngCameraHandler* NewLC(); |
|
52 |
|
53 /** |
|
54 * Destructor |
|
55 */ |
|
56 ~UT_TMusEngCameraHandler(); |
|
57 |
|
58 private: // Constructors and destructors |
|
59 |
|
60 UT_TMusEngCameraHandler(); |
|
61 void ConstructL(); |
|
62 |
|
63 private: // Test case setup and teardown |
|
64 |
|
65 void SetupL(); |
|
66 void Teardown(); |
|
67 |
|
68 private: // Test methdods |
|
69 |
|
70 void UT_LcCameraCountL(); |
|
71 void UT_ToggleLcCameraL(); |
|
72 void UT_SetLcBrightnessL(); |
|
73 void UT_LcBrightnessL(); |
|
74 void UT_MaxLcBrightnessL(); |
|
75 void UT_MinLcBrightnessL(); |
|
76 void UT_IncreaseLcBrightnessL(); |
|
77 void UT_DecreaseLcBrightnessL(); |
|
78 void UT_MinLcZoomL(); |
|
79 void UT_MaxLcZoomL(); |
|
80 void UT_LcZoomValueL(); |
|
81 void UT_SetLcZoomValueL(); |
|
82 void UT_LcZoomInL(); |
|
83 void UT_LcZoomOutL(); |
|
84 void UT_PlayL(); |
|
85 void UT_PauseL(); |
|
86 void UT_IsPlayingL(); |
|
87 void UT_InitializeZoomStepSizeL(); |
|
88 void UT_ChangeCameraL(); |
|
89 void UT_ChangeActiveCameraL(); |
|
90 |
|
91 private: // Data |
|
92 |
|
93 TMusEngCameraHandler iCameraHandler; |
|
94 CMceManager* iManager; |
|
95 CMusSipProfileHandler* iProfileHandler; |
|
96 CMusEngObserverStub* iObserver; |
|
97 CMceSession* iSession; |
|
98 |
|
99 EUNIT_DECLARE_TEST_TABLE; |
|
100 }; |
|
101 |
|
102 #endif // __UT_MUSENGLIVESESSION_H__ |
|
103 |
|
104 // End of file |
|