equal
deleted
inserted
replaced
1 // TestLtsyPktOpenPPacket.cpp |
|
2 // Copyright (c) Symbian Software Ltd 2008. All rights reserved. |
|
3 // |
|
4 // Implementation of the Class CTestLtsyPktOpenPacket |
|
5 |
|
6 // user include |
|
7 |
|
8 #include "TestLtsyPktOpenPacket.h" |
|
9 _LIT(KTsyModuleName, "PhoneTsy"); |
|
10 /** |
|
11 * Constructor |
|
12 * |
|
13 */ |
|
14 CTestLtsyPktOpenPacket::CTestLtsyPktOpenPacket( CTestLtsyModel& aTestModel) |
|
15 :CTestLtsyPktTestStepBase(aTestModel) |
|
16 { |
|
17 } |
|
18 |
|
19 /** |
|
20 * Destructor |
|
21 * |
|
22 */ |
|
23 CTestLtsyPktOpenPacket::~CTestLtsyPktOpenPacket() |
|
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 CTestLtsyPktOpenPacket::doTestStepL() |
|
34 { |
|
35 if(TestStepResult() == EPass) |
|
36 { |
|
37 if (!iModel.SharedEnv().PhoneOpened()) |
|
38 { |
|
39 iModel.SharedEnv().OpenPhoneL(KTsyModuleName); |
|
40 } |
|
41 TRAPD(err,OpenPacketobject()); |
|
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 |
|