|
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 "mussipprofileuser.h" |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 #include <digia/eunit/eunitmacros.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CMceManager; |
|
30 class CMusSipProfileHandler; |
|
31 class CMceSession; |
|
32 |
|
33 #ifndef NONSHARABLE_CLASS |
|
34 #define NONSHARABLE_CLASS(x) class x |
|
35 #endif |
|
36 |
|
37 // CLASS DEFINITION |
|
38 /** |
|
39 * Tester class for MusEngMceUtils. |
|
40 * |
|
41 */ |
|
42 NONSHARABLE_CLASS( UT_MusEngMceUtils ): |
|
43 public CEUnitTestSuiteClass, |
|
44 public MMusSipProfileUser |
|
45 { |
|
46 public: // Constructors and destructors |
|
47 |
|
48 /** |
|
49 * Two phase construction |
|
50 */ |
|
51 static UT_MusEngMceUtils* NewL(); |
|
52 static UT_MusEngMceUtils* NewLC(); |
|
53 |
|
54 /** |
|
55 * Destructor |
|
56 */ |
|
57 ~UT_MusEngMceUtils(); |
|
58 |
|
59 public: // From MMusSipProfileUser |
|
60 |
|
61 TBool IsRoamingBetweenAPsAllowed(); |
|
62 |
|
63 private: // Constructors and destructors |
|
64 |
|
65 UT_MusEngMceUtils(); |
|
66 void ConstructL(); |
|
67 |
|
68 private: // Test case setup and teardown |
|
69 |
|
70 void SetupL(); |
|
71 |
|
72 void Teardown(); |
|
73 |
|
74 private: // Test methdods |
|
75 |
|
76 void UT_MusEngMceUtils_IsVideoInStreamL(); |
|
77 void UT_MusEngMceUtils_IsAudioInStreamL(); |
|
78 void UT_MusEngMceUtils_GetVideoOutStreamLL(); |
|
79 void UT_MusEngMceUtils_GetVideoInStreamLL(); |
|
80 void UT_MusEngMceUtils_GetRecordingStreamL(); |
|
81 void UT_MusEngMceUtils_GetMediaSinkL(); // From stream |
|
82 void UT_MusEngMceUtils_GetMediaSinkLL(); // From stream |
|
83 void UT_MusEngMceUtils_GetMediaSink2L(); // From session |
|
84 void UT_MusEngMceUtils_GetMediaSinkL2L(); // From session |
|
85 void UT_MusEngMceUtils_GetCameraLL(); |
|
86 void UT_MusEngMceUtils_GetFileSourceLL(); |
|
87 void UT_MusEngMceUtils_GetDisplayL(); |
|
88 void UT_MusEngMceUtils_GetDisplayLL(); |
|
89 void UT_MusEngMceUtils_AddDisplayLL(); |
|
90 void UT_MusEngMceUtils_AddSpeakerLL(); |
|
91 void UT_MusEngMceUtils_DisableStreamLL(); |
|
92 |
|
93 private: // Data |
|
94 |
|
95 CMceManager* iManager; |
|
96 CMusSipProfileHandler* iProfileHandler; |
|
97 CMceSession* iEmptySession; |
|
98 CMceSession* iVideoOutSession; |
|
99 CMceSession* iVideoInSession; |
|
100 |
|
101 EUNIT_DECLARE_TEST_TABLE; |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // __UT_MUSENGMCEUTILS_H__ |
|
106 |
|
107 // End of file |