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