mpviewplugins/mpplaybackviewplugin/tsrc/unittest_mpequalizerwidget/inc/unittest_mpequalizerwidget.h
equal
deleted
inserted
replaced
|
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: Unit test for mpequalizerwidget |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTMPEQUALIZERWIDGET_H |
|
19 #define TESTMPEQUALIZERWIDGET_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 |
|
23 class QTranslator; |
|
24 class MpEqualizerWidget; |
|
25 |
|
26 class TestMpEqualizerWidget: public QObject |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 |
|
32 TestMpEqualizerWidget(); |
|
33 virtual ~TestMpEqualizerWidget(); |
|
34 |
|
35 signals: |
|
36 |
|
37 public slots: |
|
38 void initTestCase(); |
|
39 void cleanupTestCase(); |
|
40 void init(); |
|
41 void cleanup(); |
|
42 |
|
43 private slots: |
|
44 void testInitialize(); |
|
45 void testPrepareDialog(); |
|
46 void testPresetSelected(); |
|
47 void testCancelSelected(); |
|
48 void testOkSelected(); |
|
49 void testGetLocalizedString(); |
|
50 |
|
51 private: |
|
52 |
|
53 MpEqualizerWidget *mTest; |
|
54 QTranslator *mMpTranslator; // Own |
|
55 |
|
56 }; |
|
57 |
|
58 #endif // TESTMPEQUALIZERWIDGET_H |
|
59 |
|
60 |
|
61 |
|
62 |