|
1 // Copyright (c) 2003-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 // |
|
15 |
|
16 #include "TS_GetConnectionInfo.h" |
|
17 |
|
18 |
|
19 /* |
|
20 * GetConnectionInfo |
|
21 * Displays info on named RConnrction |
|
22 */ |
|
23 CTS_GetConnectionInfo::CTS_GetConnectionInfo() |
|
24 { |
|
25 iTestStepName = KGetConnectionInfo; |
|
26 } |
|
27 |
|
28 CTS_GetConnectionInfo::~CTS_GetConnectionInfo() |
|
29 { |
|
30 } |
|
31 |
|
32 |
|
33 enum TVerdict CTS_GetConnectionInfo::doTestStepPreambleL(void) |
|
34 /** |
|
35 * Implements OOM testing in each test |
|
36 */ |
|
37 { |
|
38 if (!(GetBoolFromConfig(KGetConnectionInfo,KOomTest,iIsOOMTest))) |
|
39 iIsOOMTest=EFalse; |
|
40 return EPass; |
|
41 } |
|
42 |
|
43 void CTS_GetConnectionInfo::PrintFeature(TUint& aMask, TUint aFeature, const TDesC& aDes) |
|
44 { |
|
45 if(aMask&aFeature) |
|
46 { |
|
47 aMask&=~aFeature; |
|
48 LogExtra(((TText8*)(__FILE__)), (__LINE__), ESevrErr, aDes); |
|
49 if(aMask) |
|
50 LogExtra(((TText8*)(__FILE__)), (__LINE__), ESevrErr, _L(",")); |
|
51 } |
|
52 } |
|
53 |
|
54 |
|
55 enum TVerdict CTS_GetConnectionInfo::doTestStepL(void) |
|
56 /** |
|
57 * Displays info on named RConnrction |
|
58 * @return The test step verdict |
|
59 */ |
|
60 { |
|
61 // Function now returns number of connections so no error check |
|
62 iOwnerSuite->DisplayConnectionDetailsL(); |
|
63 return EPass; |
|
64 |
|
65 /*if (KErrNone == err) |
|
66 return EPass; |
|
67 else |
|
68 { |
|
69 TPtrC Errortxt = EpocErrorToText(err); |
|
70 LogExtra(((TText8*)(__FILE__)), (__LINE__), ESevrErr, KELogger, &Errortxt); |
|
71 } |
|
72 return EFail;*/ |
|
73 } |
|
74 |