|
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_MUSENGCLIPSESSION_H__ |
|
20 #define __UT_MUSENGCLIPSESSION_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 #include <digia/eunit/eunitmacros.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMusEngClipSession; |
|
29 class CLcSessionObserverStub; |
|
30 class CLcUiProviderStub; |
|
31 class CMusEngObserverStub; |
|
32 |
|
33 // CONSTANTS |
|
34 _LIT8( KMusSipUri, "sip:user@domain.com" ); |
|
35 |
|
36 // CLASS DEFINITION |
|
37 /** |
|
38 * Tester class for CMusEngClipSession. |
|
39 * Tests only implementations that are not tested in ancestor classes. |
|
40 * |
|
41 */ |
|
42 NONSHARABLE_CLASS( UT_CMusEngClipSession ): public CEUnitTestSuiteClass |
|
43 { |
|
44 public: // Constructors and destructors |
|
45 |
|
46 /** |
|
47 * Two phase construction |
|
48 */ |
|
49 static UT_CMusEngClipSession* NewL(); |
|
50 static UT_CMusEngClipSession* NewLC(); |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 ~UT_CMusEngClipSession(); |
|
56 |
|
57 private: // Constructors and destructors |
|
58 |
|
59 UT_CMusEngClipSession(); |
|
60 void ConstructL(); |
|
61 |
|
62 private: // Test case setup and teardown |
|
63 |
|
64 void SetupL(); |
|
65 void Teardown(); |
|
66 |
|
67 private: // Test methdods |
|
68 |
|
69 void UT_NewLL(); |
|
70 void UT_CompleteSessionStructureLL(); |
|
71 void UT_StreamStateChangedL(); |
|
72 void UT_StreamStateChangedWithSourceL(); |
|
73 void UT_StreamStateChangedWithSinkL(); |
|
74 void UT_AddAmrCodecLL(); |
|
75 void UT_AddVideoCodecLL(); |
|
76 void UT_ConstructAudioStructureLL(); |
|
77 void UT_ConstructAudioStructureL_OperatorVariantL(); |
|
78 void UT_EstablishSessionLL(); |
|
79 |
|
80 private: // Data |
|
81 |
|
82 CMusEngClipSession* iClipSession; |
|
83 CLcSessionObserverStub* iLcSessionObserver; |
|
84 CLcUiProviderStub* iLcUiProvider; |
|
85 CMusEngObserverStub* iAudioRoutingObserver; |
|
86 |
|
87 EUNIT_DECLARE_TEST_TABLE; |
|
88 }; |
|
89 |
|
90 #endif // __UT_MUSENGCLIPSESSION_H__ |
|
91 |
|
92 // End of file |