|
1 /* |
|
2 * Copyright (c) 2006 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: Thumbnail saver for CommandHandler UPnP unit test case |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __T_CGLXTHUMBNAILSAVER_H__ |
|
22 #define __T_CGLXTHUMBNAILSAVER_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 #include <digia/eunit/eunitdecorators.h> |
|
27 |
|
28 // INTERNAL INCLUDES |
|
29 #include "glxupnpthumbnailsaver.h" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CGlxThumbnailSaver; |
|
33 |
|
34 // CLASS DEFINITION |
|
35 /** |
|
36 * TODO Auto-generated EUnit test suite |
|
37 * |
|
38 */ |
|
39 NONSHARABLE_CLASS( t_cglxthumbnailsaver ) |
|
40 : public CEUnitTestSuiteClass,public MGlxThumbnailSaveComplete |
|
41 { |
|
42 public: // Constructors and destructors |
|
43 |
|
44 /** |
|
45 * Two phase construction |
|
46 */ |
|
47 static t_cglxthumbnailsaver* NewL(); |
|
48 static t_cglxthumbnailsaver* NewLC(); |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 ~t_cglxthumbnailsaver(); |
|
53 |
|
54 private: // Constructors and destructors |
|
55 |
|
56 t_cglxthumbnailsaver(); |
|
57 void ConstructL(); |
|
58 |
|
59 private: // New methods |
|
60 |
|
61 void SetupL(); |
|
62 |
|
63 void Teardown(); |
|
64 |
|
65 void T_TestL(); |
|
66 |
|
67 void T_CreateVideoIconL(); |
|
68 void T_CreateVideoIconL_Cancel(); |
|
69 |
|
70 void T_CreateDefaultVideoIconL(); |
|
71 |
|
72 void SetupL_FillMemory(); |
|
73 |
|
74 |
|
75 //From MGlxThumbnailSaveComplete |
|
76 |
|
77 void HandleFileSaveCompleteL(const TDesC& aPath); |
|
78 |
|
79 |
|
80 private: // Data |
|
81 |
|
82 |
|
83 EUNIT_DECLARE_TEST_TABLE; |
|
84 |
|
85 CGlxThumbnailSaver* iThumbnailSaver; |
|
86 |
|
87 CFbsBitmap* iThumbnail; |
|
88 |
|
89 |
|
90 }; |
|
91 |
|
92 #endif // __T_CGLXTHUMBNAILSAVER_H__ |
|
93 |
|
94 // End of file |