|
1 // |
|
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 |
|
17 |
|
18 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\ |
|
19 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\tbtsockapi\ |
|
20 |
|
21 LOAD_SUITE T_BTSockAPI |
|
22 DELAY 2000 |
|
23 |
|
24 |
|
25 //! @file |
|
26 //! @SYMTestSuiteName BT-USER-SOCK-PublicApi-Unconnected |
|
27 //! @SYMScriptTestEnvironment This test script requires a basic ROM with bluetooth dongle. |
|
28 |
|
29 |
|
30 // **************************************************************************** |
|
31 // CBluetoothSocket |
|
32 // **************************************************************************** |
|
33 |
|
34 // Service side unconnected tests |
|
35 |
|
36 //Standard construction |
|
37 |
|
38 |
|
39 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0001 |
|
40 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0001 |
|
41 //! @SYMAPI CBluetoothSocket |
|
42 //! @SYMAuthor Johan Eriksson |
|
43 //! @SYMCreationDate 16/03/2006 |
|
44 //! @SYMTestCaseDesc Create a CBluetoothSocket using the Standard Bluetooth socket NewL constructor. |
|
45 //! Uses API elements: NewL()1 |
|
46 //! @SYMTestActions 1. Create and start a session on the socket server |
|
47 //! 2. Call the first NewL of the CBluetoothSocket class |
|
48 //! 3. Destroy object |
|
49 //! @SYMTestStatus Implemented |
|
50 //! @SYMTestPriority Critical |
|
51 //! @SYMTestExpectedResults Object created successfully |
|
52 //! @SYMTestType CIT |
|
53 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
54 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
55 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
56 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0001-0001command2NewL |
|
57 COMMAND CBluetoothSocket1 ~ |
|
58 COMMAND CBluetoothSocket1 RSocketServerClose |
|
59 END_TEST_BLOCK |
|
60 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0001 |
|
61 |
|
62 |
|
63 |
|
64 //!START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0002 |
|
65 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0002 |
|
66 //! @SYMAPI CBluetoothSocket |
|
67 //! @SYMAuthor Johan Eriksson |
|
68 //! @SYMCreationDate 16/03/2006 |
|
69 //! @SYMTestCaseDesc Create a CBluetoothSocket using the Standard Bluetooth socket NewL constructor, but with no session on the socket server |
|
70 //! Uses API elements: NewL()1 |
|
71 //! @SYMTestActions 1. Call the first NewL of the CBluetoothSocket class without a session open on the socket server |
|
72 //! @SYMTestStatus Implemented |
|
73 //! @SYMTestPriority Critical |
|
74 //! @SYMTestExpectedResults Leave, unable to create a socket |
|
75 //! @SYMTestType CIT |
|
76 //! START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
77 //! CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
78 //! COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0002-0001command1NewL |
|
79 //! COMMAND CBluetoothSocket1 ~ |
|
80 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
81 //!END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0002 |
|
82 |
|
83 |
|
84 |
|
85 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0003 |
|
86 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0003 |
|
87 //! @SYMAPI CBluetoothSocket |
|
88 //! @SYMAuthor Johan Eriksson |
|
89 //! @SYMCreationDate 16/03/2006 |
|
90 //! @SYMTestCaseDesc Create a CBluetoothSocket using the Standard Bluetooth socket NewLC constructor. |
|
91 //! Uses API elements: NewLC()1 |
|
92 //! @SYMTestActions 1. Create and start a session on the socket server |
|
93 //! 2. Call the first NewLC of the CBluetoothSocket class |
|
94 //! 3. Pop and destroy the CBluetoothSocket object from the cleanup stack |
|
95 //! @SYMTestStatus Implemented |
|
96 //! @SYMTestPriority Critical |
|
97 //! @SYMTestExpectedResults Object created successfully |
|
98 //! @SYMTestType CIT |
|
99 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
100 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
101 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
102 COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Unconnected-0003-0001command2NewLC |
|
103 COMMAND CBluetoothSocket1 ~ |
|
104 COMMAND CBluetoothSocket1 RSocketServerClose |
|
105 END_TEST_BLOCK |
|
106 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0003 |
|
107 |
|
108 |
|
109 |
|
110 //!START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0004 |
|
111 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0004 |
|
112 //! @SYMAPI CBluetoothSocket |
|
113 //! @SYMAuthor Johan Eriksson |
|
114 //! @SYMCreationDate 16/03/2006 |
|
115 //! @SYMTestCaseDesc Create a CBluetoothSocket using the Standard Bluetooth socket NewLC constructor, but with no session on the socket server |
|
116 //! Uses API elements: NewLC()1 |
|
117 //! @SYMTestActions 1. Call the first NewLC of the CBluetoothSocket class without a session open on the socket server |
|
118 //! @SYMTestStatus Implemented |
|
119 //! @SYMTestPriority Critical |
|
120 //! @SYMTestExpectedResults Leave, unable to create a socket |
|
121 //! @SYMTestType CIT |
|
122 //! START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
123 //! CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
124 //! COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Unconnected-0004-0001command1NewLC |
|
125 //! COMMAND CBluetoothSocket1 ~ |
|
126 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
127 //!END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0004 |
|
128 |
|
129 |
|
130 //Constructor for Bluetooth blank socket, used for accepting incoming connections. |
|
131 |
|
132 |
|
133 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0005 |
|
134 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0005 |
|
135 //! @SYMAPI CBluetoothSocket |
|
136 //! @SYMAuthor Johan Eriksson |
|
137 //! @SYMCreationDate 16/03/2006 |
|
138 //! @SYMTestCaseDesc Create a CBluetoothSocket with a blank socket, using NewL constructor. |
|
139 //! Uses API elements: NewL()4 |
|
140 //! @SYMTestActions 1. Create and start a session on the socket server |
|
141 //! 2. Call the fourth NewL of the CBluetoothSocket class |
|
142 //! 3. Destroy object |
|
143 //! @SYMTestStatus Implemented |
|
144 //! @SYMTestPriority Critical |
|
145 //! @SYMTestExpectedResults Object created successfully |
|
146 //! @SYMTestType CIT |
|
147 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
148 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
149 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
150 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0005-0001command2NewL |
|
151 COMMAND CBluetoothSocket1 ~ |
|
152 COMMAND CBluetoothSocket1 RSocketServerClose |
|
153 END_TEST_BLOCK |
|
154 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0005 |
|
155 |
|
156 |
|
157 |
|
158 //!START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0006 |
|
159 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0006 |
|
160 //! @SYMAPI CBluetoothSocket |
|
161 //! @SYMAuthor Johan Eriksson |
|
162 //! @SYMCreationDate 16/03/2006 |
|
163 //! @SYMTestCaseDesc Create a CBluetoothSocket with a blank socket, but with no session on the socket server |
|
164 //! Uses API elements: NewL()4 |
|
165 //! @SYMTestActions 1. Call the fourth NewL of the CBluetoothSocket class without a session open on the socket server |
|
166 //! @SYMTestStatus Implemented |
|
167 //! @SYMTestPriority Critical |
|
168 //! @SYMTestExpectedResults Leave, unable to create a socket |
|
169 //! @SYMTestType CIT |
|
170 //! START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
171 //! CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
172 //! COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0006-0001command1NewL |
|
173 //! COMMAND CBluetoothSocket1 ~ |
|
174 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
175 //!END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0006 |
|
176 |
|
177 |
|
178 |
|
179 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0007 |
|
180 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0007 |
|
181 //! @SYMAPI CBluetoothSocket |
|
182 //! @SYMAuthor Johan Eriksson |
|
183 //! @SYMCreationDate 16/03/2006 |
|
184 //! @SYMTestCaseDesc Create a CBluetoothSocket with a blank socket, using NewLC constructor. |
|
185 //! Uses API elements: NewLC()4 |
|
186 //! @SYMTestActions 1. Create and start a session on the socket server |
|
187 //! 2. Call the fourth NewLC of the CBluetoothSocket class |
|
188 //! 3. Pop and destroy the CBluetoothSocket object from the cleanup stack |
|
189 //! @SYMTestStatus Implemented |
|
190 //! @SYMTestPriority Critical |
|
191 //! @SYMTestExpectedResults Object created successfully |
|
192 //! @SYMTestType CIT |
|
193 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
194 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
195 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
196 COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Unconnected-0007-0001command2NewLC |
|
197 COMMAND CBluetoothSocket1 ~ |
|
198 COMMAND CBluetoothSocket1 RSocketServerClose |
|
199 END_TEST_BLOCK |
|
200 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0007 |
|
201 |
|
202 |
|
203 |
|
204 //!START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0008 |
|
205 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0008 |
|
206 //! @SYMAPI CBluetoothSocket |
|
207 //! @SYMAuthor Johan Eriksson |
|
208 //! @SYMCreationDate 16/03/2006 |
|
209 //! @SYMTestCaseDesc Create a CBluetoothSocket with a blank socket, but with no session on the socket server |
|
210 //! Uses API elements: NewLC()4 |
|
211 //! @SYMTestActions 1. Call the fourth NewLC of the CBluetoothSocket class without a session open on the socket server |
|
212 //! @SYMTestStatus Implemented |
|
213 //! @SYMTestPriority Critical |
|
214 //! @SYMTestExpectedResults Leave, unable to create a socket |
|
215 //! @SYMTestType CIT |
|
216 //! START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
217 //! CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
218 //! COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Unconnected-0008-0001command1NewLC |
|
219 //! COMMAND CBluetoothSocket1 ~ |
|
220 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
221 //!END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0008 |
|
222 |
|
223 |
|
224 |
|
225 // Options |
|
226 // SockType : KSockStream, KSockDatagram, KSockSeqPacket, KSockRaw |
|
227 // Protocol : KL2CAP, KRFCOMM, KSD, KAVCTP, KTCIL2CAP |
|
228 // Port : RFCOMM 1-30 & KRfcommPassiveAutoBind, KL2CAPPassiveAutoBind, |
|
229 |
|
230 |
|
231 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0009 |
|
232 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0009 |
|
233 //! @SYMAPI CBluetoothSocket |
|
234 //! @SYMAuthor Johan Eriksson |
|
235 //! @SYMCreationDate 20/03/2006 |
|
236 //! @SYMTestCaseDesc Set up a Bluetooth endpoint |
|
237 //! Uses API elements: NewL()1, Bind, listen()1 |
|
238 //! @SYMTestActions 1. Create and start a session on the socket server |
|
239 //! 2. Create a CBluetoothSocket using the NewL()1 with KSockStream and KRFCOMM |
|
240 //! 3. Create and instantiate a TBTSockAddr class |
|
241 //! 4. Create a TBTServiceSecurity object and set all security settings to false |
|
242 //! 5. Set the security of TBTSockAddr to the TBTServiceSecurity object |
|
243 //! 6. Set the port of the TBTSockAddr to 1 (RFCOMM range is 1-30) |
|
244 //! 7. Use the Bind method of the CBluetoothSocket to bind the TBTSockAddr to the Bluetooth object |
|
245 //! 8. Call the listen1 method of the CBluetoothSocket object |
|
246 //! 9. Do socket cleanup |
|
247 //! 10. Delete CBluetoothSocket object |
|
248 //! @SYMTestStatus Implemented |
|
249 //! @SYMTestPriority Critical |
|
250 //! @SYMTestExpectedResults No errors found |
|
251 //! @SYMTestType CIT |
|
252 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
253 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
254 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
255 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
256 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
257 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0009-0001command2NewL |
|
258 COMMAND TBTServiceSecurity1 Construct |
|
259 COMMAND TBTSockAddr1 Construct |
|
260 COMMAND TBTSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0009-0001command7SetSecurity |
|
261 COMMAND TBTSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0009-0001command8SetBTAddr |
|
262 COMMAND TBTSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0009-0001command9SetPort |
|
263 COMMAND TBTSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Unconnected-0009-0001command10BTAddr |
|
264 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Unconnected-0009-0001command12Bind |
|
265 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Unconnected-0009-0001command13Listen |
|
266 COMMAND CBluetoothSocket1 ~ |
|
267 COMMAND CBluetoothSocket1 RSocketServerClose |
|
268 END_TEST_BLOCK |
|
269 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0009 |
|
270 |
|
271 |
|
272 |
|
273 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0010 |
|
274 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0010 |
|
275 //! @SYMAPI CBluetoothSocket |
|
276 //! @SYMAuthor Johan Eriksson |
|
277 //! @SYMCreationDate 20/03/2006 |
|
278 //! @SYMTestCaseDesc Set up a Bluetooth endpoint |
|
279 //! Uses API elements: NewLC()1, SetLocalport, listen()2,LocalPort |
|
280 //! @SYMTestActions 1. Create and start a session on the socket server |
|
281 //! 2. Create a CBluetoothSocket using the NewLC()1 with KSockStream and KRFCOMM |
|
282 //! 3. Use SetLocalport to bind with only port set use port 32 |
|
283 //! 4. Call the listen2 method of the CBluetoothSocket object |
|
284 //! 5. Find out and verify the local port that has been allocated using LocalPort method |
|
285 //! 6. Do socket cleanup |
|
286 //! 7. Delete CBluetoothSocket object |
|
287 //! @SYMTestStatus Implemented |
|
288 //! @SYMTestPriority Critical |
|
289 //! @SYMTestExpectedResults No errors found |
|
290 //! @SYMTestType CIT |
|
291 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
292 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
293 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
294 COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Unconnected-0010-0001command2NewLC |
|
295 COMMAND CBluetoothSocket1 SetLocalPort BT-USER-SOCK-PublicAPI-Unconnected-0010-0001command3SetLocalPort |
|
296 COMMAND CBluetoothSocket1 LocalPort |
|
297 COMMAND !Error=-5 CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Unconnected-0010-0001command5Listen |
|
298 COMMAND CBluetoothSocket1 ~ |
|
299 COMMAND CBluetoothSocket1 RSocketServerClose |
|
300 END_TEST_BLOCK |
|
301 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0010 |
|
302 |
|
303 |
|
304 |
|
305 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0011 |
|
306 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0011 |
|
307 //! @SYMAPI CBluetoothSocket |
|
308 //! @SYMAuthor Johan Eriksson |
|
309 //! @SYMCreationDate 27/03/2006 |
|
310 //! @SYMTestCaseDesc Set up a Bluetooth endpoint |
|
311 //! Uses API elements: NewL()1, Bind, Listen()3 |
|
312 //! @SYMTestActions 1. Create and start a session on the socket server |
|
313 //! 2. Create a CBluetoothSocket using the NewL()1 with KSockStream and KRFCOMM |
|
314 //! 3. Create and instantiate a TBTSockAddr class |
|
315 //! 4. Create a TBTServiceSecurity object and set all security settings to false |
|
316 //! 5. Set the security of TBTSockAddr to the TBTServiceSecurity object |
|
317 //! 6. Set the port of the TBTSockAddr to 30 (RFCOMM range is 1-30) |
|
318 //! 7. Use the Bind method of the CBluetoothSocket to bind the TBTSockAddr to the Bluetooth object |
|
319 //! 8. Call the listen()3 method of the CBluetoothSocket object |
|
320 //! 9. Do socket cleanup |
|
321 //! 10. delete CBluetoothSocket object |
|
322 //! @SYMTestStatus Implemented |
|
323 //! @SYMTestPriority Critical |
|
324 //! @SYMTestExpectedResults No errors found |
|
325 //! @SYMTestType CIT |
|
326 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
327 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
328 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
329 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
330 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
331 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0011-0001command2NewL |
|
332 COMMAND TBTServiceSecurity1 Construct |
|
333 COMMAND TBTSockAddr1 Construct |
|
334 COMMAND TBTSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0011-0001command7SetSecurity |
|
335 COMMAND TBTSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0011-0001command8SetBTAddr |
|
336 COMMAND TBTSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0011-0001command9SetPort |
|
337 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Unconnected-0011-0001command11Bind |
|
338 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Unconnected-0011-0001command12Listen |
|
339 COMMAND CBluetoothSocket1 ~ |
|
340 COMMAND CBluetoothSocket1 RSocketServerClose |
|
341 END_TEST_BLOCK |
|
342 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0011 |
|
343 |
|
344 |
|
345 |
|
346 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0012 |
|
347 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0012 |
|
348 //! @SYMAPI CBluetoothSocket |
|
349 //! @SYMAuthor Johan Eriksson |
|
350 //! @SYMCreationDate 27/03/2006 |
|
351 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and test options |
|
352 //! Uses API elements: NewL()1, Bind, setOpt()1, setOpt()2, setOption(), getOpt()1, getOpt()2 |
|
353 //! @SYMTestActions 1. Create and start a session on the socket server |
|
354 //! 2. Create a CBluetoothSocket using the NewL()1 with KSockStream and KRFCOMM |
|
355 //! 3. Create and instantiate a TBTSockAddr class |
|
356 //! 4. Create a TBTServiceSecurity object and set all security settings to false |
|
357 //! 5. Set the security of TBTSockAddr to the TBTServiceSecurity object |
|
358 //! 6. Set the port of the TBTSockAddr to 16 (RFCOMM range is 1-30) |
|
359 //! 7. Use the Bind method of the CBluetoothSocket to bind the TBTSockAddr to the Bluetooth object |
|
360 //! 8. Use setOpt()1 to set an option as a integer value |
|
361 //! 9. Use setOpt()2 to set an option as a descriptor value |
|
362 //! 10. Use setOption to set an option as a descriptor value |
|
363 //! 11. Use getOpt()1 to get the option value as an int, set in step 8 and verify it |
|
364 //! 12. Use getOpt()1 to get the option value as an int, set in step 9 and verify it |
|
365 //! 13. Use getOpt()2 to get the option value as a descriptor, set in step 10 and verify it |
|
366 //! 14. Use localName to get the unique name of the socket and verify it? |
|
367 //! 15. Do socket cleanup |
|
368 //! 16. delete CBluetoothSocket object |
|
369 //! @SYMTestStatus Implemented |
|
370 //! @SYMTestPriority Critical |
|
371 //! @SYMTestExpectedResults No errors found, options set and retrieved correctly |
|
372 //! @SYMTestType CIT |
|
373 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
374 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
375 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
376 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
377 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
378 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command2NewL |
|
379 COMMAND TBTServiceSecurity1 Construct |
|
380 COMMAND TBTSockAddr1 Construct |
|
381 COMMAND TBTSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command7SetSecurity |
|
382 COMMAND TBTSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command8SetBTAddr |
|
383 COMMAND CBluetoothSocket1 SetOption BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command10SetOption |
|
384 COMMAND CBluetoothSocket1 GetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command11GetOpt |
|
385 COMMAND CBluetoothSocket1 SetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command12SetOpt |
|
386 COMMAND CBluetoothSocket1 GetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command13GetOpt |
|
387 COMMAND CBluetoothSocket1 SetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command14SetOpt |
|
388 COMMAND CBluetoothSocket1 GetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command15GetOpt |
|
389 COMMAND CBluetoothSocket1 SetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command16SetOpt |
|
390 COMMAND CBluetoothSocket1 GetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command17GetOpt |
|
391 COMMAND CBluetoothSocket1 SetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command18SetOpt |
|
392 COMMAND CBluetoothSocket1 GetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command19GetOpt |
|
393 COMMAND CBluetoothSocket1 SetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command20SetOpt |
|
394 COMMAND CBluetoothSocket1 GetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command21GetOpt |
|
395 COMMAND CBluetoothSocket1 SetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command22SetOpt |
|
396 COMMAND CBluetoothSocket1 GetOpt BT-USER-SOCK-PublicAPI-Unconnected-0012-0001command23GetOpt |
|
397 COMMAND CBluetoothSocket1 ~ |
|
398 COMMAND CBluetoothSocket1 RSocketServerClose |
|
399 END_TEST_BLOCK |
|
400 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0012 |
|
401 |
|
402 |
|
403 |
|
404 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0013 |
|
405 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0013 |
|
406 //! @SYMAPI CBluetoothSocket |
|
407 //! @SYMAuthor Johan Eriksson |
|
408 //! @SYMCreationDate 27/03/2006 |
|
409 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to test transfer |
|
410 //! Uses API elements: NewL()1, Bind, Name, Transfer, Info |
|
411 //! @SYMTestActions 1. Create and start a session on the socket server |
|
412 //! 2. Create a CBluetoothSocket using the NewL()1 with KSockStream and KRFCOMM |
|
413 //! 3. Create and instantiate a TBTSockAddr class |
|
414 //! 4. Create a TBTServiceSecurity object and set all security settings to false |
|
415 //! 5. Set the security of TBTSockAddr to the TBTServiceSecurity object |
|
416 //! 6. Set the port of the TBTSockAddr to 16 (RFCOMM range is 1-30) |
|
417 //! 7. Use the Bind method of the CBluetoothSocket to bind the TBTSockAddr to the Bluetooth object |
|
418 //! 8. Call Name to get the system name of the socket |
|
419 //! 9. Create and start the second session on the socket server |
|
420 //! 10. Use SetTransferAble to use SetOpt to conform to platsec requirments for transfer |
|
421 //! 11. Call Transfer to transfer a socket from a socket server to the second one. |
|
422 //! 12. Call Info on the originating socket to verify the transfer, which returns KErrNone if the transfer failed, and KErrBadHandle if it succeeded. |
|
423 //! 13. Do socket cleanup |
|
424 //! 14. delete CBluetoothSocket object |
|
425 //! @SYMTestStatus Implemented |
|
426 //! @SYMTestPriority Critical |
|
427 //! @SYMTestExpectedResults KErrBadHandle found at step 10 indicating successful transfer |
|
428 //! @SYMTestType CIT |
|
429 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
430 CREATE_OBJECT RSocket RSocket1 |
|
431 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
432 COMMAND RSocket1 RSocketServerConnect |
|
433 COMMAND RSocket1 RSocketOpen BT-USER-SOCK-PublicAPI-Unconnected-0013-0001command2RSocketOpen |
|
434 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
435 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0013-0001command5NewL |
|
436 COMMAND CBluetoothSocket1 Transfer BT-USER-SOCK-PublicAPI-Unconnected-0013-0001command6Transfer |
|
437 COMMAND CBluetoothSocket1 Info BT-USER-SOCK-PublicAPI-Unconnected-0013-0001command7Info |
|
438 COMMAND CBluetoothSocket1 Name |
|
439 COMMAND !Error=-8 RSocket1 Info |
|
440 COMMAND RSocket1 RSocketClose |
|
441 COMMAND RSocket1 RSocketServerClose |
|
442 COMMAND CBluetoothSocket1 ~ |
|
443 COMMAND CBluetoothSocket1 RSocketServerClose |
|
444 END_TEST_BLOCK |
|
445 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0013 |
|
446 |
|
447 |
|
448 // Client side unconnected tests |
|
449 |
|
450 |
|
451 |
|
452 // Construction using Bluetooth socket named protocol |
|
453 |
|
454 |
|
455 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0018 |
|
456 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0018 |
|
457 //! @SYMAPI CBluetoothSocket |
|
458 //! @SYMAuthor Johan Eriksson |
|
459 //! @SYMCreationDate 16/03/2006 |
|
460 //! @SYMTestCaseDesc Create a CBluetoothSocket with a named protocol, using NewL constructor. |
|
461 //! Uses API elements: NewL()3 |
|
462 //! @SYMTestActions 1. Create and start a session on the socket server |
|
463 //! 2. Call the third NewL of the CBluetoothSocket class |
|
464 //! 3. Destroy object |
|
465 //! @SYMTestStatus Implemented |
|
466 //! @SYMTestPriority Critical |
|
467 //! @SYMTestExpectedResults Object created successfully |
|
468 //! @SYMTestType CIT |
|
469 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
470 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
471 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
472 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0018-0001command2NewL |
|
473 COMMAND CBluetoothSocket1 ~ |
|
474 COMMAND CBluetoothSocket1 RSocketServerClose |
|
475 END_TEST_BLOCK |
|
476 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0018 |
|
477 |
|
478 |
|
479 |
|
480 //!START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0019 |
|
481 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0019 |
|
482 //! @SYMAPI CBluetoothSocket |
|
483 //! @SYMAuthor Johan Eriksson |
|
484 //! @SYMCreationDate 16/03/2006 |
|
485 //! @SYMTestCaseDesc Create a CBluetoothSocket with a named protocol, but with no session on the socket server |
|
486 //! Uses API elements: NewL()3 |
|
487 //! @SYMTestActions 1. Call the third NewL of the CBluetoothSocket class without a session open on the socket server |
|
488 //! @SYMTestStatus Implemented |
|
489 //! @SYMTestPriority Critical |
|
490 //! @SYMTestExpectedResults Leave, unable to create a socket |
|
491 //! @SYMTestType CIT |
|
492 //! START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
493 //! CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
494 //! COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0019-0001command1NewL |
|
495 //! COMMAND CBluetoothSocket1 ~ |
|
496 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
497 //!END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0019 |
|
498 |
|
499 |
|
500 |
|
501 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0020 |
|
502 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0020 |
|
503 //! @SYMAPI CBluetoothSocket |
|
504 //! @SYMAuthor Johan Eriksson |
|
505 //! @SYMCreationDate 16/03/2006 |
|
506 //! @SYMTestCaseDesc Create a CBluetoothSocket with a named protocol, using NewLC constructor. |
|
507 //! Uses API elements: NewLC()3 |
|
508 //! @SYMTestActions 1. Create and start a session on the socket server |
|
509 //! 2. Call the third NewLC of the CBluetoothSocket class |
|
510 //! 3. Pop and destroy the CBluetoothSocket object from the cleanup stack |
|
511 //! @SYMTestStatus Implemented |
|
512 //! @SYMTestPriority Critical |
|
513 //! @SYMTestExpectedResults Object created successfully |
|
514 //! @SYMTestType CIT |
|
515 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
516 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
517 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
518 COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Unconnected-0020-0001command2NewLC |
|
519 COMMAND CBluetoothSocket1 ~ |
|
520 COMMAND CBluetoothSocket1 RSocketServerClose |
|
521 END_TEST_BLOCK |
|
522 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0020 |
|
523 |
|
524 |
|
525 |
|
526 //!START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0021 |
|
527 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0021 |
|
528 //! @SYMAPI CBluetoothSocket |
|
529 //! @SYMAuthor Johan Eriksson |
|
530 //! @SYMCreationDate 16/03/2006 |
|
531 //! @SYMTestCaseDesc Create a CBluetoothSocket with a named protocol, but with no session on the socket server |
|
532 //! Uses API elements: NewLC()3 |
|
533 //! @SYMTestActions 1. Call the third NewLC of the CBluetoothSocket class without a session open on the socket server |
|
534 //! @SYMTestStatus Implemented |
|
535 //! @SYMTestPriority Critical |
|
536 //! @SYMTestExpectedResults Leave, unable to create a socket |
|
537 //! @SYMTestType CIT |
|
538 //! START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
539 //! CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
540 //! COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Unconnected-0021-0001command1NewLC |
|
541 //! COMMAND CBluetoothSocket1 ~ |
|
542 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
543 //!END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0021 |
|
544 |
|
545 |
|
546 |
|
547 //Constructor for Bluetooth socket using an existing RSocket instance. |
|
548 |
|
549 |
|
550 |
|
551 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0022 |
|
552 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0022 |
|
553 //! @SYMAPI CBluetoothSocket |
|
554 //! @SYMAuthor Johan Eriksson |
|
555 //! @SYMCreationDate 16/03/2006 |
|
556 //! @SYMTestCaseDesc Create a CBluetoothSocket with an existing RSocket instance, using NewL constructor. |
|
557 //! Uses API elements: NewL()5 |
|
558 //! @SYMTestActions 1. Create and start a session on the socket server |
|
559 //! 2. A Socket is open and is set as "Transferable" through the KSOEnableTransfer SetOpt |
|
560 //! 3. Call the fifth NewL of the CBluetoothSocket class |
|
561 //! 4. Destroy object |
|
562 //! @SYMTestStatus Implemented |
|
563 //! @SYMTestPriority Critical |
|
564 //! @SYMTestExpectedResults Object created successfully |
|
565 //! @SYMTestType CIT |
|
566 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
567 CREATE_OBJECT RSocket RSocket1 |
|
568 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
569 COMMAND RSocket1 RSocketServerConnect |
|
570 COMMAND RSocket1 RSocketOpen BT-USER-SOCK-PublicAPI-Unconnected-0022-0001command2RSocketOpen |
|
571 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
572 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0022-0001command5NewL |
|
573 COMMAND CBluetoothSocket1 Info |
|
574 COMMAND CBluetoothSocket1 ~ |
|
575 COMMAND CBluetoothSocket1 RSocketServerClose |
|
576 COMMAND !Error=-8 RSocket1 Info |
|
577 COMMAND RSocket1 RSocketClose |
|
578 COMMAND RSocket1 RSocketServerClose |
|
579 END_TEST_BLOCK |
|
580 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0022 |
|
581 |
|
582 |
|
583 |
|
584 //!START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0023 |
|
585 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0023 |
|
586 //! @SYMAPI CBluetoothSocket |
|
587 //! @SYMAuthor Johan Eriksson |
|
588 //! @SYMCreationDate 16/03/2006 |
|
589 //! @SYMTestCaseDesc Create a CBluetoothSocket with an existing RSocket instance, but with no session on the socket server |
|
590 //! Uses API elements: NewL()5 |
|
591 //! @SYMTestActions 1. Call the fifth NewL of the CBluetoothSocket class without a session open on the socket server |
|
592 //! @SYMTestStatus Implemented |
|
593 //! @SYMTestPriority Critical |
|
594 //! @SYMTestExpectedResults Leave, unable to create a socket |
|
595 //! @SYMTestType CIT |
|
596 //! START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
597 //! CREATE_OBJECT RSocket RSocket1 |
|
598 //! CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
599 //! COMMAND RSocket1 RSocketServerConnect |
|
600 //! COMMAND CBluetoothSocket1 RSocketServerConnect |
|
601 //! COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0023-0001command4NewL |
|
602 //! COMMAND CBluetoothSocket1 ~ |
|
603 //! COMMAND CBluetoothSocket1 RSocketServerClose |
|
604 //! COMMAND RSocket1 RSocketClose |
|
605 //! COMMAND RSocket1 RSocketServerClose |
|
606 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
607 //!END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0023 |
|
608 |
|
609 |
|
610 |
|
611 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0024 |
|
612 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0024 |
|
613 //! @SYMAPI CBluetoothSocket |
|
614 //! @SYMAuthor Johan Eriksson |
|
615 //! @SYMCreationDate 16/03/2006 |
|
616 //! @SYMTestCaseDesc Create a CBluetoothSocket with an existing RSocket instance, using NewLC constructor. |
|
617 //! Uses API elements: NewL()5 |
|
618 //! @SYMTestActions 1. Create and start a session on the socket server |
|
619 //! 2. A Socket is open and is set as "Transferable" through the KSOEnableTransfer SetOpt |
|
620 //! 3. Call the fifth NewLC of the CBluetoothSocket class |
|
621 //! 4. Pop and destroy the CBluetoothSocket object from the cleanup stack |
|
622 //! @SYMTestStatus Implemented |
|
623 //! @SYMTestPriority Critical |
|
624 //! @SYMTestExpectedResults Object created successfully |
|
625 //! @SYMTestType CIT |
|
626 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
627 CREATE_OBJECT RSocket RSocket1 |
|
628 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
629 COMMAND RSocket1 RSocketServerConnect |
|
630 COMMAND RSocket1 RSocketOpen BT-USER-SOCK-PublicAPI-Unconnected-0024-0001command2RSocketOpen |
|
631 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
632 COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Unconnected-0024-0001command5NewLC |
|
633 COMMAND CBluetoothSocket1 Info |
|
634 COMMAND CBluetoothSocket1 ~ |
|
635 COMMAND CBluetoothSocket1 RSocketServerClose |
|
636 COMMAND !Error=-8 RSocket1 Info |
|
637 COMMAND RSocket1 RSocketClose |
|
638 COMMAND RSocket1 RSocketServerClose |
|
639 END_TEST_BLOCK |
|
640 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0024 |
|
641 |
|
642 |
|
643 |
|
644 //!START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0025 |
|
645 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0025 |
|
646 //! @SYMAPI CBluetoothSocket |
|
647 //! @SYMAuthor Johan Eriksson |
|
648 //! @SYMCreationDate 16/03/2006 |
|
649 //! @SYMTestCaseDesc Create a CBluetoothSocket with an existing RSocket instance, but with no session on the socket server |
|
650 //! Uses API elements: NewLC()5 |
|
651 //! @SYMTestActions 1. Call the fifth NewLC of the CBluetoothSocket class without a session open on the socket server |
|
652 //! @SYMTestStatus Implemented |
|
653 //! @SYMTestPriority Critical |
|
654 //! @SYMTestExpectedResults Leave, unable to create a socket |
|
655 //! @SYMTestType CIT |
|
656 //! START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
657 //! CREATE_OBJECT RSocket RSocket1 |
|
658 //! CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
659 //! COMMAND RSocket1 RSocketServerConnect |
|
660 //! COMMAND CBluetoothSocket1 RSocketServerConnect |
|
661 //! COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Unconnected-0025-0001command4NewLC |
|
662 //! COMMAND CBluetoothSocket1 ~ |
|
663 //! COMMAND CBluetoothSocket1 RSocketServerClose |
|
664 //! COMMAND RSocket1 RSocketClose |
|
665 //! COMMAND RSocket1 RSocketServerClose |
|
666 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
667 //!END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0025 |
|
668 |
|
669 |
|
670 |
|
671 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0026 |
|
672 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0026 |
|
673 //! @SYMAPI CBluetoothSocket |
|
674 //! @SYMAuthor Johan Eriksson |
|
675 //! @SYMCreationDate 06/04/2006 |
|
676 //! @SYMTestCaseDesc Verify that the MBluetoothSocketNotifier MBSN_ExtensionInterfaceL method can be called. |
|
677 //! Uses API elements: NewL(), MBSN_ExtensionInterfaceL(), Shutdown()2 |
|
678 //! @SYMTestActions 1. Create and start a session on the socket server |
|
679 //! 2. Call the first NewL of the CBluetoothSocket class |
|
680 //! 3. Call MBSN_ExtensionInterfaceL MBluetoothSocketNotifier and verify that the pointer returned is null |
|
681 //! 4. Destroy object |
|
682 //! @SYMTestStatus Implemented |
|
683 //! @SYMTestPriority Critical |
|
684 //! @SYMTestExpectedResults MBSN_ExtensionInterfaceL method called and returns a null pointer |
|
685 //! @SYMTestType CIT |
|
686 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
687 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
688 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
689 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0026-0001command2NewL |
|
690 COMMAND CBluetoothSocket1 TestMBSN_ExtensionInterfaceL BT-USER-SOCK-PublicAPI-Unconnected-0026-0001command3TestMBSN_ExtensionInterfaceL |
|
691 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Unconnected-0026-0001command4Shutdown |
|
692 OUTSTANDING |
|
693 COMMAND CBluetoothSocket1 ~ |
|
694 COMMAND CBluetoothSocket1 RSocketServerClose |
|
695 END_TEST_BLOCK |
|
696 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0026 |
|
697 |
|
698 |
|
699 |
|
700 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0027 |
|
701 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0027 |
|
702 //! @SYMAPI CBluetoothSocket |
|
703 //! @SYMAuthor Johan Eriksson |
|
704 //! @SYMCreationDate 27/03/2006 |
|
705 //! @SYMTestCaseDesc Call Listen()2 that is not supported in right context |
|
706 //! Uses API elements: NewL()1, Bind, listen()2, Shutdown()1, |
|
707 //! HandleShutdownCompleteL |
|
708 //! @SYMTestActions 1. Create and start a session on the socket server |
|
709 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
710 //! 3. Create an TRfcommSockAddr object |
|
711 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
712 //! 5. Set the Family to Bluetooth (257) |
|
713 //! 6. Set the port to the one matching the protocol to use |
|
714 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
715 //! 8. Call the listen()2 method of the CBluetoothSocket object |
|
716 //! 9. Do socket cleanup by calling Shutdown()1 |
|
717 //! 10. HandleShutdownCompleteL gets called verify error code |
|
718 //! 11. delete CBluetoothSocket object |
|
719 //! Synchronization point |
|
720 //! @SYMTestStatus Implemented |
|
721 //! @SYMTestPriority Critical |
|
722 //! @SYMTestExpectedResults Listen()2 Returns errorcode -5 (not supported) |
|
723 //! @SYMTestType CIT |
|
724 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
725 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
726 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
727 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
728 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
729 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0027-0001command2NewL |
|
730 COMMAND TRfcommSockAddr1 Construct |
|
731 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0027-0001command5SetBTAddr |
|
732 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Unconnected-0027-0001command6SetFamily |
|
733 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0027-0001command7SetPort |
|
734 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Unconnected-0027-0001command9Bind |
|
735 COMMAND !Error=-5 CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Unconnected-0027-0001command10Listen |
|
736 DELAY 30000 |
|
737 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Unconnected-0027-0001command12Shutdown |
|
738 OUTSTANDING |
|
739 COMMAND CBluetoothSocket1 ~ |
|
740 COMMAND CBluetoothSocket1 RSocketServerClose |
|
741 END_TEST_BLOCK |
|
742 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0027 |
|
743 |
|
744 |
|
745 |
|
746 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0028 |
|
747 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0028 |
|
748 //! @SYMAPI CBluetoothSocket |
|
749 //! @SYMAuthor Johan Eriksson |
|
750 //! @SYMCreationDate 27/03/2006 |
|
751 //! @SYMTestCaseDesc Call RecvFrom which will not work as Symbian has no connectionless Bluetooth |
|
752 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, RecvFrom()1, |
|
753 //! HandleReceiveCompleteL, Shutdown()1, |
|
754 //! HandleShutdownCompleteL |
|
755 //! @SYMTestActions Wait for master to order start |
|
756 //! 1. Create and start a session on the socket server |
|
757 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
758 //! 3. Create an TRfcommSockAddr object |
|
759 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
760 //! 5. Set the Family to Bluetooth (257) |
|
761 //! 6. Set the port to the one matching the protocol to use |
|
762 //! 7. Read data sent to socket using RecvFrom()1 |
|
763 //! 8. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
764 //! Synchronization point |
|
765 //! 9. Do socket cleanup by calling Shutdown()1 |
|
766 //! 10. HandleShutdownCompleteL gets called verify error code |
|
767 //! 11. delete CBluetoothSocket object |
|
768 //! Synchronization point |
|
769 //! @SYMTestStatus Implemented |
|
770 //! @SYMTestPriority Critical |
|
771 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
772 //! @SYMTestType CIT |
|
773 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
774 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
775 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
776 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
777 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0028-0001command2NewL |
|
778 COMMAND TRfcommSockAddr1 Construct |
|
779 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0028-0001command5SetBTAddr |
|
780 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Unconnected-0028-0001command6SetFamily |
|
781 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0028-0001command7SetPort |
|
782 COMMAND !AsyncError=-18 CBluetoothSocket1 RecvFrom BT-USER-SOCK-PublicAPI-Unconnected-0028-0001command9RecvFrom |
|
783 OUTSTANDING |
|
784 COMMAND CBluetoothSocket1 CancelRecv |
|
785 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Unconnected-0028-0001command11Shutdown |
|
786 OUTSTANDING |
|
787 COMMAND CBluetoothSocket1 ~ |
|
788 COMMAND CBluetoothSocket1 RSocketServerClose |
|
789 END_TEST_BLOCK |
|
790 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0028 |
|
791 |
|
792 |
|
793 |
|
794 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0029 |
|
795 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0029 |
|
796 //! @SYMAPI CBluetoothSocket |
|
797 //! @SYMAuthor Johan Eriksson |
|
798 //! @SYMCreationDate 27/03/2006 |
|
799 //! @SYMTestCaseDesc Call RecvFrom2 which will not work as Symbian has no connectionless Bluetooth |
|
800 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, RecvFrom()2, |
|
801 //! HandleReceiveCompleteL, Shutdown()1, |
|
802 //! HandleShutdownCompleteL |
|
803 //! @SYMTestActions Wait for master to order start |
|
804 //! 1. Create and start a session on the socket server |
|
805 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
806 //! 3. Create an TRfcommSockAddr object |
|
807 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
808 //! 5. Set the Family to Bluetooth (257) |
|
809 //! 6. Set the port to the one matching the protocol to use |
|
810 //! 7. Read data sent to socket using RecvFrom()2 |
|
811 //! 8. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
812 //! Synchronization point |
|
813 //! 9. Do socket cleanup by calling Shutdown()1 |
|
814 //! 10. HandleShutdownCompleteL gets called verify error code |
|
815 //! 11. delete CBluetoothSocket object |
|
816 //! Synchronization point |
|
817 //! @SYMTestStatus Implemented |
|
818 //! @SYMTestPriority Critical |
|
819 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
820 //! @SYMTestType CIT |
|
821 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
822 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
823 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
824 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
825 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0029-0001command2NewL |
|
826 COMMAND TRfcommSockAddr1 Construct |
|
827 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0029-0001command5SetBTAddr |
|
828 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Unconnected-0029-0001command6SetFamily |
|
829 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0029-0001command7SetPort |
|
830 COMMAND !AsyncError=-18 CBluetoothSocket1 RecvFrom BT-USER-SOCK-PublicAPI-Unconnected-0029-0001command9RecvFrom |
|
831 OUTSTANDING |
|
832 COMMAND CBluetoothSocket1 CancelRecv |
|
833 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Unconnected-0029-0001command11Shutdown |
|
834 OUTSTANDING |
|
835 COMMAND CBluetoothSocket1 ~ |
|
836 COMMAND CBluetoothSocket1 RSocketServerClose |
|
837 END_TEST_BLOCK |
|
838 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0029 |
|
839 |
|
840 |
|
841 |
|
842 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0030 |
|
843 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0030 |
|
844 //! @SYMAPI CBluetoothSocket |
|
845 //! @SYMAuthor Johan Eriksson |
|
846 //! @SYMCreationDate 27/03/2006 |
|
847 //! @SYMTestCaseDesc Call SendTo1 which will not work as Symbian has no connectionless Bluetooth |
|
848 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
849 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
850 //! 2. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
851 //! 3. Create an empty TBTServiceSecurity object |
|
852 //! 4. Create a TRfcommSockAddr object |
|
853 //! 5. Set the Security of the TRfcommSockAddr |
|
854 //! 6. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
855 //! 7. Set the port to the specific one of the protocol we use |
|
856 //! 8. Verify the set BT Address |
|
857 //! 9. Send data using SendTo()1 |
|
858 //! 10. Do socket cleanup |
|
859 //! 11. delete CBluetoothSocket object |
|
860 //! @SYMTestStatus Implemented |
|
861 //! @SYMTestPriority Critical |
|
862 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
863 //! @SYMTestType CIT |
|
864 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
865 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
866 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
867 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
868 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
869 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0030-0001command2NewL |
|
870 COMMAND TBTServiceSecurity1 Construct |
|
871 COMMAND TRfcommSockAddr1 Construct |
|
872 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0030-0001command7SetSecurity |
|
873 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0030-0001command8SetBTAddr |
|
874 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0030-0001command9SetPort |
|
875 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Unconnected-0030-0001command10BTAddr |
|
876 COMMAND !AsyncError=-18 CBluetoothSocket1 SendTo BT-USER-SOCK-PublicAPI-Unconnected-0030-0001command12SendTo |
|
877 OUTSTANDING |
|
878 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Unconnected-0030-0001command13Shutdown |
|
879 OUTSTANDING |
|
880 COMMAND CBluetoothSocket1 ~ |
|
881 COMMAND CBluetoothSocket1 RSocketServerClose |
|
882 END_TEST_BLOCK |
|
883 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0030 |
|
884 |
|
885 |
|
886 |
|
887 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0031 |
|
888 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0031 |
|
889 //! @SYMAPI CBluetoothSocket |
|
890 //! @SYMAuthor Johan Eriksson |
|
891 //! @SYMCreationDate 27/03/2006 |
|
892 //! @SYMTestCaseDesc Call SendTo2 which will not work as Symbian has no connectionless Bluetooth |
|
893 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
894 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
895 //! 2. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
896 //! 3. Create an empty TBTServiceSecurity object |
|
897 //! 4. Create a TRfcommSockAddr object |
|
898 //! 5. Set the Security of the TRfcommSockAddr |
|
899 //! 6. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
900 //! 7. Set the port to the specific one of the protocol we use |
|
901 //! 8. Verify the set BT Address |
|
902 //! 9. Send data using SendTo()2 |
|
903 //! 10. Do socket cleanup |
|
904 //! 11. delete CBluetoothSocket object |
|
905 //! @SYMTestStatus Implemented |
|
906 //! @SYMTestPriority Critical |
|
907 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
908 //! @SYMTestType CIT |
|
909 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
910 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
911 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
912 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
913 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
914 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0031-0001command2NewL |
|
915 COMMAND TBTServiceSecurity1 Construct |
|
916 COMMAND TRfcommSockAddr1 Construct |
|
917 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0031-0001command7SetSecurity |
|
918 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0031-0001command8SetBTAddr |
|
919 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0031-0001command9SetPort |
|
920 COMMAND TRfcommSockAddr1 BTAddr |
|
921 COMMAND !AsyncError=-18 CBluetoothSocket1 SendTo BT-USER-SOCK-PublicAPI-Unconnected-0031-0001command12SendTo |
|
922 OUTSTANDING |
|
923 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Unconnected-0031-0001command13Shutdown |
|
924 OUTSTANDING |
|
925 COMMAND CBluetoothSocket1 ~ |
|
926 COMMAND CBluetoothSocket1 RSocketServerClose |
|
927 END_TEST_BLOCK |
|
928 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0031 |
|
929 |
|
930 |
|
931 |
|
932 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0032 |
|
933 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0032 |
|
934 //! @SYMAPI CBluetoothSocket |
|
935 //! @SYMAuthor James Mechen |
|
936 //! @SYMCreationDate 07/08/2006 |
|
937 //! @SYMTestCaseDesc Call SendTo1 while already sending |
|
938 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, SendTo()1, HandleSendCompleteL |
|
939 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
940 //! 2. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
941 //! 3. Create an empty TBTServiceSecurity object |
|
942 //! 4. Create a TRfcommSockAddr object |
|
943 //! 5. Set the Security of the TRfcommSockAddr |
|
944 //! 6. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
945 //! 7. Set the port to the specific one of the protocol we use |
|
946 //! 8. Verify the set BT Address |
|
947 //! 9. Send data using SendTo()1 |
|
948 //! 10. Immediately send data using SendTo()1 again |
|
949 //! 11. Do socket cleanup |
|
950 //! 12. delete CBluetoothSocket object |
|
951 //! @SYMTestStatus Implemented |
|
952 //! @SYMTestPriority High |
|
953 //! @SYMTestExpectedResults Connection setup successfully and SendTo returns KErrInUse |
|
954 //! @SYMTestType CIT |
|
955 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
956 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
957 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
958 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
959 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
960 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0032-0001command2NewL |
|
961 COMMAND TBTServiceSecurity1 Construct |
|
962 COMMAND TRfcommSockAddr1 Construct |
|
963 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0032-0001command7SetSecurity |
|
964 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0032-0001command8SetBTAddr |
|
965 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0032-0001command9SetPort |
|
966 COMMAND TRfcommSockAddr1 BTAddr |
|
967 COMMAND !Error=-14 !AsyncError=-18 CBluetoothSocket1 SendTo BT-USER-SOCK-PublicAPI-Unconnected-0032-0001command12SendTo |
|
968 OUTSTANDING |
|
969 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Unconnected-0032-0001command13Shutdown |
|
970 OUTSTANDING |
|
971 COMMAND CBluetoothSocket1 ~ |
|
972 COMMAND CBluetoothSocket1 RSocketServerClose |
|
973 END_TEST_BLOCK |
|
974 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0032 |
|
975 |
|
976 |
|
977 |
|
978 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0033 |
|
979 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0033 |
|
980 //! @SYMAPI CBluetoothSocket |
|
981 //! @SYMAuthor James Mechen |
|
982 //! @SYMCreationDate 07/08/2006 |
|
983 //! @SYMTestCaseDesc Call SendTo2 while already sending |
|
984 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, SendTo()2, HandleSendCompleteL |
|
985 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
986 //! 2. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
987 //! 3. Create an empty TBTServiceSecurity object |
|
988 //! 4. Create a TRfcommSockAddr object |
|
989 //! 5. Set the Security of the TRfcommSockAddr |
|
990 //! 6. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
991 //! 7. Set the port to the specific one of the protocol we use |
|
992 //! 8. Verify the set BT Address |
|
993 //! 9. Send data using SendTo()2 |
|
994 //! 10. Immediately send data using SendTo()2 again |
|
995 //! 11. Do socket cleanup |
|
996 //! 12. delete CBluetoothSocket object |
|
997 //! @SYMTestStatus Implemented |
|
998 //! @SYMTestPriority High |
|
999 //! @SYMTestExpectedResults Connection setup successfully and SendTo returns KErrInUse |
|
1000 //! @SYMTestType CIT |
|
1001 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1002 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1003 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1004 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1005 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1006 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0033-0001command2NewL |
|
1007 COMMAND TBTServiceSecurity1 Construct |
|
1008 COMMAND TRfcommSockAddr1 Construct |
|
1009 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0033-0001command7SetSecurity |
|
1010 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0033-0001command8SetBTAddr |
|
1011 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0033-0001command9SetPort |
|
1012 COMMAND TRfcommSockAddr1 BTAddr |
|
1013 COMMAND !Error=-14 !AsyncError=-18 CBluetoothSocket1 SendTo BT-USER-SOCK-PublicAPI-Unconnected-0033-0001command12SendTo |
|
1014 OUTSTANDING |
|
1015 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Unconnected-0033-0001command13Shutdown |
|
1016 OUTSTANDING |
|
1017 COMMAND CBluetoothSocket1 ~ |
|
1018 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1019 END_TEST_BLOCK |
|
1020 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0033 |
|
1021 |
|
1022 |
|
1023 |
|
1024 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0035 |
|
1025 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0035 |
|
1026 //! @SYMAPI CBluetoothSocket |
|
1027 //! @SYMAuthor James Mechen |
|
1028 //! @SYMCreationDate 07/08/2006 |
|
1029 //! @SYMTestCaseDesc Try setting local port to 0 |
|
1030 //! Uses API elements: NewLC()1, SetLocalport |
|
1031 //! @SYMTestActions 1. Create and start a session on the socket server |
|
1032 //! 2. Create a CBluetoothSocket using the NewLC()1 with KSockStream and KRFCOMM |
|
1033 //! 3. Use SetLocalport to bind with only port set use port 0 |
|
1034 //! 4. Do socket cleanup |
|
1035 //! 5. Delete CBluetoothSocket object |
|
1036 //! @SYMTestStatus Implemented |
|
1037 //! @SYMTestPriority High |
|
1038 //! @SYMTestExpectedResults Error KErrRfcommBadAddress is returned by SetLocalport |
|
1039 //! @SYMTestType CIT |
|
1040 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1041 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1042 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1043 COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Unconnected-0035-0001command2NewLC |
|
1044 COMMAND !Error=-6352 CBluetoothSocket1 SetLocalPort BT-USER-SOCK-PublicAPI-Unconnected-0035-0001command3SetLocalPort |
|
1045 COMMAND CBluetoothSocket1 ~ |
|
1046 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1047 END_TEST_BLOCK |
|
1048 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0035 |
|
1049 |
|
1050 |
|
1051 |
|
1052 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0036 |
|
1053 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0036 |
|
1054 //! @SYMAPI CBluetoothSocket |
|
1055 //! @SYMAuthor James Mechen |
|
1056 //! @SYMCreationDate 07/08/2006 |
|
1057 //! @SYMTestCaseDesc Try to listen without calling Bind() first |
|
1058 //! Uses API elements: NewL()1, listen()1 |
|
1059 //! @SYMTestActions 1. Create and start a session on the socket server |
|
1060 //! 2. Create a CBluetoothSocket using the NewL()1 with KSockStream and KRFCOMM |
|
1061 //! 3. Create and instantiate a TBTSockAddr class |
|
1062 //! 4. Create a TBTServiceSecurity object and set all security settings to false |
|
1063 //! 5. Set the security of TBTSockAddr to the TBTServiceSecurity object |
|
1064 //! 6. Set the port of the TBTSockAddr to 1 (RFCOMM range is 1-30) |
|
1065 //! 7. Call the listen1 method of the CBluetoothSocket object |
|
1066 //! 8. Do socket cleanup |
|
1067 //! 9. Delete CBluetoothSocket object |
|
1068 //! @SYMTestStatus Implemented |
|
1069 //! @SYMTestPriority High |
|
1070 //! @SYMTestExpectedResults Error KErrBadName is returned by Listen() |
|
1071 //! @SYMTestType CIT |
|
1072 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1073 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1074 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
1075 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1076 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1077 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0036-0001command2NewL |
|
1078 COMMAND TBTServiceSecurity1 Construct |
|
1079 COMMAND TBTSockAddr1 Construct |
|
1080 COMMAND TBTSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0036-0001command7SetSecurity |
|
1081 COMMAND TBTSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0036-0001command8SetBTAddr |
|
1082 COMMAND TBTSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0036-0001command9SetPort |
|
1083 COMMAND !Error=-28 CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Unconnected-0036-0001command11Listen |
|
1084 COMMAND CBluetoothSocket1 ~ |
|
1085 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1086 END_TEST_BLOCK |
|
1087 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0036 |
|
1088 |
|
1089 |
|
1090 |
|
1091 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0037 |
|
1092 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0037 |
|
1093 //! @SYMAPI CBluetoothSocket |
|
1094 //! @SYMAuthor James Mechen |
|
1095 //! @SYMCreationDate 07/08/2006 |
|
1096 //! @SYMTestCaseDesc Try to listen without calling Bind() first |
|
1097 //! Uses API elements: NewL()1, listen()2 |
|
1098 //! @SYMTestActions 1. Create and start a session on the socket server |
|
1099 //! 2. Create a CBluetoothSocket using the NewL()1 with KSockStream and KRFCOMM |
|
1100 //! 3. Create and instantiate a TBTSockAddr class |
|
1101 //! 4. Create a TBTServiceSecurity object and set all security settings to false |
|
1102 //! 5. Set the security of TBTSockAddr to the TBTServiceSecurity object |
|
1103 //! 6. Set the port of the TBTSockAddr to 1 (RFCOMM range is 1-30) |
|
1104 //! 7. Call the listen2 method of the CBluetoothSocket object |
|
1105 //! 8. Do socket cleanup |
|
1106 //! 9. Delete CBluetoothSocket object |
|
1107 //! @SYMTestStatus Implemented |
|
1108 //! @SYMTestPriority High |
|
1109 //! @SYMTestExpectedResults Error KErrBadName is returned by Listen() |
|
1110 //! @SYMTestType CIT |
|
1111 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1112 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1113 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
1114 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1115 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1116 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0037-0001command2NewL |
|
1117 COMMAND TBTServiceSecurity1 Construct |
|
1118 COMMAND TBTSockAddr1 Construct |
|
1119 COMMAND TBTSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0037-0001command7SetSecurity |
|
1120 COMMAND TBTSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0037-0001command8SetBTAddr |
|
1121 COMMAND TBTSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0037-0001command9SetPort |
|
1122 COMMAND !Error=-28 CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Unconnected-0037-0001command11Listen |
|
1123 COMMAND CBluetoothSocket1 ~ |
|
1124 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1125 END_TEST_BLOCK |
|
1126 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0037 |
|
1127 |
|
1128 |
|
1129 |
|
1130 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0038 |
|
1131 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0038 |
|
1132 //! @SYMAPI CBluetoothSocket |
|
1133 //! @SYMAuthor James Mechen |
|
1134 //! @SYMCreationDate 07/08/2006 |
|
1135 //! @SYMTestCaseDesc Try to listen without calling Bind() first |
|
1136 //! Uses API elements: NewL()1, listen()3 |
|
1137 //! @SYMTestActions 1. Create and start a session on the socket server |
|
1138 //! 2. Create a CBluetoothSocket using the NewL()1 with KSockStream and KRFCOMM |
|
1139 //! 3. Create and instantiate a TBTSockAddr class |
|
1140 //! 4. Create a TBTServiceSecurity object and set all security settings to false |
|
1141 //! 5. Set the security of TBTSockAddr to the TBTServiceSecurity object |
|
1142 //! 6. Set the port of the TBTSockAddr to 1 (RFCOMM range is 1-30) |
|
1143 //! 7. Call the listen3 method of the CBluetoothSocket object |
|
1144 //! 8. Do socket cleanup |
|
1145 //! 9. Delete CBluetoothSocket object |
|
1146 //! @SYMTestStatus Implemented |
|
1147 //! @SYMTestPriority High |
|
1148 //! @SYMTestExpectedResults Error KErrBadName is returned by Listen() |
|
1149 //! @SYMTestType CIT |
|
1150 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1151 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1152 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
1153 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1154 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1155 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0038-0001command2NewL |
|
1156 COMMAND TBTServiceSecurity1 Construct |
|
1157 COMMAND TBTSockAddr1 Construct |
|
1158 COMMAND TBTSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0038-0001command7SetSecurity |
|
1159 COMMAND TBTSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0038-0001command8SetBTAddr |
|
1160 COMMAND TBTSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0038-0001command9SetPort |
|
1161 COMMAND !Error=-28 CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Unconnected-0038-0001command11Listen |
|
1162 COMMAND CBluetoothSocket1 ~ |
|
1163 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1164 END_TEST_BLOCK |
|
1165 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0038 |
|
1166 |
|
1167 |
|
1168 |
|
1169 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0039 |
|
1170 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0039 |
|
1171 //! @SYMAPI CBluetoothSocket |
|
1172 //! @SYMAuthor James Mechen |
|
1173 //! @SYMCreationDate 07/08/2006 |
|
1174 //! @SYMTestCaseDesc Try to shutdown while already shutting down. |
|
1175 //! Uses API elements: NewL(), Shutdown()1 |
|
1176 //! @SYMTestActions 1. Create and start a session on the socket server |
|
1177 //! 2. Call the first NewL of the CBluetoothSocket class |
|
1178 //! 3. Call shutdown()1 |
|
1179 //! 4. Immediately call shutdown()1 again |
|
1180 //! 5. Destroy object |
|
1181 //! @SYMTestStatus Implemented |
|
1182 //! @SYMTestPriority High |
|
1183 //! @SYMTestExpectedResults The second shutdown returns error KErrInUse |
|
1184 //! @SYMTestType CIT |
|
1185 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1186 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1187 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1188 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0039-0001command2NewL |
|
1189 COMMAND !Error=-14 CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Unconnected-0039-0001command3Shutdown |
|
1190 OUTSTANDING |
|
1191 COMMAND CBluetoothSocket1 ~ |
|
1192 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1193 END_TEST_BLOCK |
|
1194 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0039 |
|
1195 |
|
1196 |
|
1197 |
|
1198 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0040 |
|
1199 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0040 |
|
1200 //! @SYMAPI CBluetoothSocket |
|
1201 //! @SYMAuthor James Mechen |
|
1202 //! @SYMCreationDate 07/08/2006 |
|
1203 //! @SYMTestCaseDesc Try to shutdown while already shutting down. |
|
1204 //! Uses API elements: NewL(), Shutdown()2 |
|
1205 //! @SYMTestActions 1. Create and start a session on the socket server |
|
1206 //! 2. Call the first NewL of the CBluetoothSocket class |
|
1207 //! 3. Call shutdown()2 |
|
1208 //! 4. Immediately call shutdown()2 again |
|
1209 //! 5. Destroy object |
|
1210 //! @SYMTestStatus Implemented |
|
1211 //! @SYMTestPriority High |
|
1212 //! @SYMTestExpectedResults The second shutdown returns error KErrInUse |
|
1213 //! @SYMTestType CIT |
|
1214 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1215 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1216 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1217 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0040-0001command2NewL |
|
1218 COMMAND !Error=-14 CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Unconnected-0040-0001command3Shutdown |
|
1219 OUTSTANDING |
|
1220 COMMAND CBluetoothSocket1 ~ |
|
1221 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1222 END_TEST_BLOCK |
|
1223 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0040 |
|
1224 |
|
1225 |
|
1226 |
|
1227 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0041 |
|
1228 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0041 |
|
1229 //! @SYMAPI CBluetoothSocket |
|
1230 //! @SYMAuthor James Mechen |
|
1231 //! @SYMCreationDate 10/08/2006 |
|
1232 //! @SYMTestCaseDesc Call Connect1 with the Address of a none existing device |
|
1233 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL |
|
1234 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
1235 //! 2. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1236 //! 3. Create an empty TBTServiceSecurity object |
|
1237 //! 4. Create a TRfcommSockAddr object |
|
1238 //! 5. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1239 //! 6. Set the port to the specific one of the protocol we use |
|
1240 //! 7. Connect to an unknown address |
|
1241 //! 8. HandleConnectCompleteL gets called indicating that connecting the BT connection completed with error EPageTimedOut |
|
1242 //! 9. delete CBluetoothSocket object |
|
1243 //! @SYMTestStatus Implemented |
|
1244 //! @SYMTestPriority Critical |
|
1245 //! @SYMTestExpectedResults Connect fails with error EPageTimedOut |
|
1246 //! @SYMTestType CIT |
|
1247 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1248 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1249 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1250 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1251 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1252 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0041-0001command2NewL |
|
1253 COMMAND TBTServiceSecurity1 Construct |
|
1254 COMMAND TRfcommSockAddr1 Construct |
|
1255 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0041-0001command7SetSecurity |
|
1256 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0041-0001command8SetBTAddr |
|
1257 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0041-0001command9SetPort |
|
1258 COMMAND TRfcommSockAddr1 BTAddr |
|
1259 COMMAND !AsyncError=-6004 CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Unconnected-0041-0001command12Connect |
|
1260 OUTSTANDING |
|
1261 COMMAND CBluetoothSocket1 ~ |
|
1262 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1263 END_TEST_BLOCK |
|
1264 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0041 |
|
1265 |
|
1266 |
|
1267 |
|
1268 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0042 |
|
1269 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0042 |
|
1270 //! @SYMAPI CBluetoothSocket |
|
1271 //! @SYMAuthor James Mechen |
|
1272 //! @SYMCreationDate 10/08/2006 |
|
1273 //! @SYMTestCaseDesc Call LocalName on blank unconnected socket |
|
1274 //! Uses API elements: NewL()9, LocalName |
|
1275 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
1276 //! 2. Create the CBluetoothSocket object using NewL()9 (Blank constructor) |
|
1277 //! 3. Create an empty TBTServiceSecurity object |
|
1278 //! 4. Create a TRfcommSockAddr object |
|
1279 //! 5. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1280 //! 6. Set the port to the specific one of the protocol we use |
|
1281 //! 7. Call LocalName |
|
1282 //! 8. delete CBluetoothSocket object |
|
1283 //! @SYMTestStatus Implemented |
|
1284 //! @SYMTestPriority Critical |
|
1285 //! @SYMTestExpectedResults LocalName causes a ESOCK panic code 17 |
|
1286 //! @SYMTestType CIT |
|
1287 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1288 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1289 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1290 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1291 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1292 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0042-0001command2NewL |
|
1293 COMMAND TBTServiceSecurity1 Construct |
|
1294 COMMAND TRfcommSockAddr1 Construct |
|
1295 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0042-0001command7SetSecurity |
|
1296 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0042-0001command8SetPort |
|
1297 COMMAND CBluetoothSocket1 LocalName |
|
1298 COMMAND CBluetoothSocket1 ~ |
|
1299 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1300 END_TEST_BLOCK !PanicCode=17 !PanicString=ESock_client |
|
1301 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0042 |
|
1302 |
|
1303 |
|
1304 |
|
1305 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0043 |
|
1306 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0043 |
|
1307 //! @SYMAPI CBluetoothSocket |
|
1308 //! @SYMAuthor James Mechen |
|
1309 //! @SYMCreationDate 10/08/2006 |
|
1310 //! @SYMTestCaseDesc Call LocalPort on blank unconnected socket |
|
1311 //! Uses API elements: NewL()9, LocalPort |
|
1312 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
1313 //! 2. Create the CBluetoothSocket object using NewL()9 (Blank constructor) |
|
1314 //! 3. Create an empty TBTServiceSecurity object |
|
1315 //! 4. Create a TRfcommSockAddr object |
|
1316 //! 5. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1317 //! 6. Set the port to the specific one of the protocol we use |
|
1318 //! 7. Call LocalPort |
|
1319 //! 8. delete CBluetoothSocket object |
|
1320 //! @SYMTestStatus Implemented |
|
1321 //! @SYMTestPriority Critical |
|
1322 //! @SYMTestExpectedResults LocalPort causes a ESOCK panic code 17 |
|
1323 //! @SYMTestType CIT |
|
1324 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1325 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1326 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1327 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1328 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1329 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0043-0001command2NewL |
|
1330 COMMAND TBTServiceSecurity1 Construct |
|
1331 COMMAND TRfcommSockAddr1 Construct |
|
1332 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0043-0001command7SetSecurity |
|
1333 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0043-0001command8SetPort |
|
1334 COMMAND CBluetoothSocket1 LocalPort |
|
1335 COMMAND CBluetoothSocket1 ~ |
|
1336 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1337 END_TEST_BLOCK !PanicCode=17 !PanicString=ESock_client |
|
1338 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0043 |
|
1339 |
|
1340 |
|
1341 |
|
1342 |
|
1343 |
|
1344 |
|
1345 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0045 |
|
1346 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0045 |
|
1347 //! @SYMAPI CBluetoothSocket |
|
1348 //! @SYMAuthor James Mechen |
|
1349 //! @SYMCreationDate 10/08/2006 |
|
1350 //! @SYMTestCaseDesc Call Name on blank unconnected socket |
|
1351 //! Uses API elements: NewL()9, Name |
|
1352 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
1353 //! 2. Create the CBluetoothSocket object using NewL()9 (Blank constructor) |
|
1354 //! 3. Create an empty TBTServiceSecurity object |
|
1355 //! 4. Create a TRfcommSockAddr object |
|
1356 //! 5. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1357 //! 6. Set the port to the specific one of the protocol we use |
|
1358 //! 7. Call Name |
|
1359 //! 8. delete CBluetoothSocket object |
|
1360 //! @SYMTestStatus Implemented |
|
1361 //! @SYMTestPriority Critical |
|
1362 //! @SYMTestExpectedResults Name is returned with no error |
|
1363 //! @SYMTestType CIT |
|
1364 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1365 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1366 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1367 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1368 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1369 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0045-0001command2NewL |
|
1370 COMMAND TBTServiceSecurity1 Construct |
|
1371 COMMAND TRfcommSockAddr1 Construct |
|
1372 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0045-0001command7SetSecurity |
|
1373 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0045-0001command8SetPort |
|
1374 COMMAND CBluetoothSocket1 Name |
|
1375 COMMAND CBluetoothSocket1 ~ |
|
1376 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1377 END_TEST_BLOCK |
|
1378 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0045 |
|
1379 |
|
1380 |
|
1381 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0047 |
|
1382 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0047 |
|
1383 //! @SYMAPI CBluetoothSocket |
|
1384 //! @SYMAuthor James Mechen |
|
1385 //! @SYMCreationDate 10/08/2006 |
|
1386 //! @SYMTestCaseDesc Call AllowRoleSwitch on blank unconnected socket |
|
1387 //! Uses API elements: NewL()9, AllowRoleSwitch |
|
1388 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
1389 //! 2. Create the CBluetoothSocket object using NewL()9 (Blank constructor) |
|
1390 //! 3. Create an empty TBTServiceSecurity object |
|
1391 //! 4. Create a TRfcommSockAddr object |
|
1392 //! 5. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1393 //! 6. Set the port to the specific one of the protocol we use |
|
1394 //! 7. Call AllowRoleSwitch |
|
1395 //! 8. delete CBluetoothSocket object |
|
1396 //! @SYMTestStatus Implemented |
|
1397 //! @SYMTestPriority Critical |
|
1398 //! @SYMTestExpectedResults AllowRoleSwitch returns with error KErrNotReady |
|
1399 //! @SYMTestType CIT |
|
1400 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1401 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1402 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1403 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1404 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1405 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0047-0001command2NewL |
|
1406 COMMAND TBTServiceSecurity1 Construct |
|
1407 COMMAND TRfcommSockAddr1 Construct |
|
1408 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0047-0001command7SetSecurity |
|
1409 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0047-0001command8SetPort |
|
1410 COMMAND !Error=-18 CBluetoothSocket1 AllowRoleSwitch |
|
1411 COMMAND CBluetoothSocket1 ~ |
|
1412 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1413 END_TEST_BLOCK |
|
1414 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0047 |
|
1415 |
|
1416 |
|
1417 |
|
1418 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0048 |
|
1419 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0048 |
|
1420 //! @SYMAPI CBluetoothSocket |
|
1421 //! @SYMAuthor James Mechen |
|
1422 //! @SYMCreationDate 10/08/2006 |
|
1423 //! @SYMTestCaseDesc Call PreventRoleSwitch on blank unconnected socket |
|
1424 //! Uses API elements: NewL()9, PreventRoleSwitch |
|
1425 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
1426 //! 2. Create the CBluetoothSocket object using NewL()9 (Blank constructor) |
|
1427 //! 3. Create an empty TBTServiceSecurity object |
|
1428 //! 4. Create a TRfcommSockAddr object |
|
1429 //! 5. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1430 //! 6. Set the port to the specific one of the protocol we use |
|
1431 //! 7. Call PreventRoleSwitch |
|
1432 //! 8. delete CBluetoothSocket object |
|
1433 //! @SYMTestStatus Implemented |
|
1434 //! @SYMTestPriority Critical |
|
1435 //! @SYMTestExpectedResults PreventRoleSwitch returns with error KErrNotReady |
|
1436 //! @SYMTestType CIT |
|
1437 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1438 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1439 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1440 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1441 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1442 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0048-0001command2NewL |
|
1443 COMMAND TBTServiceSecurity1 Construct |
|
1444 COMMAND TRfcommSockAddr1 Construct |
|
1445 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0048-0001command7SetSecurity |
|
1446 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0048-0001command8SetPort |
|
1447 COMMAND !Error=-18 CBluetoothSocket1 PreventRoleSwitch |
|
1448 COMMAND CBluetoothSocket1 ~ |
|
1449 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1450 END_TEST_BLOCK |
|
1451 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0048 |
|
1452 |
|
1453 |
|
1454 |
|
1455 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0049 |
|
1456 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0049 |
|
1457 //! @SYMAPI CBluetoothSocket |
|
1458 //! @SYMAuthor James Mechen |
|
1459 //! @SYMCreationDate 10/08/2006 |
|
1460 //! @SYMTestCaseDesc Call Connect2 with the Address of a none existing device |
|
1461 //! Uses API elements: NewL()1, Connect()2, HandleConnectCompleteL |
|
1462 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
1463 //! 2. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1464 //! 3. Create an empty TBTServiceSecurity object |
|
1465 //! 4. Create a TRfcommSockAddr object |
|
1466 //! 5. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1467 //! 6. Set the port to the specific one of the protocol we use |
|
1468 //! 7. Connect to an unknown address |
|
1469 //! 8. HandleConnectCompleteL gets called indicating that connecting the BT connection completed with error EPageTimedOut |
|
1470 //! 9. delete CBluetoothSocket object |
|
1471 //! @SYMTestStatus Implemented |
|
1472 //! @SYMTestPriority Critical |
|
1473 //! @SYMTestExpectedResults Connect fails with error EPageTimedOut |
|
1474 //! @SYMTestType CIT |
|
1475 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1476 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1477 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1478 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1479 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1480 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0049-0001command2NewL |
|
1481 COMMAND TBTServiceSecurity1 Construct |
|
1482 COMMAND TRfcommSockAddr1 Construct |
|
1483 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0049-0001command7SetSecurity |
|
1484 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0049-0001command8SetBTAddr |
|
1485 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0049-0001command9SetPort |
|
1486 COMMAND TRfcommSockAddr1 BTAddr |
|
1487 COMMAND !AsyncError=-6004 CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Unconnected-0049-0001command12Connect |
|
1488 OUTSTANDING |
|
1489 COMMAND CBluetoothSocket1 ~ |
|
1490 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1491 END_TEST_BLOCK |
|
1492 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0049 |
|
1493 |
|
1494 |
|
1495 |
|
1496 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0050 |
|
1497 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0050 |
|
1498 //! @SYMAPI CBluetoothSocket |
|
1499 //! @SYMAuthor James Mechen |
|
1500 //! @SYMCreationDate 10/08/2006 |
|
1501 //! @SYMTestCaseDesc Call Connect3 with the Address of a none existing device |
|
1502 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL |
|
1503 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
1504 //! 2. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1505 //! 3. Create an empty TBTServiceSecurity object |
|
1506 //! 4. Create a TRfcommSockAddr object |
|
1507 //! 5. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1508 //! 6. Set the port to the specific one of the protocol we use |
|
1509 //! 7. Connect to an unknown address |
|
1510 //! 8. HandleConnectCompleteL gets called indicating that connecting the BT connection completed with error EPageTimedOut |
|
1511 //! 9. delete CBluetoothSocket object |
|
1512 //! @SYMTestStatus Implemented |
|
1513 //! @SYMTestPriority Critical |
|
1514 //! @SYMTestExpectedResults Connect fails with error EPageTimedOut |
|
1515 //! @SYMTestType CIT |
|
1516 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1517 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1518 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1519 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1520 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1521 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0050-0001command2NewL |
|
1522 COMMAND TBTServiceSecurity1 Construct |
|
1523 COMMAND TRfcommSockAddr1 Construct |
|
1524 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0050-0001command7SetSecurity |
|
1525 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0050-0001command8SetBTAddr |
|
1526 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0050-0001command9SetPort |
|
1527 COMMAND TRfcommSockAddr1 BTAddr |
|
1528 COMMAND !AsyncError=-6004 CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Unconnected-0050-0001command12Connect |
|
1529 OUTSTANDING |
|
1530 COMMAND CBluetoothSocket1 ~ |
|
1531 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1532 END_TEST_BLOCK |
|
1533 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0050 |
|
1534 |
|
1535 |
|
1536 |
|
1537 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0051 |
|
1538 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0051 |
|
1539 //! @SYMAPI CBluetoothSocket |
|
1540 //! @SYMAuthor James Mechen |
|
1541 //! @SYMCreationDate 11/08/2006 |
|
1542 //! @SYMTestCaseDesc Call Send1 without calling connect |
|
1543 //! Uses API elements: NewL()1, Send()1, HandleConnectCompleteL |
|
1544 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
1545 //! 2. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1546 //! 3. Create an empty TBTServiceSecurity object |
|
1547 //! 4. Create a TRfcommSockAddr object |
|
1548 //! 5. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1549 //! 6. Set the port to the specific one of the protocol we use |
|
1550 //! 7. Call Send1 |
|
1551 //! 8. HandleSendCompleteL returns error KErrNotReady |
|
1552 //! 9. delete CBluetoothSocket object |
|
1553 //! @SYMTestStatus Implemented |
|
1554 //! @SYMTestPriority Critical |
|
1555 //! @SYMTestExpectedResults Send fails with error KErrNotReady |
|
1556 //! @SYMTestType CIT |
|
1557 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1558 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1559 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1560 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1561 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1562 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0051-0001command2NewL |
|
1563 COMMAND TBTServiceSecurity1 Construct |
|
1564 COMMAND TRfcommSockAddr1 Construct |
|
1565 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0051-0001command7SetSecurity |
|
1566 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Unconnected-0051-0001command8SetBTAddr |
|
1567 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0051-0001command9SetPort |
|
1568 COMMAND TRfcommSockAddr1 BTAddr |
|
1569 COMMAND !AsyncError=-18 CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Unconnected-0051-0001command12Send |
|
1570 OUTSTANDING |
|
1571 COMMAND CBluetoothSocket1 ~ |
|
1572 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1573 END_TEST_BLOCK |
|
1574 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0051 |
|
1575 |
|
1576 |
|
1577 |
|
1578 START_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0044 |
|
1579 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Unconnected-0044 |
|
1580 //! @SYMAPI CBluetoothSocket |
|
1581 //! @SYMAuthor James Mechen |
|
1582 //! @SYMCreationDate 10/08/2006 |
|
1583 //! @SYMTestCaseDesc Call RemoteName on blank unconnected socket |
|
1584 //! Uses API elements: NewL()9, RemoteName |
|
1585 //! @SYMTestActions 1. Create a connection to the RSocket server |
|
1586 //! 2. Create the CBluetoothSocket object using NewL()9 (Blank constructor) |
|
1587 //! 3. Create an empty TBTServiceSecurity object |
|
1588 //! 4. Create a TRfcommSockAddr object |
|
1589 //! 5. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1590 //! 6. Set the port to the specific one of the protocol we use |
|
1591 //! 7. Call RemoteName |
|
1592 //! 8. delete CBluetoothSocket object |
|
1593 //! @SYMTestStatus Implemented |
|
1594 //! @SYMTestPriority Critical |
|
1595 //! @SYMTestExpectedResults RemoteName causes a ESOCK panic code 17 |
|
1596 //! @SYMTestType CIT |
|
1597 START_TEST_BLOCK 10 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Unconnected.ini |
|
1598 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1599 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1600 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1601 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1602 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Unconnected-0044-0001command2NewL |
|
1603 COMMAND TBTServiceSecurity1 Construct |
|
1604 COMMAND TRfcommSockAddr1 Construct |
|
1605 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Unconnected-0044-0001command7SetSecurity |
|
1606 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Unconnected-0044-0001command8SetPort |
|
1607 COMMAND CBluetoothSocket1 RemoteName |
|
1608 COMMAND CBluetoothSocket1 ~ |
|
1609 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1610 END_TEST_BLOCK !PanicCode=17 !PanicString=ESock_client |
|
1611 END_TESTCASE BT-USER-SOCK-PublicAPI-Unconnected-0044 |