|
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_MUSENGLIVESESSION_H__ |
|
20 #define __UT_MUSENGLIVESESSION_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 |
|
31 |
|
32 // CLASS DEFINITION |
|
33 /** |
|
34 * Tester class for CMusEngLiveSession. |
|
35 * Tests only implementations that are not tested in ancestor classes. |
|
36 * |
|
37 */ |
|
38 NONSHARABLE_CLASS( UT_CMusEngLiveSession ): public CEUnitTestSuiteClass |
|
39 { |
|
40 public: // Constructors and destructors |
|
41 |
|
42 /** |
|
43 * Two phase construction |
|
44 */ |
|
45 static UT_CMusEngLiveSession* NewL(); |
|
46 static UT_CMusEngLiveSession* NewLC(); |
|
47 |
|
48 /** |
|
49 * Destructor |
|
50 */ |
|
51 ~UT_CMusEngLiveSession(); |
|
52 |
|
53 private: // Constructors and destructors |
|
54 |
|
55 UT_CMusEngLiveSession(); |
|
56 void ConstructL(); |
|
57 |
|
58 private: // Test case setup and teardown |
|
59 |
|
60 void SetupL(); |
|
61 |
|
62 void Teardown(); |
|
63 |
|
64 private: // Test methdods |
|
65 |
|
66 void UT_NewLL(); |
|
67 void UT_CurrentZoomLL(); |
|
68 void UT_MaxZoomLL(); |
|
69 void UT_ZoomInLL(); |
|
70 void UT_ZoomOutLL(); |
|
71 void UT_ZoomDefaultLL(); |
|
72 void UT_RecordL_and_IsRecordingLL(); |
|
73 void UT_PlayLL(); |
|
74 void UT_PauseLL(); |
|
75 void UT_IsPlayingLL(); |
|
76 void UT_CompleteSessionStructureLL(); |
|
77 void UT_HandleSessionStateChangedL(); |
|
78 void UT_AdjustVideoCodecLL(); |
|
79 void UT_AdjustAudioCodecLL(); |
|
80 void UT_DoCodecSelectionLL(); |
|
81 void UT_StreamStateChangedL(); |
|
82 void UT_StreamStateChangedWithSourceL(); |
|
83 void UT_StreamStateChangedWithSinkL(); |
|
84 void UT_SetBrightnessLL(); |
|
85 void UT_CurrentBrightnessLL(); |
|
86 void UT_MaxBrightnessLL(); |
|
87 void UT_MinBrightnessLL(); |
|
88 void UT_IncreaseBrightnessLL(); |
|
89 void UT_DecreaseBrightnessLL(); |
|
90 void UT_BrightnessDefaultLL(); |
|
91 void UT_BrightnessAutoLL(); |
|
92 void UT_SetEncodingDeviceLL(); |
|
93 void UT_SetCodecConfigKeyLL(); |
|
94 void UT_ReadCodecConfigKeyLL(); |
|
95 void UT_StoreEncoderConfigInfoLL(); |
|
96 void UT_InitializeZoomStepSizeL(); |
|
97 |
|
98 private: // Data |
|
99 |
|
100 CMusEngLiveSession* iLiveSession; |
|
101 CMusEngLiveSession* iRecordedLiveSession; |
|
102 CMusEngObserverStub* iObserver; |
|
103 |
|
104 EUNIT_DECLARE_TEST_TABLE; |
|
105 |
|
106 }; |
|
107 |
|
108 #endif // __UT_MUSENGLIVESESSION_H__ |
|
109 |
|
110 // End of file |