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 UNITTEST_CXEFILENAMEGENERATORSYMBIAN_H |
|
18 #define UNITTEST_CXEFILENAMEGENERATORSYMBIAN_H |
|
19 |
|
20 #include <QObject> |
|
21 |
|
22 #include "cxenamespace.h" |
|
23 |
|
24 class CxeFilenameGeneratorSymbian; |
|
25 class CxeFakeSettings; |
|
26 |
|
27 class UnitTestCxeFilenameGeneratorSymbian : public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 UnitTestCxeFilenameGeneratorSymbian(); |
|
33 ~UnitTestCxeFilenameGeneratorSymbian(); |
|
34 |
|
35 private slots: |
|
36 void init(); |
|
37 void cleanup(); |
|
38 |
|
39 void testStartNewImageFilenameSequence(); |
|
40 void testNextImageFilenameInSequence(); |
|
41 void testGenerateFilename(); |
|
42 |
|
43 private: |
|
44 // Helper methods for test cases |
|
45 QString generateImageFileName(int counter); |
|
46 QString generateSequenceImageFileName(int counter, int burstIndex); |
|
47 QString removeDrive(const QString &filename); |
|
48 |
|
49 private: |
|
50 CxeFilenameGeneratorSymbian *mFileNameGenerator; // This will be recreated for each test |
|
51 CxeFakeSettings *mFakeSettings; // This will be recreated for each test |
|
52 Cxe::CameraMode mMode; |
|
53 }; |
|
54 |
|
55 #endif // UNITTEST_CXEFILENAMEGENERATORSYMBIAN_H |
|