messagingapp/msgutils/unieditorplugins/unieditorsmsplugin/tsrc/testsmsgplugin/testsmsplugin.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 #ifndef TEST_SMS_PLUGIN_H |
|
18 #define TEST_SMS_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 <e32const.h> |
|
28 |
|
29 class UniEditorSmsPlugin; |
|
30 class ConvergedMessage; |
|
31 class TestMsg; |
|
32 |
|
33 class TEST_EXPORT TestSmsPlugin: public QObject |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 private slots: |
|
38 //called by frame work. |
|
39 void initTestCase();//called before the first testfunction is executed. |
|
40 void cleanupTestCase();//called after the last testfunction was executed. |
|
41 void init();//called before each testfunction is executed. |
|
42 void cleanup();//called after every testfunction. |
|
43 |
|
44 //test cases. |
|
45 void testSendReceiveSMS(); //test sending & Receiveig of sms |
|
46 |
|
47 private: |
|
48 void createAndSend(int type); |
|
49 void testReceived(int type); |
|
50 void validateMsg(const ConvergedMessage& message, const QString& serviceId); |
|
51 |
|
52 private: |
|
53 UniEditorSmsPlugin* msgPlugin; |
|
54 TestMsg *testMsg; |
|
55 int smsId; |
|
56 int mmsId; |
|
57 }; |
|
58 #endif //TEST_SMS_PLUGIN_H |
|