|
1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 /* |
|
18 ----------------------------------------------------------------------------- |
|
19 This file has been generated with EUnit Pro |
|
20 http://www.sysopendigia.com/qualitykit |
|
21 ----------------------------------------------------------------------------- |
|
22 */ |
|
23 #include <EUnitMacros.h> |
|
24 #include <EUnitDecorators.h> |
|
25 #include <avkon.hrh> |
|
26 #include "tphonecmdparamcallheaderdata.h" |
|
27 #include "ut_tphonecmdparamcallheaderdata.h" |
|
28 |
|
29 // - Construction ----------------------------------------------------------- |
|
30 UT_TPhoneCmdParamCallHeaderData* UT_TPhoneCmdParamCallHeaderData::NewL() |
|
31 { |
|
32 UT_TPhoneCmdParamCallHeaderData* self = UT_TPhoneCmdParamCallHeaderData::NewLC(); |
|
33 CleanupStack::Pop( self ); |
|
34 return self; |
|
35 } |
|
36 |
|
37 UT_TPhoneCmdParamCallHeaderData* UT_TPhoneCmdParamCallHeaderData::NewLC() |
|
38 { |
|
39 UT_TPhoneCmdParamCallHeaderData* self = new( ELeave ) UT_TPhoneCmdParamCallHeaderData(); |
|
40 CleanupStack::PushL( self ); |
|
41 self->ConstructL(); |
|
42 return self; |
|
43 } |
|
44 |
|
45 UT_TPhoneCmdParamCallHeaderData::~UT_TPhoneCmdParamCallHeaderData() |
|
46 { |
|
47 } |
|
48 |
|
49 UT_TPhoneCmdParamCallHeaderData::UT_TPhoneCmdParamCallHeaderData() |
|
50 { |
|
51 } |
|
52 |
|
53 void UT_TPhoneCmdParamCallHeaderData::ConstructL() |
|
54 { |
|
55 CEUnitTestSuiteClass::ConstructL(); |
|
56 } |
|
57 |
|
58 // - Test methods ----------------------------------------------------------- |
|
59 void UT_TPhoneCmdParamCallHeaderData::SetupL( ) |
|
60 { |
|
61 } |
|
62 |
|
63 |
|
64 void UT_TPhoneCmdParamCallHeaderData::Teardown( ) |
|
65 { |
|
66 } |
|
67 |
|
68 void UT_TPhoneCmdParamCallHeaderData::UT_TPhoneCmdParamCallHeaderData_LeaveCleanup () |
|
69 { |
|
70 TPhoneCmdParamCallHeaderData data; |
|
71 data.SetLabelText(_L("Test3")); |
|
72 TRAP_IGNORE(LeaveFunctionL ()); |
|
73 } |
|
74 |
|
75 void UT_TPhoneCmdParamCallHeaderData::LeaveFunctionL () |
|
76 { |
|
77 TPhoneCmdParamCallHeaderData data; |
|
78 data.SetLabelText(_L("Test2")); |
|
79 User::Leave(KErrGeneral); |
|
80 } |
|
81 |
|
82 // - EUnit test table ------------------------------------------------------- |
|
83 EUNIT_BEGIN_TEST_TABLE( |
|
84 UT_TPhoneCmdParamCallHeaderData, |
|
85 "EUnit - Phone - TPhoneCmdParamCallHeaderData", |
|
86 "UNIT" ) |
|
87 |
|
88 EUNIT_TEST( |
|
89 "Test leave cleanup", |
|
90 "UT_TPhoneCmdParamCallHeaderData", |
|
91 "Test leave cleanup", |
|
92 "FUNCTIONALITY", |
|
93 SetupL, UT_TPhoneCmdParamCallHeaderData_LeaveCleanup, Teardown) |
|
94 |
|
95 EUNIT_END_TEST_TABLE |