38
|
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 declaration for ConvergedMessageUtils
|
|
15 |
*/
|
|
16 |
|
|
17 |
#ifndef TEST_MMS_PLUGIN_H
|
|
18 |
#define TEST_MMS_PLUGIN_H
|
|
19 |
|
|
20 |
#ifdef BUILD_TEST_DLL
|
|
21 |
#define TEST_EXPORT Q_DECL_EXPORT
|
|
22 |
#else
|
|
23 |
#define TEST_EXPORT Q_DECL_IMPORT
|
|
24 |
#endif
|
|
25 |
|
|
26 |
#include <QObject>
|
|
27 |
#include <QSignalSpy>
|
|
28 |
#include <e32const.h>
|
|
29 |
|
|
30 |
//Forward Declarations
|
|
31 |
class UniEditorMmsPlugin;
|
|
32 |
class ConvergedMessage;
|
|
33 |
class MmsTestBed;
|
|
34 |
|
|
35 |
//Main Tets Class Declaration
|
|
36 |
class TEST_EXPORT TestConvergedMessageUtils: public QObject
|
|
37 |
{
|
|
38 |
Q_OBJECT
|
|
39 |
|
|
40 |
private slots:
|
|
41 |
|
|
42 |
/**
|
|
43 |
* Initialises the whole Test
|
|
44 |
**/
|
|
45 |
void initTestCase();//called before the first testfunction is executed.
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Initialises each Test Case
|
|
49 |
**/
|
|
50 |
void init();//called before each testfunction is executed.
|
|
51 |
|
|
52 |
/**
|
|
53 |
* Creates a MMS messsage
|
|
54 |
**/
|
|
55 |
void createMMS();
|
|
56 |
|
|
57 |
/**
|
|
58 |
* Tests the MMS message
|
|
59 |
**/
|
|
60 |
void testMMS();
|
|
61 |
|
|
62 |
/**
|
|
63 |
* Test Methods of ConvergedMessageId which were not part of the tests above
|
|
64 |
**/
|
|
65 |
void testConvergedMessageIdUnusedMethods();
|
|
66 |
|
|
67 |
|
|
68 |
/**
|
|
69 |
* Test Methods of ConvergedMessageAttachment which were not part of the tests above
|
|
70 |
**/
|
|
71 |
void testConvergedMessageAttachmentUnusedMethods();
|
|
72 |
|
|
73 |
/**
|
|
74 |
* Cleans up each Test Case
|
|
75 |
**/
|
|
76 |
void cleanup();//called after every testfunction.
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Cleans up the whole Test Case
|
|
80 |
**/
|
|
81 |
void cleanupTestCase();//called after the last testfunction was executed.
|
|
82 |
|
|
83 |
private: //Data
|
|
84 |
|
|
85 |
/**
|
|
86 |
* msgPlugin - MMS Message Plug-in
|
|
87 |
**/
|
|
88 |
UniEditorMmsPlugin* msgPlugin;
|
|
89 |
|
|
90 |
/**
|
|
91 |
* mmstestbed - MMS Message Simulator
|
|
92 |
**/
|
|
93 |
MmsTestBed* mmstestbed;
|
|
94 |
|
|
95 |
/**
|
|
96 |
* spy_draft - Signal Spy for Draft Folder
|
|
97 |
**/
|
|
98 |
QSignalSpy* spy_draft;
|
|
99 |
|
|
100 |
/**
|
|
101 |
* mmsMsgId - The MMS message Id
|
|
102 |
**/
|
|
103 |
long int mmsMsgId;
|
|
104 |
};
|
|
105 |
#endif //TEST_MMS_PLUGIN_H
|