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: |
|
15 * CFLDFileListContainer test class. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __T_CFLDFileListContainer_H__ |
|
22 #define __T_CFLDFileListContainer_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <CEUnitTestSuiteClass.h> |
|
26 #include <coneresloader.h> |
|
27 #include <W32STD.H> |
|
28 |
|
29 #include <f32file.h> |
|
30 #include <badesca.h> |
|
31 #include <CLFContentListing.hrh> |
|
32 |
|
33 |
|
34 class CFLDFileListContainer; |
|
35 |
|
36 // CLASS DEFINITION |
|
37 |
|
38 /* |
|
39 ----------------------------------------------------------------------------- |
|
40 |
|
41 DESCRIPTION |
|
42 |
|
43 Test suite for class CEUnitTestCase. |
|
44 |
|
45 ----------------------------------------------------------------------------- |
|
46 */ |
|
47 class T_CFLDFileListContainer |
|
48 : public CEUnitTestSuiteClass |
|
49 { |
|
50 public: // Constructors and destructors |
|
51 static T_CFLDFileListContainer* NewLC(); |
|
52 ~T_CFLDFileListContainer(); |
|
53 |
|
54 private: // New methods |
|
55 T_CFLDFileListContainer(); |
|
56 void ConstructL(); |
|
57 |
|
58 private: // Test case functions |
|
59 void EmptySetupL(); |
|
60 void SetupL(); |
|
61 void Teardown(); |
|
62 |
|
63 // tests: |
|
64 void TestCreateObjectL(); |
|
65 |
|
66 void LaunchTestL(); |
|
67 void InsertNullItemTestL(); |
|
68 void InsertEndNullItemTestL(); |
|
69 void SetDelayTestL(); |
|
70 void SetVolumeTestL(); |
|
71 void SetRingingTypeTestL(); |
|
72 void SetVibraTestL(); |
|
73 |
|
74 void SetAutomatedTypeTestL(); |
|
75 void Set3dEffectsTestL(); |
|
76 void SetMaxFileSizeTestL(); |
|
77 |
|
78 void AddExclusiveMimeTypeTestL(); |
|
79 void AddExclusiveMediaTypeTestL(); |
|
80 void SetWantedMimeTypesTestL(); |
|
81 void SetWantedMediaTypesTestL(); |
|
82 void ResetExclusiveMimeTypesTestL(); |
|
83 void ResetExclusiveMediaTypesTestL(); |
|
84 |
|
85 private: // Implementation |
|
86 EUNIT_DECLARE_TEST_TABLE; |
|
87 |
|
88 private: // Data |
|
89 RConeResourceLoader* iResourceLoader; |
|
90 |
|
91 CFLDFileListContainer* iContainer; |
|
92 CFLDFileListContainer* iContainer1; |
|
93 CFLDFileListContainer* iContainer2; |
|
94 CFLDFileListContainer* iContainer3; |
|
95 CFLDFileListContainer* iContainer4; |
|
96 CFLDFileListContainer* iContainer5; |
|
97 RWsSession iWsSession; |
|
98 |
|
99 CDesCArray* iMimeTypeArray; |
|
100 RArray<TCLFMediaType> iMediaTypeArray; |
|
101 |
|
102 }; |
|
103 |
|
104 #endif // __T_CFLDFileListContainer_H__ |
|
105 |
|
106 // end of file |
|
107 |
|