|
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: |
|
15 * |
|
16 */ |
|
17 #ifndef TESTAFSTORAGEPROXY_H |
|
18 #define TESTAFSTORAGEPROXY_H |
|
19 |
|
20 #include <QObject> |
|
21 #include <QPixmap> |
|
22 |
|
23 class AfStorageProxy; |
|
24 |
|
25 class TestAfStorageProxy : public QObject |
|
26 { |
|
27 Q_OBJECT |
|
28 |
|
29 private slots: |
|
30 void init(); |
|
31 void cleanup(); |
|
32 |
|
33 // void testConstructorThrowsWhenStorageConstructionLeaves(); |
|
34 // void testMethodsReturnFalseInCaseOfErrorsInStorage(); |
|
35 |
|
36 void testSaveActivityDataSerialization(); |
|
37 void testSaveActivityFlags(); |
|
38 void testSaveActivityScreenshotHandle(); |
|
39 |
|
40 void testDeprecatedAddAndUpdateMethods(); |
|
41 |
|
42 void testRemoveActivity(); |
|
43 void testRemoveApplicationActivities(); |
|
44 void testWaitActivity(); |
|
45 void testLaunchActivity(); |
|
46 void testGetThumbnail(); |
|
47 void testNotifyDataChange(); |
|
48 void testActivities(); |
|
49 void testApplicationActivities(); |
|
50 void testActivityData(); |
|
51 void testActivityMetaData(); |
|
52 |
|
53 private: |
|
54 QPixmap generateNonNullScreenshot(); |
|
55 |
|
56 private: |
|
57 AfStorageProxy *mProxy; |
|
58 }; |
|
59 |
|
60 #endif // TESTAFSTORAGEPROXY_H |