44
|
1 |
// TestTelephonyOpenPhone.cpp
|
|
2 |
// Copyright (c) Symbian Software Ltd 2008. All rights reserved.
|
|
3 |
//
|
|
4 |
// Implementation of the Class CTestTelephonyOpenPhone
|
|
5 |
|
|
6 |
// user include
|
|
7 |
#include "TestLtsyOpenPhone.h"
|
|
8 |
#include "TestLtsyCallSharedData.h"
|
|
9 |
#include "TestLtsySmsSharedData.h"
|
|
10 |
#include "TestLtsyPktSharedData.h"
|
|
11 |
#include "TestLtsyPhoneStoreSharedData.h"
|
|
12 |
|
|
13 |
|
|
14 |
/**
|
|
15 |
* Constructor
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
CTestLtsyOpenPhone::CTestLtsyOpenPhone( CTestLtsyModel& aTestModel)
|
|
19 |
:CTestLtsyPhoneStepBase(aTestModel)
|
|
20 |
{
|
|
21 |
}
|
|
22 |
|
|
23 |
/**
|
|
24 |
* Destructor
|
|
25 |
*
|
|
26 |
*/
|
|
27 |
CTestLtsyOpenPhone::~CTestLtsyOpenPhone()
|
|
28 |
{
|
|
29 |
}
|
|
30 |
|
|
31 |
/**
|
|
32 |
* It implements the required functionality of the test step.
|
|
33 |
* This step will open a shared phone
|
|
34 |
* @return TVerdict - result of the test step
|
|
35 |
* @leave - System wide error codes
|
|
36 |
*/
|
|
37 |
TVerdict CTestLtsyOpenPhone::doTestStepL()
|
|
38 |
{
|
|
39 |
if(TestStepResult() == EPass)
|
|
40 |
{
|
|
41 |
TRAPD(err,TestOpenPhoneL());
|
|
42 |
if(err != KErrNone)
|
|
43 |
{
|
|
44 |
ERR_PRINTF2(_L("The error was returned %d!! when open Phone"),err);
|
|
45 |
SetTestStepResult(EFail);
|
|
46 |
}
|
|
47 |
}
|
|
48 |
|
|
49 |
return TestStepResult();
|
|
50 |
}
|
|
51 |
|
|
52 |
|
|
53 |
// end of file
|