|
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 CLcSessionObserverStub; |
|
30 class CLcUiProviderStub; |
|
31 class CMusEngObserverStub; |
|
32 |
|
33 |
|
34 // CLASS DEFINITION |
|
35 /** |
|
36 * Tester class for CMusEngLiveSession. |
|
37 * Tests only implementations that are not tested in ancestor classes. |
|
38 * |
|
39 */ |
|
40 NONSHARABLE_CLASS( UT_CMusEngLiveSession ): public CEUnitTestSuiteClass |
|
41 { |
|
42 public: // Constructors and destructors |
|
43 |
|
44 /** |
|
45 * Two phase construction |
|
46 */ |
|
47 static UT_CMusEngLiveSession* NewL(); |
|
48 static UT_CMusEngLiveSession* NewLC(); |
|
49 |
|
50 /** |
|
51 * Destructor |
|
52 */ |
|
53 ~UT_CMusEngLiveSession(); |
|
54 |
|
55 private: // Constructors and destructors |
|
56 |
|
57 UT_CMusEngLiveSession(); |
|
58 void ConstructL(); |
|
59 |
|
60 private: // Test case setup and teardown |
|
61 |
|
62 void SetupL(); |
|
63 |
|
64 void Teardown(); |
|
65 |
|
66 private: // Test methdods |
|
67 |
|
68 void UT_NewLL(); |
|
69 void UT_CompleteSessionStructureLL(); |
|
70 void UT_HandleSessionStateChangedL(); |
|
71 void UT_AdjustVideoCodecLL(); |
|
72 void UT_AdjustAudioCodecLL(); |
|
73 void UT_DoCodecSelectionLL(); |
|
74 void UT_StreamStateChangedL(); |
|
75 void UT_StreamStateChangedWithSourceL(); |
|
76 void UT_StreamStateChangedWithSinkL(); |
|
77 void UT_EstablishLcSessionL(); |
|
78 void UT_LocalVideoPlayerL(); |
|
79 |
|
80 private: // Data |
|
81 |
|
82 CMusEngLiveSession* iLiveSession; |
|
83 CMusEngLiveSession* iRecordedLiveSession; |
|
84 CLcSessionObserverStub* iLcSessionObserver; |
|
85 CLcUiProviderStub* iLcUiProvider; |
|
86 CMusEngObserverStub* iAudioRoutingObserver; |
|
87 |
|
88 EUNIT_DECLARE_TEST_TABLE; |
|
89 }; |
|
90 |
|
91 #endif // __UT_MUSENGLIVESESSION_H__ |
|
92 |
|
93 // End of file |