|
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: MProfileExtraTones test class. |
|
15 * |
|
16 */ |
|
17 |
|
18 //////////////////////////////////////////////////////////////////////// |
|
19 // T_MProfileExtraTones.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 MProfileExtraTones; |
|
35 class CRepository; |
|
36 |
|
37 /** |
|
38 * Test suite for class MProfile |
|
39 */ |
|
40 class T_MProfileExtraTones : public CEUnitTestSuiteClass |
|
41 { |
|
42 public: // Construct / destruct |
|
43 static T_MProfileExtraTones* NewLC(); |
|
44 ~T_MProfileExtraTones(); |
|
45 |
|
46 private: |
|
47 void ConstructL(); |
|
48 |
|
49 private: // Assistance methods |
|
50 |
|
51 private: // test methods |
|
52 // setups |
|
53 void EmptySetupL(); |
|
54 void SetupL(); |
|
55 void Setup0L(); |
|
56 void Setup1L(); |
|
57 void Setup2L(); |
|
58 void Setup3L(); |
|
59 void Setup4L(); |
|
60 |
|
61 // teardowns |
|
62 void EmptyTeardown(); |
|
63 void Teardown(); |
|
64 |
|
65 // tests |
|
66 void EmptyTestL(); |
|
67 |
|
68 void GetIMMessageAlertToneTestL(); |
|
69 |
|
70 void GetEmailAlertToneTestL(); |
|
71 |
|
72 void GetVideoCallRingingToneTestL(); |
|
73 |
|
74 private: // Implementation |
|
75 |
|
76 EUNIT_DECLARE_TESTCASE_TABLE; |
|
77 |
|
78 private: // Data |
|
79 MProfileEngine* iProfileEngine; |
|
80 MProfile* iProfile; |
|
81 TInt iActiveId; |
|
82 RArray<TInt> iArray; |
|
83 RFs iFs; |
|
84 |
|
85 const MProfileExtraTones* iProfileExtraTones; |
|
86 CRepository* iCenRep; |
|
87 }; |