44
|
1 |
// TestLtsyGetPhoneSignalCap.cpp
|
|
2 |
// Copyright (c) Symbian Software Ltd 2008. All rights reserved.
|
|
3 |
//
|
|
4 |
// Implementation of the Class CTestLtsyGetPhoneSignalCap
|
|
5 |
|
|
6 |
//system include
|
|
7 |
#include <etelmm.h>
|
|
8 |
|
|
9 |
//user include
|
|
10 |
|
|
11 |
#include "TestLtsyGetPhoneSignalCap.h"
|
|
12 |
|
|
13 |
/**
|
|
14 |
* Constructor
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
CTestLtsyGetPhoneSignalCap::CTestLtsyGetPhoneSignalCap(CTestLtsyModel& aModel)
|
|
18 |
:CTestLtsyPhoneStepBase(aModel)
|
|
19 |
{
|
|
20 |
}
|
|
21 |
|
|
22 |
/**
|
|
23 |
* Destructor
|
|
24 |
*
|
|
25 |
*/
|
|
26 |
CTestLtsyGetPhoneSignalCap::~CTestLtsyGetPhoneSignalCap()
|
|
27 |
{
|
|
28 |
}
|
|
29 |
|
|
30 |
/**
|
|
31 |
* Invoked by the test execute framework for exercising functionality under test
|
|
32 |
* @return EPass: The test passed succesfully;
|
|
33 |
EFail: The test failed;
|
|
34 |
EInconclusive: The result of the test was inconclusive;
|
|
35 |
ETestSuiteError: Error in the test suite;
|
|
36 |
EAbort: The test was aborted;
|
|
37 |
EIgnore: The test was unexecuted
|
|
38 |
*/
|
|
39 |
|
|
40 |
TVerdict CTestLtsyGetPhoneSignalCap::doTestStepL()
|
|
41 |
{
|
|
42 |
INFO_PRINTF1(_L("CTestTelePhonyGetPhoneInfo::doTestStepL Begin"));
|
|
43 |
if (TestStepResult() == EPass)
|
|
44 |
{
|
|
45 |
TRAPD(err,GetSignalCaps());
|
|
46 |
if(err != KErrNone)
|
|
47 |
{
|
|
48 |
ERR_PRINTF2(_L("The error was returned %d!! when open Phone"),err);
|
|
49 |
SetTestStepResult(EFail);
|
|
50 |
}
|
|
51 |
}
|
|
52 |
return TestStepResult();
|
|
53 |
}
|
|
54 |
|