activityfw/activityserviceplugin/tsrc/unittest_applicationluncher/inc/unittest_applicationluncher.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 |
|
18 #include <QObject> |
|
19 |
|
20 #include <W32STD.H> |
|
21 |
|
22 #include <QUrl> |
|
23 |
|
24 class AfLauncher; |
|
25 |
|
26 class TestApplicationLuncher : public QObject |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 private slots: |
|
31 void initTestCase(); |
|
32 void cleanupTestCase(); |
|
33 |
|
34 void testIsRunning(); |
|
35 void testStartApp(); |
|
36 void testbringToForeground(); |
|
37 |
|
38 void testLaunchActivity_data(); |
|
39 void testLaunchActivity(); |
|
40 |
|
41 void testGracefulHandlingOfInvalidUid(); |
|
42 void testGracefulHandlingOfCorruptedApplication(); |
|
43 |
|
44 private: |
|
45 bool sendToBackground(const TUid &uid); |
|
46 TUid getForegroundAppUid(); |
|
47 QUrl buildUri(const TUid &uid, const QString &activityName); |
|
48 |
|
49 private: |
|
50 RWsSession mWsSession; |
|
51 |
|
52 }; |