|
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 /** |
|
19 * @file TE_EncrptStep.cpp |
|
20 * |
|
21 * This contains CTE_EncrptStep class which is |
|
22 * the base class for all the Encrpt test steps |
|
23 * |
|
24 */ |
|
25 #include "TE_EncrptStep.h" |
|
26 |
|
27 CTE_EncrptStep::CTE_EncrptStep() |
|
28 { |
|
29 } |
|
30 |
|
31 CTE_EncrptStep::~CTE_EncrptStep() |
|
32 { |
|
33 } |
|
34 |
|
35 void CTE_EncrptStep::ExpLogExtra(const TText8* aFile, TInt aLine, TInt aSeverity, |
|
36 TRefByValue<const TDesC> aFmt,...) |
|
37 { |
|
38 |
|
39 // Log to the suite's logger |
|
40 INFO_PRINTF5(_L("File: %S, line: %d, severity: %d, message: $S"), |
|
41 aFile, aLine, aSeverity, aFmt); |
|
42 |
|
43 } |
|
44 |
|
45 enum TVerdict CTE_EncrptStep::Test(TInt aResult) |
|
46 { |
|
47 |
|
48 if (!aResult) |
|
49 { |
|
50 INFO_PRINTF1(KEGeneric); |
|
51 SetTestStepResult(EFail); |
|
52 |
|
53 return TestStepResult(); |
|
54 } |
|
55 SetTestStepResult(EPass); |
|
56 |
|
57 return TestStepResult(); |
|
58 } |
|
59 |
|
60 |
|
61 void CTE_EncrptStep::Set(TGlobalDbIds* aGlobals) |
|
62 { UserSvr::DllSetTls(67338721,aGlobals); } |
|
63 |
|
64 TGlobalDbIds* CTE_EncrptStep::Get() |
|
65 { TGlobalDbIds * d=(TGlobalDbIds*)UserSvr::DllTls(67338721); return d; } |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |