equal
deleted
inserted
replaced
|
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: tester for methods in VideoSortFilterProxyModel |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __TESTHINTWIDGET_H__ |
|
19 #define __TESTHINTWIDGET_H__ |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <QtTest/QtTest> |
|
24 |
|
25 class VideoHintWidget; |
|
26 class VideoCollectionUiLoader; |
|
27 |
|
28 class TestHintWidget : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 TestHintWidget(); |
|
34 ~TestHintWidget(); |
|
35 |
|
36 void init(bool callInitialize); |
|
37 void cleanup(); |
|
38 |
|
39 // test functions for the test framework |
|
40 private slots: |
|
41 |
|
42 void testInitialize(); |
|
43 void testSetLevel(); |
|
44 void testActivate(); |
|
45 void testDeactivate(); |
|
46 void testUpdateUiComponents(); |
|
47 void testOrientationChangedSlot(); |
|
48 |
|
49 signals: |
|
50 |
|
51 /** |
|
52 * test signal |
|
53 */ |
|
54 void testSignal(Qt::Orientation); |
|
55 |
|
56 |
|
57 private: |
|
58 |
|
59 |
|
60 /** |
|
61 * object under test |
|
62 */ |
|
63 VideoHintWidget* mTestObject; |
|
64 |
|
65 /** |
|
66 * Ui loader |
|
67 */ |
|
68 VideoCollectionUiLoader* mUiLoader; |
|
69 |
|
70 }; |
|
71 |
|
72 |
|
73 #endif // __TESTLISTWIDGET_H__ |
|
74 |
|
75 // End of file |