|
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: tester for methods in TestMPXVideoPlaybackFileDetailsWidget |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 #ifndef __TESTMPXVIDEOPLAYBACKFILEDETAILSWIDGET_H__ |
|
21 #define __TESTMPXVIDEOPLAYBACKFILEDETAILSWIDGET_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <QtTest/QtTest> |
|
26 |
|
27 class QMPXVideoPlaybackFileDetailsWidget; |
|
28 class QMPXVideoPlaybackControlsController; |
|
29 |
|
30 class TestMPXVideoPlaybackFileDetailsWidget : public QObject |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 |
|
36 /** |
|
37 * will be called before each testfunction is executed. |
|
38 * |
|
39 */ |
|
40 void init(); |
|
41 |
|
42 /** |
|
43 * will be called after every testfunction. |
|
44 * |
|
45 */ |
|
46 void cleanup(); |
|
47 |
|
48 // test functions for the test framework |
|
49 private slots: |
|
50 |
|
51 // the order in which these testXX methods are declared is important |
|
52 // changing this order will affect the test results |
|
53 void testTitle(); |
|
54 void testDescription(); |
|
55 void testDuration(); |
|
56 void testDate(); |
|
57 void testLocation(); |
|
58 void testAuthor(); |
|
59 void testCopyright(); |
|
60 void testLanguage(); |
|
61 void testKeywords(); |
|
62 void testSize(); |
|
63 void testResolution(); |
|
64 void testFormat(); |
|
65 void testBitrate(); |
|
66 void testFolder(); |
|
67 |
|
68 private: |
|
69 void verifyResult( QString primaryText, |
|
70 bool exist, |
|
71 QString expectedSecondaryText = "", |
|
72 bool needToBeCompared = true ); |
|
73 |
|
74 signals: |
|
75 void commandSignal(int); |
|
76 |
|
77 private: |
|
78 QMPXVideoPlaybackFileDetailsWidget* mWidget; |
|
79 QMPXVideoPlaybackControlsController* mController; |
|
80 }; |
|
81 |
|
82 |
|
83 #endif // __TESTMPXVIDEOPLAYBACKFILEDETAILSWIDGET_H__ |
|
84 |
|
85 // End of file |