equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-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 the License "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 * archivestep.cpp |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include <f32file.h> |
|
21 #include <test/testexecutelog.h> |
|
22 #include <apmstd.h> |
|
23 #include <caf/caf.h> |
|
24 #include "rightsDbStep.h" |
|
25 #include "rtarights.h" |
|
26 |
|
27 using namespace ReferenceTestAgent; |
|
28 |
|
29 CClearRightsDb::~CClearRightsDb() |
|
30 { |
|
31 } |
|
32 |
|
33 CClearRightsDb::CClearRightsDb(CRTAUtilsServer& aParent) : iParent(aParent) |
|
34 { |
|
35 SetTestStepName(KClearRightsDb); |
|
36 } |
|
37 |
|
38 |
|
39 TVerdict CClearRightsDb::doTestStepL() |
|
40 { |
|
41 SetTestStepResult(EFail); |
|
42 |
|
43 __UHEAP_MARK; |
|
44 |
|
45 INFO_PRINTF1(_L("Clearing Rights Database")); |
|
46 |
|
47 RRtaRights rightsServer; |
|
48 User::LeaveIfError(rightsServer.Connect()); |
|
49 CleanupClosePushL(rightsServer); |
|
50 |
|
51 rightsServer.ClearAllRightsL(); |
|
52 |
|
53 CleanupStack::PopAndDestroy(&rightsServer); |
|
54 |
|
55 SetTestStepResult(EPass); |
|
56 |
|
57 __UHEAP_MARKEND; |
|
58 |
|
59 return TestStepResult(); |
|
60 } |
|
61 |
|
62 |