90
|
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: Main test class for hsHomeScreenStateProvider library.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include "t_hsmenuworkerstateplugin.h"
|
|
19 |
#include "hsaddtohomescreenstate.h"
|
|
20 |
#include "hsmenuworkerstate.h"
|
|
21 |
#include "hsmenuevent.h"
|
|
22 |
#include "hsmenueventfactory.h"
|
|
23 |
#include "hsmenueventtransition.h"
|
|
24 |
|
|
25 |
|
|
26 |
// ---------------------------------------------------------------------------
|
97
|
27 |
//
|
90
|
28 |
// ---------------------------------------------------------------------------
|
|
29 |
//
|
|
30 |
void MenuStatesTest::MenuWorkerState_construction()
|
|
31 |
{
|
|
32 |
#ifdef Q_OS_SYMBIAN
|
|
33 |
#ifdef UT_MEMORY_CHECK
|
|
34 |
__UHEAP_MARK;
|
|
35 |
#endif//UT_MEMORY_CHECK
|
|
36 |
#endif//Q_OS_SYMBIAN
|
|
37 |
{
|
|
38 |
HsMenuWorkerState workerStateS;
|
|
39 |
QVERIFY(workerStateS.parent() == 0);
|
|
40 |
QVERIFY(workerStateS.objectName() == "homescreen.nokia.com/state/MenuWorkerState");
|
|
41 |
|
|
42 |
HsMenuWorkerState *workerStateH0 = new HsMenuWorkerState();
|
|
43 |
QVERIFY(workerStateH0->parent() == 0);
|
|
44 |
QVERIFY(workerStateH0->objectName() == "homescreen.nokia.com/state/MenuWorkerState");
|
|
45 |
|
|
46 |
HsMenuWorkerState *workerStateH1 = new HsMenuWorkerState(workerStateH0);
|
|
47 |
QVERIFY(workerStateH1->parent() == workerStateH0);
|
|
48 |
|
|
49 |
|
|
50 |
delete workerStateH1;
|
|
51 |
delete workerStateH0;
|
|
52 |
}
|
|
53 |
#ifdef Q_OS_SYMBIAN
|
|
54 |
#ifdef UT_MEMORY_CHECK
|
|
55 |
__UHEAP_MARKEND;
|
|
56 |
#endif//UT_MEMORY_CHECK
|
|
57 |
#endif//Q_OS_SYMBIAN
|
|
58 |
}
|
|
59 |
|