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