|
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 Profiles Tones Wrapper interface. |
|
15 * |
|
16 */ |
|
17 //////////////////////////////////////////////////////////////////////// |
|
18 // MT_MProEngTones.h |
|
19 // |
|
20 |
|
21 #ifndef MT_MPROENGTONES_H |
|
22 #define MT_MPROENGTONES_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 MProEngTones; |
|
34 class MProEngProfile; |
|
35 class MProEngEngine; |
|
36 class MProfileEngineExtended; |
|
37 class MProfile; |
|
38 class MT_CProEngProfileObserver; |
|
39 |
|
40 // CLASS DECLARATION |
|
41 |
|
42 /** |
|
43 * Module tests for Profiles Tones Wrapper interface. |
|
44 * |
|
45 */ |
|
46 class MT_MProEngTones |
|
47 : public CEUnitTestSuiteClass |
|
48 { |
|
49 public: |
|
50 |
|
51 /** |
|
52 * Two phase construction |
|
53 */ |
|
54 static MT_MProEngTones* NewL(); |
|
55 static MT_MProEngTones* NewLC(); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~MT_MProEngTones(); |
|
61 |
|
62 private: // Constructors and destructors |
|
63 |
|
64 MT_MProEngTones(); |
|
65 void ConstructL(); |
|
66 |
|
67 private: // Setup functions |
|
68 |
|
69 void SetupL(); |
|
70 void Setup0L(); |
|
71 void Setup1L(); |
|
72 void Setup2L(); |
|
73 void Setup3L(); |
|
74 void Setup4L(); |
|
75 #ifdef __OFFLINE_MODE |
|
76 void Setup5L(); |
|
77 #endif // __OFFLINE_MODE |
|
78 #ifdef __DRIVE_MODE |
|
79 void Setup6L(); |
|
80 #endif // __DRIVE_MODE |
|
81 |
|
82 private: // Teardown functions |
|
83 |
|
84 void Teardown(); |
|
85 |
|
86 private: // Test functions |
|
87 |
|
88 void GetRingingTone1TestL(); |
|
89 void GetRingingTone2TestL(); |
|
90 void GetMessageAlertToneTestL(); |
|
91 void GetEmailAlertToneTestL(); |
|
92 void GetVideoCallRingingToneTestL(); |
|
93 |
|
94 void SetRingingTone1TestL(); |
|
95 void SetRingingTone2TestL(); |
|
96 void SetMessageAlertToneTestL(); |
|
97 void SetEmailAlertToneTestL(); |
|
98 void SetVideoCallRingingToneTestL(); |
|
99 //void SetDRMRingingTone1TestL(); |
|
100 //void SetRingingToneSizeLimitTestL(); |
|
101 //int GetToneSizeLimitL(); |
|
102 |
|
103 private: // Implementation |
|
104 |
|
105 EUNIT_DECLARE_TEST_TABLE; |
|
106 |
|
107 private: // Data |
|
108 |
|
109 TInt iProfileId; |
|
110 // owned |
|
111 MProfileEngineExtended* iInternalEngine; |
|
112 // owned |
|
113 MProfile* iInternalProfile; |
|
114 // owned |
|
115 MProEngEngine* iEngine; |
|
116 // owned |
|
117 MProEngProfile* iProfile; |
|
118 |
|
119 }; |
|
120 |
|
121 #endif // MT_MPROENGTONES_H |
|
122 |
|
123 // End of File |
|
124 |
|
125 |
|
126 |