35
|
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 mpdetailsview.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef UNITTEST_MPDETAILSVIEW_H_
|
|
19 |
#define UNITTEST_MPDETAILSVIEW_H_
|
|
20 |
|
|
21 |
#include <QtTest/QtTest>
|
|
22 |
#include <hbview.h>
|
|
23 |
#include <QNetworkReply>
|
|
24 |
#include <QNetworkAccessManager>
|
|
25 |
|
|
26 |
//Forward Declaration
|
|
27 |
class MpDetailsView;
|
|
28 |
class MpQueryManager;
|
|
29 |
|
|
30 |
|
|
31 |
class TestMpQueryManager : public QObject
|
|
32 |
{
|
|
33 |
Q_OBJECT
|
|
34 |
|
|
35 |
public:
|
|
36 |
|
|
37 |
TestMpQueryManager();
|
|
38 |
virtual ~TestMpQueryManager();
|
|
39 |
|
|
40 |
|
|
41 |
signals:
|
|
42 |
|
|
43 |
|
|
44 |
public slots:
|
|
45 |
void initTestCase();
|
|
46 |
void cleanupTestCase();
|
|
47 |
void init();
|
|
48 |
void cleanup();
|
|
49 |
|
|
50 |
private slots:
|
|
51 |
//Test Cases
|
45
|
52 |
//void testrecommendationSongs();
|
35
|
53 |
void testrecommendationArtists();
|
45
|
54 |
//void testrecommendationAlbumArtsLink();
|
36
|
55 |
|
35
|
56 |
private:
|
|
57 |
MpQueryManager *mTest;
|
|
58 |
|
|
59 |
};
|
|
60 |
|
|
61 |
#endif /* UNITTEST_MPDETAILSVIEW_H_ */
|