1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This contains CTS_EncrptStep class which is |
|
15 // the base class for all the Encrpt test steps |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file TS_EncrptStep.cpp |
|
21 */ |
|
22 #include "TS_EncrptStep.h" |
|
23 |
|
24 CTS_EncrptStep::CTS_EncrptStep() |
|
25 { |
|
26 } |
|
27 |
|
28 CTS_EncrptStep::~CTS_EncrptStep() |
|
29 { |
|
30 } |
|
31 |
|
32 void CTS_EncrptStep::ExpLogExtra(const TText8* aFile, TInt aLine, TInt aSeverity, |
|
33 TRefByValue<const TDesC> aFmt,...) |
|
34 { |
|
35 VA_LIST aList; |
|
36 VA_START( aList, aFmt ); |
|
37 |
|
38 |
|
39 // Log to the suite's logger |
|
40 iSuite->LogExtra( aFile, aLine, aSeverity, aFmt, aList ); |
|
41 |
|
42 VA_END( aList ); |
|
43 |
|
44 } |
|
45 |
|
46 enum TVerdict CTS_EncrptStep::Test(TInt aResult) |
|
47 { |
|
48 if (!aResult) |
|
49 { |
|
50 iSuite->LogExtra((TText8*)__FILE__, __LINE__, ESevrWarn, KEGeneric); |
|
51 return EFail; |
|
52 } |
|
53 return EPass; |
|
54 } |
|
55 |
|
56 |
|
57 void CTS_EncrptStep::Set(TGlobalDbIds * aGlobals) |
|
58 { Dll::SetTls(aGlobals); } |
|
59 |
|
60 TGlobalDbIds* CTS_EncrptStep::Get() |
|
61 { TGlobalDbIds * d=(TGlobalDbIds *)Dll::Tls(); return d; } |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|