|
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: XIMP Framework Test Code |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "t_eunittemplate.h" |
|
19 #include "eunittools.h" |
|
20 #include <eunitmacros.h> |
|
21 |
|
22 |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // CONSTRUCTION |
|
27 T_EunitTemplate* T_EunitTemplate::NewL() |
|
28 { |
|
29 T_EunitTemplate* self = new( ELeave ) T_EunitTemplate; |
|
30 CleanupStack::PushL( self ); |
|
31 self->ConstructL(); |
|
32 CleanupStack::Pop( self ); |
|
33 |
|
34 return self; |
|
35 } |
|
36 |
|
37 |
|
38 T_EunitTemplate::~T_EunitTemplate() |
|
39 { |
|
40 } |
|
41 |
|
42 |
|
43 void T_EunitTemplate::ConstructL() |
|
44 { |
|
45 CEUnitTestSuiteClass::ConstructL(); |
|
46 } |
|
47 |
|
48 |
|
49 T_EunitTemplate::T_EunitTemplate() |
|
50 { |
|
51 } |
|
52 |
|
53 |
|
54 |
|
55 // =========================================================================== |
|
56 // TEST CASE SETUP & TEARDOWN METHODS |
|
57 // =========================================================================== |
|
58 // |
|
59 void T_EunitTemplate::Setup_L() |
|
60 { |
|
61 } |
|
62 |
|
63 |
|
64 |
|
65 void T_EunitTemplate::Teardown() |
|
66 { |
|
67 } |
|
68 |
|
69 |
|
70 |
|
71 // =========================================================================== |
|
72 // TODO: Test case description & grouping |
|
73 // =========================================================================== |
|
74 // |
|
75 void T_EunitTemplate::TestSomething_L() |
|
76 { |
|
77 EUNIT_ASSERT( EFalse ); |
|
78 } |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 // =========================================================================== |
|
84 // TEST CASE TABLE |
|
85 // =========================================================================== |
|
86 // |
|
87 EUNIT_BEGIN_TEST_TABLE( |
|
88 T_EunitTemplate, |
|
89 "Add test suite description here.", |
|
90 "MODULE" ) |
|
91 |
|
92 PRFW_NOT_DECORATED_TEST( |
|
93 "Empty test skeleton", |
|
94 "Add tested class name here", |
|
95 "Add tested function names here", |
|
96 "FUNCTIONALITY ERRORHANDLING BOUNDARY", |
|
97 Setup_L, |
|
98 TestSomething_L, |
|
99 Teardown ) |
|
100 |
|
101 |
|
102 EUNIT_END_TEST_TABLE |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 // =========================================================================== |
|
109 // TEST SUITE CONSTRUCTION |
|
110 // =========================================================================== |
|
111 // |
|
112 EXPORT_C MEUnitTest* CreateTestSuiteL() |
|
113 { |
|
114 return T_EunitTemplate::NewL(); |
|
115 } |
|
116 |
|
117 |
|
118 // end of file |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 |