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: Unit test for mpequalizerwrapper |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTMPEQUALIZERWRAPPER_H |
|
19 #define TESTMPEQUALIZERWRAPPER_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 |
|
23 class MpEqualizerWrapper; |
|
24 class MpEqualizerWrapperPrivate; |
|
25 |
|
26 class TestMpEqualizerWrapper: public QObject |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 TestMpEqualizerWrapper(); |
|
32 virtual ~TestMpEqualizerWrapper(); |
|
33 |
|
34 signals: |
|
35 |
|
36 public slots: |
|
37 void initTestCase(); |
|
38 void cleanupTestCase(); |
|
39 void init(); |
|
40 void cleanup(); |
|
41 |
|
42 private slots: |
|
43 void testConstructor(); |
|
44 void testMapcInitComplete(); |
|
45 void testGetPresetId(); |
|
46 void testGetEngineIndexL(); |
|
47 void testApplyPreset(); |
|
48 void testActivePreset(); |
|
49 void testDisableEqualizer(); |
|
50 void testPresetNames(); |
|
51 |
|
52 private: |
|
53 |
|
54 MpEqualizerWrapper *mTest; |
|
55 MpEqualizerWrapperPrivate *mTestPrivate; |
|
56 |
|
57 QObject *qObject; |
|
58 |
|
59 }; |
|
60 |
|
61 #endif // TESTMPEQUALIZERWRAPPER_H |
|
62 |
|
63 |
|
64 |
|
65 |
|