1 /* |
|
2 * Copyright (c) 2002 - 2007 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: Test PslnFWBaseContainer.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // [INCLUDE FILES] |
|
20 #include "testdompslnframework.h" |
|
21 #include "testdompslnfwbc.h" |
|
22 // ============================ MEMBER FUNCTIONS =============================== |
|
23 |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // Ctestdompslnframework::TestPlsnFWBCConstructL |
|
27 // ----------------------------------------------------------------------------- |
|
28 // |
|
29 TInt CTestDOMPSLNFramework::TestPlsnFWBCConstructL( CStifItemParser& /*aItem*/) |
|
30 { |
|
31 // Print to UI |
|
32 _LIT( Ktestdompslnframework, "testdompslnframework" ); |
|
33 _LIT( KTestPlsnFWBCConstructL, "In TestPlsnFWBCConstructL" ); |
|
34 TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBCConstructL ); |
|
35 // Print to log file |
|
36 iLog->Log( KTestPlsnFWBCConstructL ); |
|
37 |
|
38 TRect rect( 0, 0, 0, 0 ); |
|
39 iFWBContainer->ConstructL( rect ); |
|
40 STIF_ASSERT_NOT_NULL( iFWBContainer ); |
|
41 |
|
42 return KErrNone; |
|
43 } |
|
44 |
|
45 |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // Ctestdompslnframework::TestPlsnFWBCBaseConstructL |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 TInt CTestDOMPSLNFramework::TestPlsnFWBCBaseConstructL( CStifItemParser& /*aItem*/) |
|
52 { |
|
53 // Print to UI |
|
54 _LIT( Ktestdompslnframework, "testdompslnframework" ); |
|
55 _LIT( KTestPlsnFWBCBaseConstructL, "In TestPlsnFWBCBaseConstructL" ); |
|
56 TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBCBaseConstructL ); |
|
57 // Print to log file |
|
58 iLog->Log( KTestPlsnFWBCBaseConstructL ); |
|
59 |
|
60 TRect rect( 0, 0, 0, 0 ); |
|
61 iFWBContainer->ConstructL( rect ); |
|
62 STIF_ASSERT_NOT_NULL( iFWBContainer ); |
|
63 |
|
64 return KErrNone; |
|
65 } |
|
66 |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // Ctestdompslnframework::TestPlsnFWBCCPslnFWBaseContainer |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 TInt CTestDOMPSLNFramework::TestPlsnFWBCCPslnFWBaseContainerL( CStifItemParser& /*aItem*/) |
|
73 { |
|
74 // Print to UI |
|
75 _LIT( Ktestdompslnframework, "testdompslnframework" ); |
|
76 _LIT( KTestPlsnFWBCCPslnFWBaseContainer, "In TestPlsnFWBCCPslnFWBaseContainer" ); |
|
77 TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBCCPslnFWBaseContainer ); |
|
78 // Print to log file |
|
79 iLog->Log( KTestPlsnFWBCCPslnFWBaseContainer ); |
|
80 |
|
81 TRect rect( 0, 0, 0, 0 ); |
|
82 iFWBContainer = new( ELeave ) CTestPslnFWBaseContainer; |
|
83 STIF_ASSERT_NOT_NULL( iFWBContainer ); |
|
84 |
|
85 return KErrNone; |
|
86 |
|
87 } |
|
88 |
|
89 |
|
90 // ----------------------------------------------------------------------------- |
|
91 // Ctestdompslnframework::TestPlsnFWBCDelete |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 TInt CTestDOMPSLNFramework::TestPlsnFWBCDelete( CStifItemParser& /*aItem*/) |
|
95 { |
|
96 // Print to UI |
|
97 _LIT( Ktestdompslnframework, "testdompslnframework" ); |
|
98 _LIT( KTestPlsnFWBCDelete, "In TestPlsnFWBCDelete" ); |
|
99 TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBCDelete ); |
|
100 // Print to log file |
|
101 iLog->Log( KTestPlsnFWBCDelete ); |
|
102 |
|
103 delete iFWBContainer; |
|
104 iFWBContainer = NULL; |
|
105 |
|
106 return KErrNone; |
|
107 } |
|
108 |
|
109 |
|
110 // ----------------------------------------------------------------------------- |
|
111 // Ctestdompslnframework::TestPlsnFWBCSetMiddleSoftkeyObserver |
|
112 // ----------------------------------------------------------------------------- |
|
113 // |
|
114 TInt CTestDOMPSLNFramework::TestPlsnFWBCSetMiddleSoftkeyObserverL( CStifItemParser& /*aItem*/) |
|
115 { |
|
116 // Print to UI |
|
117 _LIT( Ktestdompslnframework, "testdompslnframework" ); |
|
118 _LIT( KTestPlsnFWBCSetMiddleSoftkeyObserver, "In TestPlsnFWBCSetMiddleSoftkeyObserver" ); |
|
119 TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBCSetMiddleSoftkeyObserver ); |
|
120 // Print to log file |
|
121 iLog->Log( KTestPlsnFWBCSetMiddleSoftkeyObserver ); |
|
122 |
|
123 iFWBContainer->SetMiddleSoftkeyObserver( NULL ); |
|
124 |
|
125 return KErrNone; |
|
126 } |
|
127 |
|
128 |
|