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