|
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: CGlxCommandHandlerMoreInfo unit test cases |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __T_GLXCOMMANDHANDLERMOREINFO_H__ |
|
22 #define __T_GLXCOMMANDHANDLERMOREINFO_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 #include <digia/eunit/eunitdecorators.h> |
|
27 |
|
28 #include <mglxcommandhandler.h> |
|
29 #include <glxcommandhandler.h> |
|
30 #include <mglxmedialistprovider.h> |
|
31 #include <glxlistdefs.h> |
|
32 |
|
33 // INTERNAL INCLUDES |
|
34 |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 class CGlxCommandHandlerMoreInfo; |
|
38 class _CGlxTestMediaList; |
|
39 class CGlxMedia; |
|
40 NONSHARABLE_CLASS( CGlxCommandHandlerMoreInfoTester): public CBase, |
|
41 public MGlxMediaListProvider |
|
42 { |
|
43 public: |
|
44 static CGlxCommandHandlerMoreInfoTester* NewL(); |
|
45 ~CGlxCommandHandlerMoreInfoTester(); |
|
46 |
|
47 TBool ExecuteL(TInt aCommand); |
|
48 |
|
49 void AddItemL(TInt aId, CGlxMedia* aMedia); |
|
50 |
|
51 |
|
52 public: // From MGlxMediaListProvider |
|
53 virtual MGlxMediaList& MediaList(); |
|
54 |
|
55 private: |
|
56 CGlxCommandHandlerMoreInfoTester(); |
|
57 void ConstructL(); |
|
58 |
|
59 private: |
|
60 CGlxCommandHandlerMoreInfo* iMoreInfoHandler; |
|
61 |
|
62 _CGlxTestMediaList* iMediaList; |
|
63 |
|
64 RPointerArray<CGlxCommandHandler> iCommandHandlerList; |
|
65 }; |
|
66 |
|
67 // CLASS DEFINITION |
|
68 /** |
|
69 * TODO Auto-generated EUnit test suite |
|
70 * |
|
71 */ |
|
72 NONSHARABLE_CLASS( t_glxcommandhandlermoreinfo ) |
|
73 : public CEUnitTestSuiteClass |
|
74 { |
|
75 public: // Constructors and destructors |
|
76 |
|
77 /** |
|
78 * Two phase construction |
|
79 */ |
|
80 static t_glxcommandhandlermoreinfo* NewL(); |
|
81 static t_glxcommandhandlermoreinfo* NewLC(); |
|
82 /** |
|
83 * Destructor |
|
84 */ |
|
85 ~t_glxcommandhandlermoreinfo(); |
|
86 |
|
87 private: // Constructors and destructors |
|
88 |
|
89 t_glxcommandhandlermoreinfo(); |
|
90 void ConstructL(); |
|
91 |
|
92 private: // New methods |
|
93 |
|
94 void SetupL(); |
|
95 |
|
96 void Teardown(); |
|
97 |
|
98 void T_TestL(); |
|
99 |
|
100 void T_TestExecutionL(); |
|
101 |
|
102 |
|
103 private: // Data |
|
104 CGlxCommandHandlerMoreInfoTester* iTester; |
|
105 |
|
106 EUNIT_DECLARE_TEST_TABLE; |
|
107 |
|
108 }; |
|
109 |
|
110 #endif // __T_GLXCOMMANDHANDLERMOREINFO_H__ |
|
111 |
|
112 // End of file |