|
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: AIW Service Handler stub implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __t_CGlxAiwServiceHandler_H__ |
|
22 #define __t_CGlxAiwServiceHandler_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <CEUnitTestSuiteClass.h> |
|
26 #include <EUnitDecorators.h> |
|
27 #include <mglxmedialistprovider.h> |
|
28 #include <EIKMOBS.H> |
|
29 |
|
30 // INTERNAL INCLUDES |
|
31 |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class CGlxAiwServiceHandler; |
|
35 |
|
36 // CLASS DEFINITION |
|
37 /** |
|
38 * TODO Auto-generated EUnit test suite |
|
39 * |
|
40 */ |
|
41 NONSHARABLE_CLASS( t_CGlxAiwServiceHandler ) |
|
42 : public CEUnitTestSuiteClass, public MEikMenuObserver |
|
43 { |
|
44 public: // Constructors and destructors |
|
45 |
|
46 /** |
|
47 * Two phase construction |
|
48 */ |
|
49 static t_CGlxAiwServiceHandler* NewL(); |
|
50 static t_CGlxAiwServiceHandler* NewLC(); |
|
51 /** |
|
52 * Destructor |
|
53 */ |
|
54 ~t_CGlxAiwServiceHandler(); |
|
55 |
|
56 private: // Constructors and destructors |
|
57 |
|
58 t_CGlxAiwServiceHandler(); |
|
59 void ConstructL(); |
|
60 |
|
61 private: // From MEikMenuObserver |
|
62 void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis); |
|
63 void ProcessCommandL(TInt aCommandId); |
|
64 |
|
65 private: // New methods |
|
66 |
|
67 void SetupL(); |
|
68 |
|
69 void Teardown(); |
|
70 |
|
71 void TestConstructionL( ); |
|
72 |
|
73 void OneImageUniqueParamsL(); |
|
74 |
|
75 void OneImageDuplicateParamsL(); |
|
76 |
|
77 void TwoItemsUniqueParamsL(); |
|
78 |
|
79 void TwoItemsDuplicateParamsL(); |
|
80 |
|
81 private: // Data |
|
82 |
|
83 CGlxAiwServiceHandler* iAiwServiceHandler; |
|
84 |
|
85 EUNIT_DECLARE_TEST_TABLE; |
|
86 |
|
87 }; |
|
88 |
|
89 #endif // __t_CGlxAiwServiceHandler_H__ |
|
90 |
|
91 // End of file |