|
1 /* |
|
2 * Copyright (c) 2004 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: EUnit unit test class for AiWsPlugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _UT_CAIWSPLUGINANIM_H |
|
20 #define _UT_CAIWSPLUGINANIM_H |
|
21 |
|
22 // System includes |
|
23 #include <e32base.h> |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 |
|
26 // User includes |
|
27 |
|
28 // Forward declarations |
|
29 class CAiWsPluginAnim; |
|
30 class CAnimGeneralFunctionsStub; |
|
31 class UT_AiWsPluginAnimTls; |
|
32 |
|
33 // Clas declaration |
|
34 NONSHARABLE_CLASS( UT_AiWsPluginAnim ) : public CEUnitTestSuiteClass |
|
35 { |
|
36 public: |
|
37 // Constructors and destructors |
|
38 |
|
39 /** |
|
40 * Two phase construction |
|
41 */ |
|
42 static UT_AiWsPluginAnim* NewL(); |
|
43 static UT_AiWsPluginAnim* NewLC(); |
|
44 /** |
|
45 * Destructor |
|
46 */ |
|
47 ~UT_AiWsPluginAnim(); |
|
48 |
|
49 private: |
|
50 // Constructors and destructors |
|
51 |
|
52 UT_AiWsPluginAnim(); |
|
53 void ConstructL(); |
|
54 |
|
55 private: |
|
56 // New methods |
|
57 |
|
58 void EmptySetup(); |
|
59 void SetupTlsL(); |
|
60 void SetupDependenciesL(); |
|
61 void SetupTestObjL(TBool aHasFocus); |
|
62 void SetupNoSliderL( TBool aHasFocus ); |
|
63 void SetupNoSliderL(); |
|
64 void SetupL(TBool aHasFocus); |
|
65 void SetupL(); |
|
66 void Teardown(); |
|
67 |
|
68 void T_ConstructL(TBool aHasFocus); |
|
69 void T_ConstructL(); |
|
70 void T_CAiWsPluginAnim_EmptyFunctionsL(); |
|
71 void T_CAiWsPluginAnim_FocusChangedL( TBool aFocus ); |
|
72 void T_CAiWsPluginAnim_FocusChangedL(); |
|
73 void T_CAiWsPluginAnim_OfferRawEventL(); |
|
74 |
|
75 private: |
|
76 // Data |
|
77 |
|
78 EUNIT_DECLARE_TEST_TABLE; |
|
79 |
|
80 CAiWsPluginAnim* iCAiWsPluginAnim; |
|
81 CAnimGeneralFunctionsStub* iAnimGeneralFunctions; |
|
82 UT_AiWsPluginAnimTls* iTls; |
|
83 TInt iFeatMgrCount; |
|
84 }; |
|
85 |
|
86 #endif // _UT_CAIWSPLUGINANIM_H |
|
87 |
|
88 // End of file |