24
|
1 |
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Test step definitions for the SupplementaryServiceCaps functional unit.
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@internalTechnology
|
|
20 |
*/
|
|
21 |
|
|
22 |
#include "cctsyintegrationtestsupplementaryservicecaps.h"
|
|
23 |
#include "cetelsessionmgr.h"
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
CCTSYIntegrationTestSupplementaryServiceCapsBase::CCTSYIntegrationTestSupplementaryServiceCapsBase(CEtelSessionMgr& aEtelSessionMgr)
|
|
28 |
: CCTSYIntegrationTestSuiteStepBase(aEtelSessionMgr)
|
|
29 |
/**
|
|
30 |
* Constructor
|
|
31 |
*/
|
|
32 |
{
|
|
33 |
}
|
|
34 |
|
|
35 |
CCTSYIntegrationTestSupplementaryServiceCapsBase::~CCTSYIntegrationTestSupplementaryServiceCapsBase()
|
|
36 |
/*
|
|
37 |
* Destructor
|
|
38 |
*/
|
|
39 |
{
|
|
40 |
}
|
|
41 |
|
|
42 |
|
|
43 |
CCTSYIntegrationTestSupplementaryServiceCaps0001::CCTSYIntegrationTestSupplementaryServiceCaps0001(CEtelSessionMgr& aEtelSessionMgr)
|
|
44 |
: CCTSYIntegrationTestSupplementaryServiceCapsBase(aEtelSessionMgr)
|
|
45 |
/**
|
|
46 |
* Constructor.
|
|
47 |
*/
|
|
48 |
{
|
|
49 |
SetTestStepName(CCTSYIntegrationTestSupplementaryServiceCaps0001::GetTestStepName());
|
|
50 |
}
|
|
51 |
|
|
52 |
CCTSYIntegrationTestSupplementaryServiceCaps0001::~CCTSYIntegrationTestSupplementaryServiceCaps0001()
|
|
53 |
/**
|
|
54 |
* Destructor.
|
|
55 |
*/
|
|
56 |
{
|
|
57 |
}
|
|
58 |
|
|
59 |
TVerdict CCTSYIntegrationTestSupplementaryServiceCaps0001::doTestStepL()
|
|
60 |
/**
|
|
61 |
* @SYMTestCaseID BA-CTSY-INT-SUSC-0001
|
|
62 |
* @SYMFssID BA/CTSY/SUSC-0001
|
|
63 |
* @SYMTestCaseDesc Get the supplementary service caps.
|
|
64 |
* @SYMTestPriority High
|
|
65 |
* @SYMTestActions RMobilePhone::GetCallServiceCaps
|
|
66 |
* @SYMTestExpectedResults Pass - Correct caps returned.
|
|
67 |
* @SYMTestType CIT
|
|
68 |
* @SYMTestCaseDependencies live/automatic
|
|
69 |
*
|
|
70 |
* Reason for test: Verify correct caps are returned.
|
|
71 |
*
|
|
72 |
* @return - TVerdict code
|
|
73 |
*/
|
|
74 |
{
|
|
75 |
|
|
76 |
//
|
|
77 |
// SET UP
|
|
78 |
//
|
|
79 |
//Get the supplementary service caps
|
|
80 |
//Verify correct caps are returned.
|
|
81 |
|
|
82 |
RMobilePhone& mobilePhone = iEtelSessionMgr.GetPhoneL(KMainServer, KMainPhone);
|
|
83 |
|
|
84 |
//
|
|
85 |
// SET UP END
|
|
86 |
//
|
|
87 |
|
|
88 |
StartTest();
|
|
89 |
|
|
90 |
//
|
|
91 |
// TEST START
|
|
92 |
//
|
|
93 |
|
|
94 |
|
|
95 |
// Check RMobilePhone::GetCallServiceCaps returns caps in set of
|
|
96 |
|
|
97 |
// RMobilePhone::KCapsGetCFStatusNetwork
|
|
98 |
|
|
99 |
// | RMobilePhone::KCapsSetCFStatus
|
|
100 |
|
|
101 |
// | RMobilePhone::KCapsNotifyCFStatus
|
|
102 |
|
|
103 |
// | RMobilePhone::KCapsGetClipStatus
|
|
104 |
|
|
105 |
// | RMobilePhone::KCapsGetClirStatus
|
|
106 |
|
|
107 |
// | RMobilePhone::KCapsGetColpStatus
|
|
108 |
|
|
109 |
// | RMobilePhone::KCapsGetColrStatus
|
|
110 |
|
|
111 |
// | RMobilePhone::KCapsGetCnapStatus
|
|
112 |
|
|
113 |
// | RMobilePhone::KCapsGetCBStatusNetwork
|
|
114 |
|
|
115 |
// | RMobilePhone::KCapsSetCBStatus
|
|
116 |
|
|
117 |
// | RMobilePhone::KCapsNotifyCBStatus
|
|
118 |
|
|
119 |
// | RMobilePhone::KCapsChangeCBPassword
|
|
120 |
|
|
121 |
// | RMobilePhone::KCapsBarAllIncoming
|
|
122 |
|
|
123 |
// | RMobilePhone::KCapsBarIncomingRoaming
|
|
124 |
|
|
125 |
// | RMobilePhone::KCapsBarAllOutgoing
|
|
126 |
|
|
127 |
// | RMobilePhone::KCapsBarOutgoingInternational
|
|
128 |
|
|
129 |
// | RMobilePhone::KCapsBarOutgoingInternationalExHC
|
|
130 |
|
|
131 |
// | RMobilePhone::KCapsBarAllCases
|
|
132 |
|
|
133 |
// | RMobilePhone::KCapsGetCWStatusNetwork
|
|
134 |
|
|
135 |
// | RMobilePhone::KCapsSetCWStatus
|
|
136 |
|
|
137 |
// | RMobilePhone::KCapsNotifyCWStatus
|
|
138 |
|
|
139 |
// | RMobilePhone::KCapsNetworkServiceRequest
|
|
140 |
|
|
141 |
TUint32 callServiceCaps;
|
|
142 |
ASSERT_EQUALS(mobilePhone.GetCallServiceCaps(callServiceCaps), KErrNone,
|
|
143 |
_L("RMobilePhone::GetCallServiceCaps returned error"))
|
|
144 |
TUint32 expectedCaps =
|
|
145 |
RMobilePhone::KCapsGetCFStatusNetwork
|
|
146 |
| RMobilePhone::KCapsSetCFStatus
|
|
147 |
| RMobilePhone::KCapsNotifyCFStatus
|
|
148 |
| RMobilePhone::KCapsGetClipStatus
|
|
149 |
| RMobilePhone::KCapsGetClirStatus
|
|
150 |
| RMobilePhone::KCapsGetColpStatus
|
|
151 |
| RMobilePhone::KCapsGetColrStatus
|
|
152 |
| RMobilePhone::KCapsGetCnapStatus
|
|
153 |
| RMobilePhone::KCapsGetCBStatusNetwork
|
|
154 |
| RMobilePhone::KCapsSetCBStatus
|
|
155 |
| RMobilePhone::KCapsNotifyCBStatus
|
|
156 |
| RMobilePhone::KCapsChangeCBPassword
|
|
157 |
| RMobilePhone::KCapsBarAllIncoming
|
|
158 |
| RMobilePhone::KCapsBarIncomingRoaming
|
|
159 |
| RMobilePhone::KCapsBarAllOutgoing
|
|
160 |
| RMobilePhone::KCapsBarOutgoingInternational
|
|
161 |
| RMobilePhone::KCapsBarOutgoingInternationalExHC
|
|
162 |
| RMobilePhone::KCapsBarAllCases
|
|
163 |
| RMobilePhone::KCapsGetCWStatusNetwork
|
|
164 |
| RMobilePhone::KCapsSetCWStatus
|
|
165 |
| RMobilePhone::KCapsNotifyCWStatus
|
|
166 |
| RMobilePhone::KCapsNetworkServiceRequest;
|
|
167 |
|
|
168 |
TUint32 unwantedCaps = 0;
|
|
169 |
|
|
170 |
ASSERT_BITS_SET(callServiceCaps, expectedCaps, unwantedCaps, _L("RMobilePhone::GetCallServiceCaps returned incorrect caps"))
|
|
171 |
//
|
|
172 |
// TEST END
|
|
173 |
//
|
|
174 |
|
|
175 |
StartCleanup();
|
|
176 |
|
|
177 |
// Put any required test clean up here, then remove this comment
|
|
178 |
|
|
179 |
return TestStepResult();
|
|
180 |
}
|
|
181 |
|
|
182 |
TPtrC CCTSYIntegrationTestSupplementaryServiceCaps0001::GetTestStepName()
|
|
183 |
/**
|
|
184 |
* @return The test step name.
|
|
185 |
*/
|
|
186 |
{
|
|
187 |
return _L("CCTSYIntegrationTestSupplementaryServiceCaps0001");
|
|
188 |
}
|
|
189 |
|
|
190 |
|
|
191 |
|