equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-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 // Contains definition of CTestStepIPC which is the base class |
|
15 // for all the IPC Test Step classes |
|
16 // |
|
17 // |
|
18 |
|
19 // EPOC includes |
|
20 #include <e32base.h> |
|
21 #include <es_sock.h> |
|
22 #include <test/es_dummy.h> |
|
23 |
|
24 // Test system includes |
|
25 |
|
26 #include "TestStepIPC.h" |
|
27 |
|
28 // constructor |
|
29 CTestStepIPC::CTestStepIPC() |
|
30 { |
|
31 iProt = _L("IPC Stream"); |
|
32 } |
|
33 |
|
34 // destructor |
|
35 CTestStepIPC::~CTestStepIPC() |
|
36 { |
|
37 |
|
38 } |
|
39 |
|
40 enum TVerdict CTestStepIPC::doTestStepL() |
|
41 { |
|
42 |
|
43 TRAPD(trapRet,enum TVerdict stepRet = InternalDoTestStepL();\ |
|
44 if (stepRet !=EPass)\ |
|
45 {\ |
|
46 SetTestStepResult(stepRet);\ |
|
47 }\ |
|
48 ) |
|
49 |
|
50 if (trapRet != KErrNone) |
|
51 { |
|
52 SetTestStepResult(EFail); |
|
53 return EFail; |
|
54 } |
|
55 return EPass; |
|
56 }; |
|
57 |
|
58 TInt CTestStepIPC::OptimalConnect(RSocketServ& aSrv) |
|
59 { |
|
60 TSessionPref pref; |
|
61 pref.iAddrFamily = KDummyAddrFamily; |
|
62 pref.iProtocol = KDummyOne; |
|
63 return aSrv.Connect(pref); |
|
64 } |
|
65 |
|
66 |
|
67 |