|
1 /* |
|
2 * Copyright (c) 2010 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 UT_SATAPPPLAYTONEPROVIDER_H |
|
19 #define UT_SATAPPPLAYTONEPROVIDER_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 #include <QObject> |
|
23 |
|
24 |
|
25 // Class forwards |
|
26 class SatAppPlayToneProvider; |
|
27 |
|
28 /** |
|
29 * Satapp unit test class. |
|
30 * |
|
31 * @since S60 <TB10.1> |
|
32 */ |
|
33 class Ut_SatAppPlayToneProvider : public QObject |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 |
|
39 Ut_SatAppPlayToneProvider(QObject *parent = 0); |
|
40 |
|
41 virtual ~Ut_SatAppPlayToneProvider(); |
|
42 |
|
43 private slots: |
|
44 /** |
|
45 * Called before the first testfunction is executed. |
|
46 * Handles the SetUpMenu command. |
|
47 */ |
|
48 void initTestCase(); |
|
49 |
|
50 /** |
|
51 * Called after the last testfunction has been executed. |
|
52 * |
|
53 */ |
|
54 void cleanupTestCase(); |
|
55 |
|
56 /** |
|
57 * Test SatAppPlayToneProvider's constructor. |
|
58 * |
|
59 */ |
|
60 void testCreatePlayTone(); |
|
61 |
|
62 /** |
|
63 * Test SatAppPlayToneProvider's testPlayStandardTone input param list. |
|
64 * |
|
65 */ |
|
66 void testPlayStandardTone_data(); |
|
67 |
|
68 /** |
|
69 * Test SatAppPlayToneProvider's PlayStandardToneL. |
|
70 * |
|
71 */ |
|
72 void testPlayStandardTone(); |
|
73 |
|
74 /** |
|
75 * Test SatAppPlayToneProvider's testPlayUserSelectedTone input param list. |
|
76 * |
|
77 */ |
|
78 void testPlayUserSelectedTone_data(); |
|
79 |
|
80 /** |
|
81 * Test SatAppPlayToneProvider's PlayUserSelectedToneL. |
|
82 * |
|
83 */ |
|
84 void testPlayUserSelectedTone(); |
|
85 |
|
86 /** |
|
87 * Test SatAppPlayToneProvider's closeSatUI. |
|
88 * |
|
89 */ |
|
90 void testCloseSatUI(); |
|
91 |
|
92 /** |
|
93 * Test SatAppPlayToneProvider's clearScreen. |
|
94 * |
|
95 */ |
|
96 void testClearScreen(); |
|
97 |
|
98 /** |
|
99 * Test SatAppPlayToneProvider's testMapcPlayComplete input param list. |
|
100 * |
|
101 */ |
|
102 void testMapcPlayComplete_data(); |
|
103 |
|
104 /** |
|
105 * Test SatAppPlayToneProvider's MapcPlayComplete. |
|
106 * |
|
107 */ |
|
108 void testMapcPlayComplete(); |
|
109 |
|
110 /** |
|
111 * Test SatAppPlayToneProvider's testMapcInitComplete input param list. |
|
112 * |
|
113 */ |
|
114 void testMapcInitComplete_data(); |
|
115 |
|
116 |
|
117 /** |
|
118 * Test SatAppPlayToneProvider's MapcInitComplete. |
|
119 * |
|
120 */ |
|
121 void testMapcInitComplete(); |
|
122 |
|
123 private: |
|
124 /** |
|
125 * Own. |
|
126 */ |
|
127 SatAppPlayToneProvider *mPlayTone; |
|
128 |
|
129 }; |
|
130 |
|
131 #endif // UT_SATAPPPLAYTONEPROVIDER_H |