equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-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 // Te_EtelPacketSuiteStepBase.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 #include "Te_EtelPacketTestStepBase.h" |
|
19 #include "testdef.h" |
|
20 |
|
21 TVerdict CTestStepEtelPacket::doTestStepPreambleL() |
|
22 { |
|
23 __UHEAP_MARK; |
|
24 |
|
25 TInt ret = iTelServer.Connect(); |
|
26 if (ret!=KErrNone) |
|
27 { |
|
28 INFO_PRINTF1(_L("Failed connect phone")); |
|
29 User::Leave(ret); |
|
30 } |
|
31 |
|
32 ret=iTelServer.LoadPhoneModule(DPCKTTSY_MODULE_NAME); |
|
33 if (ret!=KErrNone) |
|
34 { |
|
35 INFO_PRINTF1(_L("Failed load phone module")); |
|
36 iTelServer.Close(); |
|
37 User::Leave(ret); |
|
38 } |
|
39 |
|
40 return TestStepResult(); |
|
41 } |
|
42 |
|
43 TVerdict CTestStepEtelPacket::doTestStepPostambleL() |
|
44 { |
|
45 iTelServer.UnloadPhoneModule(DPCKTTSY_MODULE_NAME); |
|
46 iTelServer.Close(); |
|
47 |
|
48 __UHEAP_MARKEND; |
|
49 return TestStepResult(); |
|
50 } |