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 mpmpxpbframeworkwrapper |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTMPMPXPBFRAMEWORKWRAPPER_H |
|
19 #define TESTMPMPXPBFRAMEWORKWRAPPER_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 |
|
23 class MpMpxPbFrameworkWrapper; |
|
24 class MpMpxPbFrameworkWrapperPrivate; |
|
25 class CMPXMedia; |
|
26 class MpPlaybackData; |
|
27 |
|
28 class TestMpMpxPbFrameworkWrapper : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 |
|
34 TestMpMpxPbFrameworkWrapper(); |
|
35 virtual ~TestMpMpxPbFrameworkWrapper(); |
|
36 //test utility functions |
|
37 void loadTestData(TInt aPos); |
|
38 |
|
39 public slots: |
|
40 |
|
41 void initTestCase(); |
|
42 void cleanupTestCase(); |
|
43 void init(); |
|
44 void cleanup(); |
|
45 |
|
46 private slots: |
|
47 |
|
48 void testConstructor(); |
|
49 void testPlaybackData(); |
|
50 void testStop(); |
|
51 void testPlayPause(); |
|
52 void testSkipForward(); |
|
53 void testSkipBackward(); |
|
54 void testSetPosition(); |
|
55 void testSetShuffle(); |
|
56 void testSetRepeat(); |
|
57 void testHandlePlaybackMessage(); |
|
58 void testHandleProperty(); |
|
59 void testHandleMedia(); |
|
60 void testRetrieveSongDetails(); |
|
61 void testUpdateState(); |
|
62 void testForceStop(); |
|
63 |
|
64 private: |
|
65 |
|
66 MpMpxPbFrameworkWrapper *mTest; |
|
67 MpMpxPbFrameworkWrapperPrivate *mTestPrivate; |
|
68 CMPXMedia *iMediaTestData; |
|
69 |
|
70 }; |
|
71 |
|
72 #endif // TESTMPMPXPBFRAMEWORKWRAPPER_H |
|
73 |
|
74 |
|
75 |
|
76 |
|