|
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: Module tests for Profile name array wrapper. |
|
15 * |
|
16 */ |
|
17 //////////////////////////////////////////////////////////////////////// |
|
18 // MT_MProEngProfileNameArray.h |
|
19 // |
|
20 |
|
21 #ifndef MT_MPROENGPROFILENAMEARRAY_H |
|
22 #define MT_MPROENGPROFILENAMEARRAY_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <f32file.h> |
|
27 #include <bamdesca.h> |
|
28 #include <cntdef.h> |
|
29 #include "MT_CSchedulerUtility.h" |
|
30 #include <CEUnitTestSuiteClass.h> |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class MProEngProfileNameArray; |
|
34 class MProEngProfile; |
|
35 class MProEngEngine; |
|
36 class MProfileEngineExtended; |
|
37 class MProfilesNamesArray; |
|
38 class MProfile; |
|
39 class MT_CProEngProfileObserver; |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 /** |
|
44 * Module tests for Profile name array wrapper. |
|
45 * |
|
46 */ |
|
47 class MT_MProEngProfileNameArray |
|
48 : public CEUnitTestSuiteClass |
|
49 { |
|
50 public: |
|
51 |
|
52 /** |
|
53 * Two phase construction |
|
54 */ |
|
55 static MT_MProEngProfileNameArray* NewL(); |
|
56 static MT_MProEngProfileNameArray* NewLC(); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 virtual ~MT_MProEngProfileNameArray(); |
|
62 |
|
63 private: // Constructors and destructors |
|
64 |
|
65 MT_MProEngProfileNameArray(); |
|
66 void ConstructL(); |
|
67 |
|
68 private: // Setup functions |
|
69 |
|
70 void SetupL(); |
|
71 |
|
72 void SetupDynamicProfilesL(); |
|
73 |
|
74 private: // Teardown functions |
|
75 |
|
76 void Teardown(); |
|
77 |
|
78 void TeardownDynamicProfiles(); |
|
79 |
|
80 private: // Test functions |
|
81 |
|
82 void ProfileIdTestL(); |
|
83 |
|
84 void FindByIdTestL(); |
|
85 |
|
86 void FindByNameTestL(); |
|
87 |
|
88 void FindByIdDynamicProfileTestL(); |
|
89 |
|
90 void FindByNameDynamicProfileTestL(); |
|
91 |
|
92 private: // Implementation |
|
93 |
|
94 EUNIT_DECLARE_TEST_TABLE; |
|
95 |
|
96 private: // Data |
|
97 |
|
98 TInt iProfileId; |
|
99 // owned |
|
100 MProfileEngineExtended* iInternalEngine; |
|
101 // owned |
|
102 MProEngEngine* iEngine; |
|
103 // owned |
|
104 MProEngProfileNameArray* iArray; |
|
105 // owned |
|
106 MProfilesNamesArray* iInternalArray; |
|
107 }; |
|
108 |
|
109 #endif // MT_MPROENGPROFILENAMEARRAY_H |
|
110 |
|
111 // End of File |
|
112 |
|
113 |
|
114 |