90
|
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: Tests for hsmenuclientplugin class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef T_HSMMENUCLIENTPLUGINTEST_H
|
|
19 |
#define T_HSMMENUCLIENTPLUGINTEST_H
|
|
20 |
|
|
21 |
#include <QtTest/QtTest>
|
|
22 |
#include <HbMainWindow>
|
|
23 |
|
|
24 |
#ifdef Q_OS_SYMBIAN
|
|
25 |
#include <e32base.h>
|
|
26 |
#endif//Q_OS_SYMBIAN
|
|
27 |
|
|
28 |
#include "caservice_p.h" //mock
|
|
29 |
/**
|
|
30 |
* @test Test class for homescreen::hsutils modules.
|
|
31 |
*/
|
|
32 |
class HsMenuClientPluginTest : public QObject
|
|
33 |
{
|
|
34 |
Q_OBJECT
|
|
35 |
|
|
36 |
private slots:
|
|
37 |
|
|
38 |
void initTestCase();
|
|
39 |
void init();
|
|
40 |
|
|
41 |
void testCreateEntry();
|
|
42 |
void testCreateLocalizedEntry();
|
|
43 |
void testUpdateEntry();
|
|
44 |
void testRemoveEntry();
|
|
45 |
void testListEntry();
|
|
46 |
|
|
47 |
|
|
48 |
/**
|
|
49 |
* cleanup
|
|
50 |
*/
|
|
51 |
void cleanupTestCase();
|
|
52 |
void cleanup();
|
|
53 |
|
|
54 |
private:
|
|
55 |
CaServicePrivate *mCaServicePrivateMock;
|
|
56 |
|
|
57 |
};
|
|
58 |
|
|
59 |
#endif //T_HSMMENUCLIENTPLUGINTEST_H
|