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_MUSENGTWOWAYSESSION_H__ |
|
20 #define __UT_MUSENGTWOWAYSESSION_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <ceunittestsuiteclass.h> |
|
25 #include <eunitmacros.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMusEngTwoWaySession; |
|
29 class CLcSessionObserverStub; |
|
30 class CLcUiProviderStub; |
|
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_CMusEngTwoWaySession ): public CEUnitTestSuiteClass |
|
40 { |
|
41 public: // Constructors and destructors |
|
42 |
|
43 /** |
|
44 * Two phase construction |
|
45 */ |
|
46 static UT_CMusEngTwoWaySession* NewL(); |
|
47 static UT_CMusEngTwoWaySession* NewLC(); |
|
48 |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 ~UT_CMusEngTwoWaySession(); |
|
53 |
|
54 private: // Constructors and destructors |
|
55 |
|
56 UT_CMusEngTwoWaySession(); |
|
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_EstablishLcSessionLL(); |
|
69 void UT_EnableDisplayLL(); |
|
70 void UT_SetOrientationLL(); |
|
71 void UT_SetLocalRectLL(); |
|
72 void UT_SetRectsLL(); |
|
73 void UT_CompleteSessionStructureLL(); |
|
74 void UT_HandleSessionStateChangedL(); |
|
75 void UT_AdjustVideoCodecLL(); |
|
76 void UT_AdjustAudioCodecLL(); |
|
77 void UT_DoCodecSelectionLL(); |
|
78 void UT_StreamStateChangedL(); |
|
79 void UT_StreamStateChangedWithSourceL(); |
|
80 void UT_SetEncodingDeviceLL(); |
|
81 void UT_SetCodecConfigKeyLL(); |
|
82 void UT_ReadCodecConfigKeyLL(); |
|
83 void UT_StoreEncoderConfigInfoLL(); |
|
84 void UT_RemoteVideoPlayerL(); |
|
85 void UT_EnableLcFileL(); |
|
86 void UT_InactivityTimeoutL(); |
|
87 |
|
88 private: // Data |
|
89 |
|
90 CMusEngTwoWaySession* iLiveSession; |
|
91 CLcSessionObserverStub* iLcSessionObserver; |
|
92 CLcUiProviderStub* iLcUiProvider; |
|
93 |
|
94 EUNIT_DECLARE_TEST_TABLE; |
|
95 }; |
|
96 |
|
97 #endif // __UT_MUSENGTWOWAYSESSION_H__ |
|
98 |
|
99 // End of file |
|