homescreensrv_plat/activity_framework_api/tsrc/t_afactivation/inc/t_afactivation.h
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: |
|
15 * |
|
16 */ |
|
17 #ifndef TESTAFACTIVATION_H |
|
18 #define TESTAFACTIVATION_H |
|
19 |
|
20 #include <QObject> |
|
21 #include <QSharedPointer> |
|
22 |
|
23 #include "afstorageproxy.h" |
|
24 class AfActivation; |
|
25 |
|
26 class TestAfActivation : public QObject |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 TestAfActivation(); |
|
32 |
|
33 private slots: |
|
34 //QTest specific slots |
|
35 void init(); |
|
36 void cleanup(); |
|
37 |
|
38 //test functions |
|
39 void invokeActivationPublicInterface(); |
|
40 void invokeActivationPublicInterfaceCorrupt(); |
|
41 void testDefaultValuesAfterCreation(); |
|
42 void testSignalIsEmittedWhenActivityIsRequested(); |
|
43 void testValuesChangeWhenActivityIsRequested(); |
|
44 void testValuesChangeWhenActivityIsRequestedNoName(); |
|
45 void testChangingActivityInBackground(); |
|
46 |
|
47 private: |
|
48 AfStorageProxy* mServiceProvider; |
|
49 AfActivation *mActivation; |
|
50 QString mDefaultActivityName; |
|
51 }; |
|
52 |
|
53 #endif // TESTAFACTIVATION_H |