|
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: Unit test for satappmainhandler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <hbmainwindow.h> |
|
20 #include "ut_satappmainhandler.h" |
|
21 //test class |
|
22 #include "satappmainhandler.h" |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // Ut_SatAppMainHandler::Ut_SatAppMainHandler |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 Ut_SatAppMainHandler::Ut_SatAppMainHandler(QObject *parent):QObject(parent) |
|
29 { |
|
30 qDebug("Ut_SatAppMainHandler::Ut_SatAppMainHandler >"); |
|
31 qDebug("Ut_SatAppMainHandler::Ut_SatAppMainHandler <"); |
|
32 } |
|
33 |
|
34 // ----------------------------------------------------------------------------- |
|
35 // Ut_SatAppMainHandler::~Ut_SatAppMainHandler |
|
36 // ----------------------------------------------------------------------------- |
|
37 // |
|
38 Ut_SatAppMainHandler::~Ut_SatAppMainHandler() |
|
39 { |
|
40 qDebug("Ut_SatAppMainHandler::~Ut_SatAppMainHandler >"); |
|
41 qDebug("Ut_SatAppMainHandler::~Ut_SatAppMainHandler <"); |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // Ut_SatAppMainHandler::initTestCase |
|
46 // QTestLib cleanup method, called after the last testfunction . |
|
47 // ----------------------------------------------------------------------------- |
|
48 void Ut_SatAppMainHandler::initTestCase() |
|
49 { |
|
50 qDebug("Ut_SatAppMainHandler::initTestCase >"); |
|
51 qDebug("Ut_SatAppMainHandler::initTestCase <"); |
|
52 } |
|
53 |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // Ut_SatAppMainHandler::cleanupTestCase |
|
57 // |
|
58 // Connects to test object signal and verifies received data. |
|
59 // ----------------------------------------------------------------------------- |
|
60 void Ut_SatAppMainHandler::cleanupTestCase() |
|
61 { |
|
62 qDebug("Ut_SatAppMainHandler::cleanupTestCase >"); |
|
63 if (mMainHandler) { |
|
64 qDebug("Ut_SatAppMainHandler::cleanupTestCase delete mMainHandler..."); |
|
65 delete mMainHandler; |
|
66 mMainHandler = 0; |
|
67 } |
|
68 qDebug("Ut_SatAppMainHandler::cleanupTestCase <"); |
|
69 } |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // Ut_SatAppMainHandler::testProfileState |
|
73 // |
|
74 // Connects to test object signal and verifies received data. |
|
75 // ----------------------------------------------------------------------------- |
|
76 void Ut_SatAppMainHandler::testCreateMainHandler() |
|
77 { |
|
78 qDebug("Ut_SatAppMainHandler::testProfileState >"); |
|
79 HbMainWindow* window = new HbMainWindow(); |
|
80 QVERIFY(window); |
|
81 mMainHandler = new SatAppMainHandler(*window); |
|
82 QVERIFY(mMainHandler); |
|
83 qDebug("Ut_SatAppMainHandler::testProfileState <"); |
|
84 } |
|
85 |
|
86 // End of file |