equal
deleted
inserted
replaced
18 |
18 |
19 #ifndef __UT_MUSENGSIPPROFILEHANDLER_H__ |
19 #ifndef __UT_MUSENGSIPPROFILEHANDLER_H__ |
20 #define __UT_MUSENGSIPPROFILEHANDLER_H__ |
20 #define __UT_MUSENGSIPPROFILEHANDLER_H__ |
21 |
21 |
22 |
22 |
23 // INCLUDES |
23 // 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 // FORWARD DECLARATIONS |
28 // FORWARD DECLARATIONS |
28 class CMusSipProfileHandler; |
29 class CMusSipProfileHandler; |
29 class CMusEngObserverStub; |
|
30 |
30 |
31 |
31 |
32 // CLASS DEFINITION |
32 // CLASS DEFINITION |
33 /** |
33 /** |
34 * Tester class for CMusSipProfileHandler. |
34 * Tester class for CMusSipProfileHandler. |
35 * |
35 * |
36 */ |
36 */ |
37 NONSHARABLE_CLASS( UT_CMusEngSipProfileHandler ): |
37 NONSHARABLE_CLASS( UT_CMusEngSipProfileHandler ): |
38 public CEUnitTestSuiteClass |
38 public CEUnitTestSuiteClass, |
|
39 public MMusSipProfileUser |
39 { |
40 { |
40 public: // Constructors and destructors |
41 public: // Constructors and destructors |
41 |
42 |
42 /** |
43 /** |
43 * Two phase construction |
44 * Two phase construction |
47 |
48 |
48 /** |
49 /** |
49 * Destructor |
50 * Destructor |
50 */ |
51 */ |
51 ~UT_CMusEngSipProfileHandler(); |
52 ~UT_CMusEngSipProfileHandler(); |
|
53 |
|
54 public: // From MMusSipProfileUser |
52 |
55 |
|
56 TBool IsRoamingBetweenAPsAllowed(); |
|
57 |
53 private: // Constructors and destructors |
58 private: // Constructors and destructors |
54 |
59 |
55 UT_CMusEngSipProfileHandler(); |
60 UT_CMusEngSipProfileHandler(); |
56 void ConstructL(); |
61 void ConstructL(); |
57 |
62 |
59 |
64 |
60 void SetupL(); |
65 void SetupL(); |
61 |
66 |
62 void Teardown(); |
67 void Teardown(); |
63 |
68 |
64 private: // Test methdods |
69 private: // Test methods |
65 |
70 |
66 void UT_CreateSipProfileLL(); |
71 void UT_CMusEngSipProfileHandler_CreateSipProfileLL(); |
67 void UT_ProfileIdL(); |
72 void UT_CMusEngSipProfileHandler_ProfileIdL(); |
68 void UT_AlrEventL(); |
73 void UT_CMusEngSipProfileHandler_AlrEventL(); |
69 void UT_NullTestsL(); |
74 void UT_CMusEngSipProfileHandler_NullTestsL(); |
70 void UT_UserFromProfileLCL(); |
75 void UT_CMusEngSipProfileHandler_UserFromProfileLCL(); |
71 void UT_IsRegisteredL(); |
|
72 void UT_ProfileRegistryEventOccurredL(); |
|
73 |
76 |
74 private: // Data |
77 private: // Data |
75 |
78 |
76 CMusSipProfileHandler* iProfileHandler; |
79 CMusSipProfileHandler* iProfileHandler; |
77 CMusEngObserverStub* iObserver; |
80 TBool iRoamingBetweenAPsAllowed; |
78 |
81 |
79 EUNIT_DECLARE_TEST_TABLE; |
82 EUNIT_DECLARE_TEST_TABLE; |
80 }; |
83 }; |
81 |
84 |
82 #endif // __UT_MUSENGSIPPROFILEHANDLER_H__ |
85 #endif // __UT_MUSENGSIPPROFILEHANDLER_H__ |