36
|
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 mpmpxplaybackframeworkwrapper
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef TESTMPMPXPLAYBACKFRAMEWORKWRAPPER_H
|
|
19 |
#define TESTMPMPXPLAYBACKFRAMEWORKWRAPPER_H
|
|
20 |
|
|
21 |
#include <QtTest/QtTest>
|
|
22 |
|
|
23 |
class MpMpxPlaybackFrameworkWrapper;
|
|
24 |
class MpMpxPlaybackFrameworkWrapperPrivate;
|
|
25 |
class CMPXMedia;
|
|
26 |
class MpPlaybackData;
|
43
|
27 |
class MpSongData;
|
36
|
28 |
|
|
29 |
class TestMpMpxPlaybackFrameworkWrapper : public QObject
|
|
30 |
{
|
|
31 |
Q_OBJECT
|
|
32 |
|
|
33 |
public:
|
|
34 |
|
|
35 |
TestMpMpxPlaybackFrameworkWrapper();
|
|
36 |
virtual ~TestMpMpxPlaybackFrameworkWrapper();
|
|
37 |
//test utility functions
|
|
38 |
void loadTestData(TInt aPos);
|
|
39 |
|
|
40 |
public slots:
|
|
41 |
|
|
42 |
void initTestCase();
|
|
43 |
void cleanupTestCase();
|
|
44 |
void init();
|
|
45 |
void cleanup();
|
|
46 |
|
|
47 |
private slots:
|
|
48 |
|
|
49 |
void testConstructor();
|
|
50 |
void testPlaybackData();
|
|
51 |
void testStop();
|
|
52 |
void testPlayPause();
|
|
53 |
void testSkipForward();
|
|
54 |
void testSkipBackward();
|
|
55 |
void testSetPosition();
|
|
56 |
void testSetShuffle();
|
|
57 |
void testSetRepeat();
|
|
58 |
void testHandlePlaybackMessage();
|
55
|
59 |
void testHandlePlaybackError();
|
36
|
60 |
void testHandleProperty();
|
|
61 |
void testHandleMedia();
|
43
|
62 |
void testHandleMediaDetails();
|
36
|
63 |
void testRetrieveSongDetails();
|
|
64 |
void testUpdateState();
|
|
65 |
void testForceStop();
|
|
66 |
void testSetBalance();
|
|
67 |
void testApplyAudioEffects();
|
|
68 |
void testApplyEqualizer();
|
|
69 |
void testPlay();
|
|
70 |
void testStartSeekForward();
|
|
71 |
void testStopSeeking();
|
|
72 |
void testStartSeekBackward();
|
|
73 |
void testHandleSubPlayerNamesL();
|
45
|
74 |
void testCloseCurrentPlayback();
|
47
|
75 |
void testPause();
|
|
76 |
void testGetMaxVolume();
|
|
77 |
void testGetVolume();
|
|
78 |
void testIncreaseVolume();
|
|
79 |
void testDecreaseVolume();
|
|
80 |
void testSetVolume();
|
|
81 |
void testGetMuteState();
|
|
82 |
void testMute();
|
|
83 |
void testUnmute();
|
36
|
84 |
|
|
85 |
private:
|
|
86 |
|
|
87 |
MpMpxPlaybackFrameworkWrapper *mTest;
|
|
88 |
MpMpxPlaybackFrameworkWrapperPrivate *mTestPrivate;
|
|
89 |
CMPXMedia *iMediaTestData;
|
43
|
90 |
MpSongData *mSongData;
|
36
|
91 |
|
|
92 |
};
|
|
93 |
|
|
94 |
#endif // TESTMPMPXPLAYBACKFRAMEWORKWRAPPER_H
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|