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" |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
24 #include <digia/eunit/ceunittestsuiteclass.h> |
26 #include <digia/eunit/eunitmacros.h> |
25 #include <digia/eunit/eunitmacros.h> |
27 |
26 |
28 // FORWARD DECLARATIONS |
27 // FORWARD DECLARATIONS |
29 class CMusSipProfileHandler; |
28 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 |
|
40 { |
39 { |
41 public: // Constructors and destructors |
40 public: // Constructors and destructors |
42 |
41 |
43 /** |
42 /** |
44 * Two phase construction |
43 * Two phase construction |
48 |
47 |
49 /** |
48 /** |
50 * Destructor |
49 * Destructor |
51 */ |
50 */ |
52 ~UT_CMusEngSipProfileHandler(); |
51 ~UT_CMusEngSipProfileHandler(); |
53 |
|
54 public: // From MMusSipProfileUser |
|
55 |
52 |
56 TBool IsRoamingBetweenAPsAllowed(); |
|
57 |
|
58 private: // Constructors and destructors |
53 private: // Constructors and destructors |
59 |
54 |
60 UT_CMusEngSipProfileHandler(); |
55 UT_CMusEngSipProfileHandler(); |
61 void ConstructL(); |
56 void ConstructL(); |
62 |
57 |
64 |
59 |
65 void SetupL(); |
60 void SetupL(); |
66 |
61 |
67 void Teardown(); |
62 void Teardown(); |
68 |
63 |
69 private: // Test methods |
64 private: // Test methdods |
70 |
65 |
71 void UT_CMusEngSipProfileHandler_CreateSipProfileLL(); |
66 void UT_CreateSipProfileLL(); |
72 void UT_CMusEngSipProfileHandler_ProfileIdL(); |
67 void UT_ProfileIdL(); |
73 void UT_CMusEngSipProfileHandler_AlrEventL(); |
68 void UT_AlrEventL(); |
74 void UT_CMusEngSipProfileHandler_NullTestsL(); |
69 void UT_NullTestsL(); |
75 void UT_CMusEngSipProfileHandler_UserFromProfileLCL(); |
70 void UT_UserFromProfileLCL(); |
|
71 void UT_IsRegisteredL(); |
|
72 void UT_ProfileRegistryEventOccurredL(); |
76 |
73 |
77 private: // Data |
74 private: // Data |
78 |
75 |
79 CMusSipProfileHandler* iProfileHandler; |
76 CMusSipProfileHandler* iProfileHandler; |
80 TBool iRoamingBetweenAPsAllowed; |
77 CMusEngObserverStub* iObserver; |
81 |
78 |
82 EUNIT_DECLARE_TEST_TABLE; |
79 EUNIT_DECLARE_TEST_TABLE; |
83 }; |
80 }; |
84 |
81 |
85 #endif // __UT_MUSENGSIPPROFILEHANDLER_H__ |
82 #endif // __UT_MUSENGSIPPROFILEHANDLER_H__ |