|
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_MUSENGSIPPROFILEHANDLER_H__ |
|
20 #define __UT_MUSENGSIPPROFILEHANDLER_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include "mussipprofileuser.h" |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 #include <digia/eunit/eunitmacros.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CMusSipProfileHandler; |
|
30 |
|
31 |
|
32 // CLASS DEFINITION |
|
33 /** |
|
34 * Tester class for CMusSipProfileHandler. |
|
35 * |
|
36 */ |
|
37 NONSHARABLE_CLASS( UT_CMusEngSipProfileHandler ): |
|
38 public CEUnitTestSuiteClass, |
|
39 public MMusSipProfileUser |
|
40 { |
|
41 public: // Constructors and destructors |
|
42 |
|
43 /** |
|
44 * Two phase construction |
|
45 */ |
|
46 static UT_CMusEngSipProfileHandler* NewL(); |
|
47 static UT_CMusEngSipProfileHandler* NewLC(); |
|
48 |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 ~UT_CMusEngSipProfileHandler(); |
|
53 |
|
54 public: // From MMusSipProfileUser |
|
55 |
|
56 TBool IsRoamingBetweenAPsAllowed(); |
|
57 |
|
58 private: // Constructors and destructors |
|
59 |
|
60 UT_CMusEngSipProfileHandler(); |
|
61 void ConstructL(); |
|
62 |
|
63 private: // Test case setup and teardown |
|
64 |
|
65 void SetupL(); |
|
66 |
|
67 void Teardown(); |
|
68 |
|
69 private: // Test methods |
|
70 |
|
71 void UT_CMusEngSipProfileHandler_CreateSipProfileLL(); |
|
72 void UT_CMusEngSipProfileHandler_ProfileIdL(); |
|
73 void UT_CMusEngSipProfileHandler_AlrEventL(); |
|
74 void UT_CMusEngSipProfileHandler_NullTestsL(); |
|
75 void UT_CMusEngSipProfileHandler_UserFromProfileLCL(); |
|
76 |
|
77 private: // Data |
|
78 |
|
79 CMusSipProfileHandler* iProfileHandler; |
|
80 TBool iRoamingBetweenAPsAllowed; |
|
81 |
|
82 EUNIT_DECLARE_TEST_TABLE; |
|
83 }; |
|
84 |
|
85 #endif // __UT_MUSENGSIPPROFILEHANDLER_H__ |
|
86 |
|
87 // End of file |