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