1 /* |
|
2 * Copyright (c) 2009 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 #include "ut_spsbackuphelperperformer.h" |
|
19 #include <EUnitMacros.h> |
|
20 #include <EUnitDecorators.h> |
|
21 |
|
22 #include <spentry.h> |
|
23 #include <spproperty.h> |
|
24 #include "spsbackuphelperperformer.h" |
|
25 |
|
26 // - Construction ----------------------------------------------------------- |
|
27 |
|
28 Ut_CSpsBackupHelperPerformer* Ut_CSpsBackupHelperPerformer::NewL() |
|
29 { |
|
30 |
|
31 Ut_CSpsBackupHelperPerformer* self = new (ELeave) Ut_CSpsBackupHelperPerformer; |
|
32 CleanupStack::PushL(self); |
|
33 self->ConstructL(); |
|
34 CleanupStack::Pop(self); |
|
35 return self; |
|
36 } |
|
37 |
|
38 Ut_CSpsBackupHelperPerformer::~Ut_CSpsBackupHelperPerformer() |
|
39 { |
|
40 } |
|
41 |
|
42 Ut_CSpsBackupHelperPerformer::Ut_CSpsBackupHelperPerformer() |
|
43 { |
|
44 } |
|
45 |
|
46 void Ut_CSpsBackupHelperPerformer::ConstructL() |
|
47 { |
|
48 CEUnitTestSuiteClass::ConstructL(); |
|
49 } |
|
50 |
|
51 // - Test methods ----------------------------------------------------------- |
|
52 |
|
53 |
|
54 |
|
55 void Ut_CSpsBackupHelperPerformer::SetupL( ) |
|
56 { |
|
57 iPerformer = CSpsBackupHelperPerformer::NewL(); |
|
58 } |
|
59 |
|
60 |
|
61 void Ut_CSpsBackupHelperPerformer::Teardown( ) |
|
62 { |
|
63 delete iPerformer; |
|
64 iPerformer = NULL; |
|
65 } |
|
66 |
|
67 void Ut_CSpsBackupHelperPerformer::Ut_ConstructL() |
|
68 { |
|
69 // Do nothing |
|
70 } |
|
71 |
|
72 void Ut_CSpsBackupHelperPerformer::Ut_CSpsBackupHelperPerformer_PerformL() |
|
73 { |
|
74 iPerformer->PerformL(); |
|
75 } |
|
76 |
|
77 // - EUnit test table ------------------------------------------------------- |
|
78 |
|
79 EUNIT_BEGIN_TEST_TABLE( |
|
80 Ut_CSpsBackupHelperPerformer, |
|
81 "Add test suite description here.", |
|
82 "UNIT" ) |
|
83 |
|
84 EUNIT_TEST( |
|
85 "Construct - destruct", |
|
86 "CSPSettingsEngine", |
|
87 "Construct - destruct", |
|
88 "FUNCTIONALITY", |
|
89 SetupL, Ut_ConstructL, Teardown) |
|
90 |
|
91 EUNIT_TEST( |
|
92 "Test Perform", |
|
93 "CSPSettingsEngine", |
|
94 "Test Perform", |
|
95 "FUNCTIONALITY", |
|
96 SetupL, Ut_CSpsBackupHelperPerformer_PerformL, Teardown) |
|
97 |
|
98 EUNIT_END_TEST_TABLE |
|