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 |
|
18 #ifndef UNITTEST_NOTESEDITOR_H |
|
19 #define UNITTEST_NOTESEDITOR_H |
|
20 |
|
21 // System includes |
|
22 #include <QObject> |
|
23 |
|
24 // Forward declarations. |
|
25 class NotesEditor; |
|
26 |
|
27 class TestNotesEditor : public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 TestNotesEditor(); |
|
33 virtual ~TestNotesEditor(); |
|
34 |
|
35 private slots: |
|
36 // Test case setup. |
|
37 void init(); |
|
38 void cleanup(); |
|
39 |
|
40 // Test cases go here. |
|
41 void testConstructionWithoutAgendaUtil(); |
|
42 void testConstructionWithAgendaUtil(); |
|
43 void testDestruction(); |
|
44 void testEditingNoteWithText(); |
|
45 void testEditingNoteWithFileHandle(); |
|
46 void testEditingNoteWithAgendaEntry(); |
|
47 void testEditingNoteWithId(); |
|
48 void testEditingTodoWithFileHandle(); |
|
49 void testEditingTodoWithAgendaEntry(); |
|
50 void testEditingTodoWithId(); |
|
51 void testCreationOfNote(); |
|
52 void testCreationofTodo(); |
|
53 void testClosingOfNotesEditorWithSave(); |
|
54 void testClosingOfNotesEditorWithoutSave(); |
|
55 void testClosingOfTodoEditorWithSave(); |
|
56 void testClosingOfTodoEditorWithoutSave(); |
|
57 |
|
58 private: |
|
59 NotesEditor *mEditor; |
|
60 }; |
|
61 |
|
62 #endif // UNITTEST_NOTESEDITOR_H |
|
63 |
|
64 // End of file --Don't remove this. |
|