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_MUSENGLIVEVIDEOPLAYER_H |
|
19 #define UT_MUSENGLIVEVIDEOPLAYER_H |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <ceunittestsuiteclass.h> |
|
24 #include <eunitmacros.h> |
|
25 #include "musengcamerahandler.h" |
|
26 #include "musengstubs.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CMceSession; |
|
30 class CMusEngLiveVideoPlayer; |
|
31 |
|
32 |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * |
|
36 */ |
|
37 NONSHARABLE_CLASS( UT_CMusEngLiveVideoPlayer ): public CEUnitTestSuiteClass |
|
38 { |
|
39 public: // Constructors and destructors |
|
40 |
|
41 /** |
|
42 * Two phase construction |
|
43 */ |
|
44 static UT_CMusEngLiveVideoPlayer* NewL(); |
|
45 static UT_CMusEngLiveVideoPlayer* NewLC(); |
|
46 |
|
47 /** |
|
48 * Destructor |
|
49 */ |
|
50 ~UT_CMusEngLiveVideoPlayer(); |
|
51 |
|
52 private: // Constructors and destructors |
|
53 |
|
54 UT_CMusEngLiveVideoPlayer(); |
|
55 void ConstructL(); |
|
56 |
|
57 private: // Test case setup and teardown |
|
58 |
|
59 void SetupL(); |
|
60 void Teardown(); |
|
61 |
|
62 private: // Test methdods |
|
63 |
|
64 void UT_NewLL(); |
|
65 void UT_LcVideoPlayerStateL(); |
|
66 void UT_LcPlayL(); |
|
67 void UT_LcWindowL(); |
|
68 void UT_LcCameraControlL(); |
|
69 void UT_LcSourceFileControlL(); |
|
70 void UT_LcDestinationFileControlL(); |
|
71 void UT_LcAudioControlL(); |
|
72 void UT_LcZoomControlL(); |
|
73 void UT_LcBrightnessControlL(); |
|
74 void UT_EnableLcWindowL(); |
|
75 void UT_LcWindowRectL(); |
|
76 void UT_LcWindowOrientationL(); |
|
77 void UT_SetLcFileNameL(); |
|
78 void UT_LcRecordL(); |
|
79 |
|
80 private: // Data |
|
81 |
|
82 TLcAudioControlStub iLcAudioControlStub; |
|
83 CMceSession* iMceSession; |
|
84 TMusEngCameraHandler iCameraHandler; |
|
85 CMusEngLiveVideoPlayer* iLiveVideoPlayer; |
|
86 TMusEngDisplayHandlerStub iDisplayHandlerStub; |
|
87 EUNIT_DECLARE_TEST_TABLE; |
|
88 }; |
|
89 |
|
90 #endif // UT_MUSENGLIVEVIDEOPLAYER_H |
|
91 |
|
92 // End of file |
|