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