|
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_MUSENGMCEUTILS_H__ |
|
20 #define __UT_MUSENGMCEUTILS_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 #include <digia/eunit/eunitmacros.h> |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CMceManager; |
|
30 class CMusSipProfileHandler; |
|
31 class CMceSession; |
|
32 class CMusEngObserverStub; |
|
33 class CMceDisplaySink; |
|
34 |
|
35 #ifndef NONSHARABLE_CLASS |
|
36 #define NONSHARABLE_CLASS(x) class x |
|
37 #endif |
|
38 |
|
39 // CLASS DEFINITION |
|
40 /** |
|
41 * Tester class for MusEngMceUtils. |
|
42 * |
|
43 */ |
|
44 NONSHARABLE_CLASS( UT_MusEngMceUtils ): |
|
45 public CEUnitTestSuiteClass |
|
46 { |
|
47 public: // Constructors and destructors |
|
48 |
|
49 /** |
|
50 * Two phase construction |
|
51 */ |
|
52 static UT_MusEngMceUtils* NewL(); |
|
53 static UT_MusEngMceUtils* NewLC(); |
|
54 |
|
55 /** |
|
56 * Destructor |
|
57 */ |
|
58 ~UT_MusEngMceUtils(); |
|
59 |
|
60 |
|
61 private: // Constructors and destructors |
|
62 |
|
63 UT_MusEngMceUtils(); |
|
64 void ConstructL(); |
|
65 |
|
66 private: // Test case setup and teardown |
|
67 |
|
68 void SetupL(); |
|
69 void Setup2L(); |
|
70 |
|
71 void Teardown(); |
|
72 |
|
73 private: // Test methdods |
|
74 |
|
75 void UT_IsVideoInStreamL(); |
|
76 void UT_IsVideoOutStreamL(); |
|
77 void UT_IsAudioInStreamL(); |
|
78 void UT_GetVideoOutStreamLL(); |
|
79 void UT_GetVideoInStreamLL(); |
|
80 void UT_GetRecordingStreamL(); |
|
81 void UT_GetMediaSinkFromStreamL(); |
|
82 void UT_GetMediaSinkLFromStreamL(); |
|
83 void UT_GetMediaSinkFromSessionL(); |
|
84 void UT_GetMediaSinkLFromSessionL(); |
|
85 void UT_GetCameraLL(); |
|
86 void UT_GetFileSourceLL(); |
|
87 void UT_GetDisplayL(); |
|
88 void UT_GetDisplayLL(); |
|
89 void UT_AddDisplayLL(); |
|
90 void UT_AddSpeakerLL(); |
|
91 void UT_DisableStreamLL(); |
|
92 void UT_GetReceivingDisplayL(); |
|
93 void UT_GetReceivingDisplayLL(); |
|
94 void UT_GetVfDisplayL(); |
|
95 void UT_EnableInactivityTimerL(); |
|
96 |
|
97 private: // Data |
|
98 |
|
99 CMceManager* iManager; |
|
100 CMusSipProfileHandler* iProfileHandler; |
|
101 CMusEngObserverStub* iObserver; |
|
102 CMceSession* iEmptySession; |
|
103 CMceSession* iVideoOutSession; |
|
104 CMceSession* iVideoInSession; |
|
105 |
|
106 CMceDisplaySink* iReceivingDisplay; // Not owned |
|
107 |
|
108 EUNIT_DECLARE_TEST_TABLE; |
|
109 |
|
110 }; |
|
111 |
|
112 #endif // __UT_MUSENGMCEUTILS_H__ |
|
113 |
|
114 // End of file |