profilesservices/ProfileEngine/tsrc/public/basic/EngineMdlTest/inc/T_MProfileName.h
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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: MProfileName test class. |
|
15 * |
|
16 */ |
|
17 |
|
18 //////////////////////////////////////////////////////////////////////// |
|
19 // T_MProfileName.h |
|
20 // |
|
21 |
|
22 // INCLUDES |
|
23 #include <CEUnitTestSuiteClass.h> |
|
24 |
|
25 #include <f32file.h> |
|
26 #include <s32file.h> |
|
27 |
|
28 #include <APGCLI.H> |
|
29 |
|
30 |
|
31 // FORWARD DECLARATION |
|
32 class MProfileEngine; |
|
33 class MProfile; |
|
34 class MProfileName; |
|
35 class MProfileTones; |
|
36 class MProfileExtraTones; |
|
37 |
|
38 |
|
39 /** |
|
40 * Test suite for class MProfile |
|
41 */ |
|
42 class T_MProfileName : public CEUnitTestSuiteClass |
|
43 { |
|
44 public: // Construct / destruct |
|
45 static T_MProfileName* NewLC(); |
|
46 ~T_MProfileName(); |
|
47 |
|
48 private: |
|
49 void ConstructL(); |
|
50 |
|
51 private: // Assistance methods |
|
52 |
|
53 private: // test methods |
|
54 // setups |
|
55 void EmptySetupL(); |
|
56 void SetupL(); |
|
57 void Setup0L(); |
|
58 void Setup1L(); |
|
59 void Setup2L(); |
|
60 void Setup3L(); |
|
61 void Setup4L(); |
|
62 |
|
63 // teardowns |
|
64 void EmptyTeardown(); |
|
65 void Teardown(); |
|
66 |
|
67 // tests |
|
68 void EmptyTestL(); |
|
69 |
|
70 // MProfileName |
|
71 void GetIdTestL(); |
|
72 void GetNameTestL(); |
|
73 void GetShortNameTestL(); |
|
74 void GetNaviNameTestL(); |
|
75 void GetTitleNameTestL(); |
|
76 |
|
77 private: // Implementation |
|
78 |
|
79 EUNIT_DECLARE_TESTCASE_TABLE; |
|
80 |
|
81 private: // Data |
|
82 MProfileEngine* iProfileEngine; |
|
83 MProfile* iProfile; |
|
84 TInt iActiveId; |
|
85 |
|
86 const MProfileName* iProfileName; |
|
87 RFs iFs; |
|
88 }; |
|
89 |