|
1 /* |
|
2 * Copyright (c) 2002 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: Test class for ProfileToneHandler. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_CPROFILETONEHANDLER_H |
|
20 #define T_CPROFILETONEHANDLER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <CEUnitTestSuiteClass.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CProfileToneHandler; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Test class for CProfileToneHandler. |
|
32 * |
|
33 * @lib SettingsViewMdlTest.lib |
|
34 * @since 2.5 |
|
35 */ |
|
36 class T_CProfileToneHandler : public CEUnitTestSuiteClass |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 static T_CProfileToneHandler* NewLC(); |
|
41 ~T_CProfileToneHandler(); |
|
42 |
|
43 private: |
|
44 |
|
45 void SetupL(); |
|
46 |
|
47 void EmptySetupL(); |
|
48 |
|
49 void Teardown(); |
|
50 |
|
51 void NewLTestL(); |
|
52 |
|
53 void NewLCTestL(); |
|
54 |
|
55 void SetActiveProfileRingingToneTestL(); |
|
56 |
|
57 void SetProfileToneTestL(); |
|
58 |
|
59 void SetToneForAllProfilesTestL(); |
|
60 |
|
61 private: |
|
62 |
|
63 T_CProfileToneHandler(); |
|
64 void ConstructL(); |
|
65 |
|
66 private: // Data |
|
67 |
|
68 // Own: The tested class, Profile tone Handler. |
|
69 CProfileToneHandler* iToneHandler; |
|
70 |
|
71 EUNIT_DECLARE_TEST_TABLE; |
|
72 |
|
73 }; |
|
74 |
|
75 #endif // T_CPROFILETONEHANDLER_H |
|
76 |
|
77 // End of File |