|
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: CommandHandlerShowViaUPnP unit test cases |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __t_cglxcommandhandlershowviaupnp_H__ |
|
22 #define __t_cglxcommandhandlershowviaupnp_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuite.h> |
|
26 #include <digia/eunit/eunitdecorators.h> |
|
27 #include <digia/eunit/ceunittestsuiteclass.h> |
|
28 |
|
29 |
|
30 #include "glxcommandhandlershowviaupnp.h" |
|
31 //#include <mglxmedialistowner.h> |
|
32 |
|
33 #include <mglxmedialistprovider.h> |
|
34 #include <mpxcollectionpath.h> |
|
35 |
|
36 // INTERNAL INCLUDES |
|
37 |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 class CGlxUpnpRenderer; |
|
41 class MGlxMediaList; |
|
42 class _CGlxTestMediaList; |
|
43 |
|
44 // CLASS DEFINITION |
|
45 /** |
|
46 * TODO Auto-generated EUnit test suite |
|
47 * |
|
48 */ |
|
49 NONSHARABLE_CLASS( t_cglxcommandhandlershowviaupnp ) |
|
50 : public CEUnitTestSuiteClass ,public MGlxMediaListProvider//public MGlxMediaListOwner |
|
51 { |
|
52 |
|
53 |
|
54 public: // Constructors and destructors |
|
55 |
|
56 /** |
|
57 * Two phase construction |
|
58 */ |
|
59 static t_cglxcommandhandlershowviaupnp* NewL(); |
|
60 static t_cglxcommandhandlershowviaupnp* NewLC(); |
|
61 /** |
|
62 * Destructor |
|
63 */ |
|
64 ~t_cglxcommandhandlershowviaupnp(); |
|
65 |
|
66 private: // Constructors and destructors |
|
67 |
|
68 t_cglxcommandhandlershowviaupnp(); |
|
69 void ConstructL(); |
|
70 |
|
71 public: |
|
72 |
|
73 MGlxMediaList& MediaList(); |
|
74 |
|
75 private: // New methods |
|
76 |
|
77 void SetupL(); |
|
78 |
|
79 void Teardown(); |
|
80 |
|
81 void T_CGlxCommandHandlerShowViaUpnpL(); |
|
82 |
|
83 void SetupL1(); |
|
84 |
|
85 //Test Add upnp command |
|
86 |
|
87 void T_AddUPnPCommandL_start(); |
|
88 |
|
89 void T_AddUPnPCommandL_stop(); |
|
90 |
|
91 void T_AddUPnPCommandL_NULL(); |
|
92 |
|
93 void T_AddUPnPCommandL_Invalid(); |
|
94 |
|
95 //Test DoIsDisabled - Home Network Not Available |
|
96 |
|
97 void T_DoIsDisabled_Show(); |
|
98 |
|
99 void T_DoIsDisabled_Stop(); |
|
100 |
|
101 void T_DoIsDisabled_NULL(); |
|
102 |
|
103 void T_DoIsDisabled_Invalid(); |
|
104 |
|
105 //Test DoIsDisabled - Home Network |
|
106 |
|
107 void T_DoIsDisabled_Show_Available(); |
|
108 |
|
109 void T_DoIsDisabled_Invalid_Available(); |
|
110 |
|
111 void T_DoIsDisabled_NULL_Available(); |
|
112 |
|
113 void T_DoIsDisabled_Stop_Available(); |
|
114 |
|
115 //Test DoExecuteL |
|
116 |
|
117 void T_DoExecuteL_Show(); |
|
118 |
|
119 void T_DoExecuteL_Stop(); |
|
120 |
|
121 void T_DoExecuteL_NULL(); |
|
122 |
|
123 void T_DoExecuteL_Invalid(); |
|
124 |
|
125 |
|
126 private: // Data |
|
127 |
|
128 |
|
129 EUNIT_DECLARE_TEST_TABLE; |
|
130 |
|
131 private: |
|
132 CGlxCommandHandlerShowViaUpnp* iCommandShowUpnp; |
|
133 |
|
134 |
|
135 _CGlxTestMediaList* iList; |
|
136 |
|
137 }; |
|
138 |
|
139 #endif // __t_cglxcommandhandlershowviaupnp_H__ |
|
140 |
|
141 // End of file |