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_ConnPrefStep class which is |
|
15 // the base class for all the ConnPref test steps |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file TS_ConnPrefStep.cpp |
|
21 */ |
|
22 #include "TS_ConnPrefStep.h" |
|
23 |
|
24 |
|
25 // Constructor |
|
26 CTS_ConnPrefStep::CTS_ConnPrefStep() |
|
27 { |
|
28 } |
|
29 |
|
30 // Destructor |
|
31 CTS_ConnPrefStep::~CTS_ConnPrefStep() |
|
32 { |
|
33 } |
|
34 |
|
35 void CTS_ConnPrefStep::ExpLogExtra(const TText8* aFile, TInt aLine, TInt aSeverity, |
|
36 TRefByValue<const TDesC> aFmt,...) |
|
37 { |
|
38 VA_LIST aList; |
|
39 VA_START( aList, aFmt ); |
|
40 |
|
41 |
|
42 // Log to the suite's logger |
|
43 iSuite->LogExtra( aFile, aLine, aSeverity, aFmt, aList ); |
|
44 |
|
45 VA_END( aList ); |
|
46 |
|
47 } |
|
48 |
|
49 enum TVerdict CTS_ConnPrefStep::Test(TInt aResult) |
|
50 { |
|
51 if (!aResult) |
|
52 { |
|
53 iSuite->LogExtra((TText8*)__FILE__, __LINE__, ESevrWarn, KEGeneric); |
|
54 return EFail; |
|
55 } |
|
56 return EPass; |
|
57 } |
|
58 |
|
59 |
|
60 |
|