|
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 #ifndef __MT_ApiContentPriorityMap_H__ |
|
19 #define __MT_ApiContentPriorityMap_H__ |
|
20 |
|
21 // EXTERNAL INCLUDES |
|
22 #include <digia/eunit/ceunittestsuiteclass.h> |
|
23 |
|
24 // INTERNAL INCLUDES |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 namespace AiUtility |
|
29 { |
|
30 class CContentPriorityMap; |
|
31 } |
|
32 |
|
33 #include <e32def.h> |
|
34 #ifndef NONSHARABLE_CLASS |
|
35 #define NONSHARABLE_CLASS(x) class x |
|
36 #endif |
|
37 |
|
38 // CLASS DEFINITION |
|
39 /** |
|
40 * |
|
41 * EUnitWizard generated test class. |
|
42 * |
|
43 */ |
|
44 NONSHARABLE_CLASS( MT_ApiContentPriorityMap ) |
|
45 : public CEUnitTestSuiteClass |
|
46 { |
|
47 public: // Constructors and destructors |
|
48 |
|
49 /** |
|
50 * Two phase construction |
|
51 */ |
|
52 static MT_ApiContentPriorityMap* NewL(); |
|
53 static MT_ApiContentPriorityMap* NewLC(); |
|
54 /** |
|
55 * Destructor |
|
56 */ |
|
57 ~MT_ApiContentPriorityMap(); |
|
58 |
|
59 private: // Constructors and destructors |
|
60 |
|
61 MT_ApiContentPriorityMap(); |
|
62 void ConstructL(); |
|
63 |
|
64 public: // From observer interface |
|
65 |
|
66 |
|
67 |
|
68 private: // New methods |
|
69 |
|
70 void SetupL(); |
|
71 |
|
72 void Teardown(); |
|
73 |
|
74 void TestEmptyMapL(); |
|
75 |
|
76 void TestClearL(); |
|
77 |
|
78 void TestUpdateL(); |
|
79 |
|
80 void TestOverrideL(); |
|
81 |
|
82 void TestResetL(); |
|
83 |
|
84 |
|
85 private: // Data |
|
86 |
|
87 EUNIT_DECLARE_TEST_TABLE; |
|
88 |
|
89 AiUtility::CContentPriorityMap* iContentPriorityMap; |
|
90 |
|
91 }; |
|
92 |
|
93 #endif // __MT_ApiContentPriorityMap_H__ |
|
94 |
|
95 // End of file |