24
|
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_EtelSatSuiteStepBase.cpp
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#include "Te_EtelSatTestStepBase.h"
|
|
19 |
|
|
20 |
TVerdict CRSatTestStep::doTestStepPreambleL()
|
|
21 |
{
|
|
22 |
__UHEAP_MARK;
|
|
23 |
TInt ret = iTelServer.Connect();
|
|
24 |
if (ret!=KErrNone)
|
|
25 |
{
|
|
26 |
INFO_PRINTF1(_L("Failed connect phone"));
|
|
27 |
User::Leave(ret);
|
|
28 |
}
|
|
29 |
ret=iTelServer.LoadPhoneModule(DSATTSY_MODULE_NAME);
|
|
30 |
if (ret!=KErrNone)
|
|
31 |
{
|
|
32 |
INFO_PRINTF1(_L("Failed load phone module"));
|
|
33 |
iTelServer.Close();
|
|
34 |
User::Leave(ret);
|
|
35 |
}
|
|
36 |
|
|
37 |
iTestScheduler=new (ELeave) CActiveScheduler;
|
|
38 |
CActiveScheduler::Install(iTestScheduler);
|
|
39 |
|
|
40 |
return TestStepResult();
|
|
41 |
}
|
|
42 |
|
|
43 |
TVerdict CRSatTestStep::doTestStepPostambleL()
|
|
44 |
{
|
|
45 |
delete iTestScheduler;
|
|
46 |
iTelServer.UnloadPhoneModule(DSATTSY_MODULE_NAME);
|
|
47 |
iTelServer.Close();
|
|
48 |
|
|
49 |
__UHEAP_MARKEND;
|
|
50 |
return TestStepResult();
|
|
51 |
}
|
|
52 |
|
|
53 |
RTestSat::RTestSat()
|
|
54 |
{
|
|
55 |
}
|
|
56 |
|
|
57 |
//Requests service of IPC 1000055 - a standard custom IPC which may or may not be supported
|
|
58 |
//by the TSY
|
|
59 |
TInt RTestSat::TestCustomIPC1()
|
|
60 |
{
|
|
61 |
return Blank(ETestCustomIPC1);
|
|
62 |
}
|