|
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 -SharedData |
|
22 DELAY 2000 |
|
23 |
|
24 |
|
25 //! @file |
|
26 //! @SYMTestSuiteName BT-USER-SOCK-PublicAPI-Passive-Slave |
|
27 //! @SYMScriptTestEnvironment This test script requires a basic ROM with bluetooth dongle. |
|
28 |
|
29 |
|
30 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses |
|
31 |
|
32 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
33 SHARED_ACTIVE_SCHEDULER |
|
34 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
35 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
36 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
37 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
38 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0001command3NewL |
|
39 COMMAND TRfcommSockAddr1 Construct |
|
40 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0001command6SetFamily |
|
41 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0001command7SetPort |
|
42 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0001command9Bind |
|
43 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0001command10Listen |
|
44 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0001command12SetRsocketServerFromCBTSocket |
|
45 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0001command13NewL |
|
46 STORE CBluetoothSocket1 |
|
47 STORE CBluetoothSessionSocket |
|
48 STORE_ACTIVE_SCHEDULER |
|
49 END_TEST_BLOCK |
|
50 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
51 SHARED_ACTIVE_SCHEDULER |
|
52 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
53 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
54 CREATE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
55 COMMAND TBTDevAddrLocal Construct |
|
56 COMMAND TBTDevAddrLocal OpenHostResolver BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0002command3OpenHostResolver |
|
57 COMMAND TBTDevAddrLocal SetHostNameL BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0002command4SetHostNameL |
|
58 COMMAND TBTDevAddrLocal SetDiscoverable |
|
59 STORE CBluetoothSocket1 |
|
60 STORE CBluetoothSessionSocket |
|
61 STORE TBTDevAddrLocal |
|
62 STORE_ACTIVE_SCHEDULER |
|
63 END_TEST_BLOCK |
|
64 |
|
65 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0003 |
|
66 START_TEST_BLOCK 300 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
67 SHARED_ACTIVE_SCHEDULER |
|
68 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
69 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
70 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0003command1Accept |
|
71 OUTSTANDING |
|
72 STORE CBluetoothSocket1 |
|
73 STORE CBluetoothSessionSocket |
|
74 STORE_ACTIVE_SCHEDULER |
|
75 END_TEST_BLOCK |
|
76 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0003 |
|
77 |
|
78 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0004 |
|
79 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
80 SHARED_ACTIVE_SCHEDULER |
|
81 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
82 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
83 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
84 CREATE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
85 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0004command1Recv |
|
86 OUTSTANDING |
|
87 COMMAND TBTDevAddrLocal SetBTAddr BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0004command3SetBTAddr |
|
88 COMMAND TBTDevAddrRemote Construct |
|
89 COMMAND TBTDevAddrRemote SetBTAddr BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0004command6SetBTAddr |
|
90 STORE CBluetoothSocket1 |
|
91 STORE CBluetoothSessionSocket |
|
92 STORE TBTDevAddrLocal |
|
93 STORE TBTDevAddrRemote |
|
94 STORE_ACTIVE_SCHEDULER |
|
95 END_TEST_BLOCK |
|
96 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0004 |
|
97 |
|
98 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0005 |
|
99 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
100 SHARED_ACTIVE_SCHEDULER |
|
101 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
102 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
103 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0005command1Shutdown |
|
104 OUTSTANDING |
|
105 COMMAND CBluetoothSessionSocket ~ |
|
106 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses-0005command4Shutdown |
|
107 OUTSTANDING |
|
108 COMMAND CBluetoothSocket1 ~ |
|
109 COMMAND CBluetoothSocket1 RSocketServerClose |
|
110 END_TEST_BLOCK |
|
111 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0005 |
|
112 |
|
113 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-SetBTAddresses |
|
114 |
|
115 |
|
116 |
|
117 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0001 |
|
118 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0001 |
|
119 //! @SYMAPI CBluetoothSocket |
|
120 //! @SYMAuthor Johan Eriksson |
|
121 //! @SYMCreationDate 27/03/2006 |
|
122 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
123 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
124 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
125 //! HandleShutdownCompleteL |
|
126 |
|
127 //! @SYMTestActions Wait for master to order start |
|
128 //! 1. Create and start a session on the socket server |
|
129 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
130 //! 3. Create an TRfcommSockAddr object |
|
131 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
132 //! 5. Set the Family to Bluetooth (257) |
|
133 //! 6. Set the port to the one matching the protocol to use |
|
134 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
135 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
136 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
137 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
138 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
139 //! Synchronization point |
|
140 //! 12. Read data sent to socket using Recv()1 |
|
141 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
142 //! Synchronization point |
|
143 //! 14. Do socket cleanup by calling Shutdown()1 |
|
144 //! 15. HandleShutdownCompleteL gets called verify error code |
|
145 //! 16. delete CBluetoothSocket object |
|
146 //! Synchronization point |
|
147 //! @SYMTestStatus Implemented |
|
148 //! @SYMTestPriority Critical |
|
149 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully |
|
150 //! @SYMTestType CIT |
|
151 |
|
152 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
153 SHARED_ACTIVE_SCHEDULER |
|
154 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
155 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
156 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
157 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
158 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
159 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0001-0001command3NewL |
|
160 COMMAND TRfcommSockAddr1 Construct |
|
161 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0001-0001command6SetBTAddr |
|
162 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0001-0001command7BTAddr |
|
163 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0001-0001command8SetFamily |
|
164 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0001-0001command9SetPort |
|
165 COMMAND CBluetoothSocket1 SetNotifier BT-USER-SOCK-PublicAPI-Passive-0001-0001command11SetNotifier |
|
166 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0001-0001command12Bind |
|
167 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0001-0001command13Listen |
|
168 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0001-0001command15SetRsocketServerFromCBTSocket |
|
169 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0001-0001command16NewL |
|
170 STORE CBluetoothSocket1 |
|
171 STORE CBluetoothSessionSocket |
|
172 STORE TBTDevAddrLocal |
|
173 STORE_ACTIVE_SCHEDULER |
|
174 END_TEST_BLOCK |
|
175 |
|
176 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0001-0002 |
|
177 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
178 SHARED_ACTIVE_SCHEDULER |
|
179 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
180 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
181 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0001-0002command1Accept |
|
182 OUTSTANDING |
|
183 STORE CBluetoothSocket1 |
|
184 STORE CBluetoothSessionSocket |
|
185 STORE_ACTIVE_SCHEDULER |
|
186 END_TEST_BLOCK |
|
187 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0001-0002 |
|
188 |
|
189 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0001-0003 |
|
190 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
191 SHARED_ACTIVE_SCHEDULER |
|
192 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
193 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
194 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0001-0003command1Recv |
|
195 OUTSTANDING |
|
196 STORE CBluetoothSocket1 |
|
197 STORE CBluetoothSessionSocket |
|
198 STORE_ACTIVE_SCHEDULER |
|
199 END_TEST_BLOCK |
|
200 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0001-0003 |
|
201 |
|
202 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0001-0004 |
|
203 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
204 SHARED_ACTIVE_SCHEDULER |
|
205 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
206 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
207 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0001-0004command1Shutdown |
|
208 OUTSTANDING |
|
209 COMMAND CBluetoothSessionSocket ~ |
|
210 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0001-0004command4Shutdown |
|
211 OUTSTANDING |
|
212 COMMAND CBluetoothSocket1 ~ |
|
213 COMMAND CBluetoothSocket1 RSocketServerClose |
|
214 END_TEST_BLOCK |
|
215 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0001-0004 |
|
216 |
|
217 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0001 |
|
218 |
|
219 |
|
220 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0002 |
|
221 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0002 |
|
222 //! @SYMAPI CBluetoothSocket |
|
223 //! @SYMAuthor Johan Eriksson |
|
224 //! @SYMCreationDate 27/03/2006 |
|
225 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
226 //! Uses API elements: NewLC()1, Bind, listen()2, LocalPort, NewLC()4, Accept()2, |
|
227 //! HandleAcceptCompleteL ,Recv()2, HandleReceiveCompleteL, Shutdown()2, |
|
228 //! HandleShutdownCompleteL |
|
229 //! @SYMTestActions Wait for master to order start |
|
230 //! 1. Create and start a session on the socket server |
|
231 //! 2. Create a CBluetoothSocket using the NewLC()1 (Standard constructor) |
|
232 //! 3. Create an TRfcommSockAddr object |
|
233 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
234 //! 5. Set the Family to Bluetooth (257) |
|
235 //! 6. Set the port to the one matching the protocol to use |
|
236 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
237 //! 8. Call the listen()2 method of the CBluetoothSocket object |
|
238 //! 9. Create a new empty CBluetoothSocket using NewLC()4 |
|
239 //! 10. Call Accept()2 on the old CBluetoothSocket object with the new as argument |
|
240 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
241 //! Synchronization point |
|
242 //! 12. Read data sent to socket using Recv()2 |
|
243 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
244 //! Synchronization point |
|
245 //! 14. Do socket cleanup by calling Shutdown()2 |
|
246 //! 15. HandleShutdownCompleteL gets called verify error code |
|
247 //! 16. delete CBluetoothSocket object |
|
248 //! Synchronization point |
|
249 //! @SYMTestStatus Implemented |
|
250 //! @SYMTestPriority Critical |
|
251 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully |
|
252 //! @SYMTestType CIT |
|
253 |
|
254 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
255 SHARED_ACTIVE_SCHEDULER |
|
256 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
257 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
258 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
259 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
260 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
261 COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Passive-0002-0001command2NewLC |
|
262 COMMAND TRfcommSockAddr1 Construct |
|
263 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0002-0001command5SetBTAddr |
|
264 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0002-0001command6BTAddr |
|
265 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0002-0001command7SetFamily |
|
266 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0002-0001command8SetPort |
|
267 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0002-0001command10SetRsocketServerFromCBTSocket |
|
268 COMMAND CBluetoothSessionSocket NewLC BT-USER-SOCK-PublicAPI-Passive-0002-0001command11NewLC |
|
269 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0002-0001command13Bind |
|
270 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0002-0001command14Listen |
|
271 STORE CBluetoothSocket1 |
|
272 STORE CBluetoothSessionSocket |
|
273 STORE TBTDevAddrLocal |
|
274 STORE_ACTIVE_SCHEDULER |
|
275 END_TEST_BLOCK |
|
276 |
|
277 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0002-0002 |
|
278 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
279 SHARED_ACTIVE_SCHEDULER |
|
280 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
281 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
282 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0002-0002command1Accept |
|
283 OUTSTANDING |
|
284 STORE CBluetoothSocket1 |
|
285 STORE CBluetoothSessionSocket |
|
286 STORE_ACTIVE_SCHEDULER |
|
287 END_TEST_BLOCK |
|
288 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0002-0002 |
|
289 |
|
290 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0002-0003 |
|
291 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
292 SHARED_ACTIVE_SCHEDULER |
|
293 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
294 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
295 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0002-0003command1Recv |
|
296 OUTSTANDING |
|
297 STORE CBluetoothSocket1 |
|
298 STORE CBluetoothSessionSocket |
|
299 STORE_ACTIVE_SCHEDULER |
|
300 END_TEST_BLOCK |
|
301 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0002-0003 |
|
302 |
|
303 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0002-0004 |
|
304 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
305 SHARED_ACTIVE_SCHEDULER |
|
306 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
307 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
308 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0002-0004command1Shutdown |
|
309 OUTSTANDING |
|
310 COMMAND CBluetoothSessionSocket ~ |
|
311 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0002-0004command4Shutdown |
|
312 OUTSTANDING |
|
313 COMMAND CBluetoothSocket1 ~ |
|
314 COMMAND CBluetoothSocket1 RSocketServerClose |
|
315 END_TEST_BLOCK |
|
316 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0002-0004 |
|
317 |
|
318 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0002 |
|
319 |
|
320 |
|
321 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0004 |
|
322 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0004 |
|
323 //! @SYMAPI CBluetoothSocket |
|
324 //! @SYMAuthor Johan Eriksson |
|
325 //! @SYMCreationDate 27/03/2006 |
|
326 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
327 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
328 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
329 //! HandleShutdownCompleteL |
|
330 //! @SYMTestActions Wait for master to order start |
|
331 //! 1. Create and start a session on the socket server |
|
332 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
333 //! 3. Create an TRfcommSockAddr object |
|
334 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
335 //! 5. Set the Family to Bluetooth (257) |
|
336 //! 6. Set the port to the one matching the protocol to use |
|
337 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
338 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
339 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
340 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
341 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
342 //! Synchronization point |
|
343 //! 12. Read data sent to socket using Recv()1 |
|
344 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
345 //! Synchronization point |
|
346 //! 14. Do socket cleanup by calling Shutdown()1 |
|
347 //! 15. HandleShutdownCompleteL gets called verify error code |
|
348 //! 16. delete CBluetoothSocket object |
|
349 //! Synchronization point |
|
350 //! @SYMTestStatus Implemented |
|
351 //! @SYMTestPriority Critical |
|
352 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
353 //! @SYMTestType CIT |
|
354 |
|
355 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
356 SHARED_ACTIVE_SCHEDULER |
|
357 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
358 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
359 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
360 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
361 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
362 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0004-0001command3NewL |
|
363 COMMAND TRfcommSockAddr1 Construct |
|
364 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0004-0001command6SetBTAddr |
|
365 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0004-0001command7BTAddr |
|
366 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0004-0001command8SetFamily |
|
367 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0004-0001command9SetPort |
|
368 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0004-0001command11Bind |
|
369 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0004-0001command12Listen |
|
370 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0004-0001command14SetRsocketServerFromCBTSocket |
|
371 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0004-0001command15NewL |
|
372 STORE CBluetoothSocket1 |
|
373 STORE CBluetoothSessionSocket |
|
374 STORE TBTDevAddrLocal |
|
375 STORE_ACTIVE_SCHEDULER |
|
376 END_TEST_BLOCK |
|
377 |
|
378 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0004-0002 |
|
379 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
380 SHARED_ACTIVE_SCHEDULER |
|
381 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
382 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
383 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0004-0002command1Accept |
|
384 OUTSTANDING |
|
385 STORE CBluetoothSocket1 |
|
386 STORE CBluetoothSessionSocket |
|
387 STORE_ACTIVE_SCHEDULER |
|
388 END_TEST_BLOCK |
|
389 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0004-0002 |
|
390 |
|
391 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0004-0003 |
|
392 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
393 SHARED_ACTIVE_SCHEDULER |
|
394 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
395 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
396 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0004-0003command1Recv |
|
397 OUTSTANDING |
|
398 STORE CBluetoothSocket1 |
|
399 STORE CBluetoothSessionSocket |
|
400 STORE_ACTIVE_SCHEDULER |
|
401 END_TEST_BLOCK |
|
402 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0004-0003 |
|
403 |
|
404 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0004-0004 |
|
405 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
406 SHARED_ACTIVE_SCHEDULER |
|
407 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
408 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
409 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0004-0004command1Shutdown |
|
410 OUTSTANDING |
|
411 COMMAND CBluetoothSessionSocket ~ |
|
412 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0004-0004command4Shutdown |
|
413 OUTSTANDING |
|
414 COMMAND CBluetoothSocket1 ~ |
|
415 COMMAND CBluetoothSocket1 RSocketServerClose |
|
416 END_TEST_BLOCK |
|
417 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0004-0004 |
|
418 |
|
419 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0004 |
|
420 |
|
421 |
|
422 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0006 |
|
423 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0006 |
|
424 //! @SYMAPI CBluetoothSocket |
|
425 //! @SYMAuthor Johan Eriksson |
|
426 //! @SYMCreationDate 05/04/2006 |
|
427 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify IOCTL options |
|
428 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
429 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
430 //! @SYMTestActions Wait for master to order start |
|
431 //! 1. Create and start a session on the socket server |
|
432 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
433 //! 3. Create an TRfcommSockAddr object |
|
434 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
435 //! 5. Set the Family to Bluetooth (257) |
|
436 //! 6. Set the port to the one matching the protocol to use |
|
437 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
438 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
439 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
440 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
441 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
442 //! Synchronization point |
|
443 //! 12. Read data sent to socket using Recv()1 |
|
444 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
445 //! Synchronization point |
|
446 //! 14. Do socket cleanup by calling Shutdown()1 |
|
447 //! 15. HandleShutdownCompleteL gets called verify error code |
|
448 //! 16. delete CBluetoothSocket object |
|
449 //! Synchronization point |
|
450 //! @SYMTestStatus Implemented |
|
451 //! @SYMTestPriority Critical |
|
452 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully for client IOCTL test |
|
453 //! @SYMTestType CIT |
|
454 |
|
455 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
456 SHARED_ACTIVE_SCHEDULER |
|
457 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
458 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
459 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
460 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
461 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
462 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0006-0001command2NewL |
|
463 COMMAND TRfcommSockAddr1 Construct |
|
464 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0006-0001command5SetBTAddr |
|
465 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0006-0001command6BTAddr |
|
466 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0006-0001command7SetFamily |
|
467 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0006-0001command8SetPort |
|
468 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0006-0001command10SetRsocketServerFromCBTSocket |
|
469 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0006-0001command11NewL |
|
470 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0006-0001command13Bind |
|
471 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0006-0001command14Listen |
|
472 STORE CBluetoothSocket1 |
|
473 STORE CBluetoothSessionSocket |
|
474 STORE TBTDevAddrLocal |
|
475 STORE_ACTIVE_SCHEDULER |
|
476 END_TEST_BLOCK |
|
477 |
|
478 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0006-0002 |
|
479 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
480 SHARED_ACTIVE_SCHEDULER |
|
481 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
482 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
483 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0006-0002command1Accept |
|
484 OUTSTANDING |
|
485 STORE CBluetoothSocket1 |
|
486 STORE CBluetoothSessionSocket |
|
487 STORE_ACTIVE_SCHEDULER |
|
488 END_TEST_BLOCK |
|
489 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0006-0002 |
|
490 |
|
491 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0006-0003 |
|
492 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
493 SHARED_ACTIVE_SCHEDULER |
|
494 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
495 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
496 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0006-0003command1Recv |
|
497 OUTSTANDING |
|
498 STORE CBluetoothSocket1 |
|
499 STORE CBluetoothSessionSocket |
|
500 STORE_ACTIVE_SCHEDULER |
|
501 END_TEST_BLOCK |
|
502 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0006-0003 |
|
503 |
|
504 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0006-0004 |
|
505 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
506 SHARED_ACTIVE_SCHEDULER |
|
507 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
508 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
509 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0006-0004command1Shutdown |
|
510 OUTSTANDING |
|
511 COMMAND CBluetoothSessionSocket ~ |
|
512 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0006-0004command4Shutdown |
|
513 OUTSTANDING |
|
514 COMMAND CBluetoothSocket1 ~ |
|
515 COMMAND CBluetoothSocket1 RSocketServerClose |
|
516 END_TEST_BLOCK |
|
517 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0006-0004 |
|
518 |
|
519 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0006 |
|
520 |
|
521 |
|
522 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0007 |
|
523 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0007 |
|
524 //! @SYMAPI CBluetoothSocket |
|
525 //! @SYMAuthor Johan Eriksson |
|
526 //! @SYMCreationDate 05/04/2006 |
|
527 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify IOCTL cancelled request |
|
528 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
529 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
530 //! @SYMTestActions Wait for master to order start |
|
531 //! 1. Create and start a session on the socket server |
|
532 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
533 //! 3. Create an TRfcommSockAddr object |
|
534 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
535 //! 5. Set the Family to Bluetooth (257) |
|
536 //! 6. Set the port to the one matching the protocol to use |
|
537 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
538 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
539 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
540 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
541 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
542 //! Synchronization point |
|
543 //! 12. Read data sent to socket using Recv()1 |
|
544 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
545 //! Synchronization point |
|
546 //! 14. Do socket cleanup by calling Shutdown()1 |
|
547 //! 15. HandleShutdownCompleteL gets called verify error code |
|
548 //! 16. delete CBluetoothSocket object |
|
549 //! Synchronization point |
|
550 //! @SYMTestStatus Implemented |
|
551 //! @SYMTestPriority Critical |
|
552 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully for IOCTL cancelled request |
|
553 //! @SYMTestType CIT |
|
554 |
|
555 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
556 SHARED_ACTIVE_SCHEDULER |
|
557 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
558 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
559 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
560 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
561 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
562 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0007-0001command2NewL |
|
563 COMMAND TRfcommSockAddr1 Construct |
|
564 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0007-0001command5SetBTAddr |
|
565 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0007-0001command6BTAddr |
|
566 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0007-0001command7SetFamily |
|
567 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0007-0001command8SetPort |
|
568 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0007-0001command10SetRsocketServerFromCBTSocket |
|
569 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0007-0001command11NewL |
|
570 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0007-0001command13Bind |
|
571 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0007-0001command14Listen |
|
572 STORE CBluetoothSocket1 |
|
573 STORE CBluetoothSessionSocket |
|
574 STORE TBTDevAddrLocal |
|
575 STORE_ACTIVE_SCHEDULER |
|
576 END_TEST_BLOCK |
|
577 |
|
578 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0007-0002 |
|
579 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
580 SHARED_ACTIVE_SCHEDULER |
|
581 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
582 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
583 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0007-0002command1Accept |
|
584 OUTSTANDING |
|
585 STORE CBluetoothSocket1 |
|
586 STORE CBluetoothSessionSocket |
|
587 STORE_ACTIVE_SCHEDULER |
|
588 END_TEST_BLOCK |
|
589 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0007-0002 |
|
590 |
|
591 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0007-0003 |
|
592 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
593 SHARED_ACTIVE_SCHEDULER |
|
594 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
595 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
596 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0007-0003command1Recv |
|
597 OUTSTANDING |
|
598 STORE CBluetoothSocket1 |
|
599 STORE CBluetoothSessionSocket |
|
600 STORE_ACTIVE_SCHEDULER |
|
601 END_TEST_BLOCK |
|
602 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0007-0003 |
|
603 |
|
604 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0007-0004 |
|
605 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
606 SHARED_ACTIVE_SCHEDULER |
|
607 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
608 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
609 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0007-0004command1Shutdown |
|
610 OUTSTANDING |
|
611 COMMAND CBluetoothSessionSocket ~ |
|
612 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0007-0004command4Shutdown |
|
613 OUTSTANDING |
|
614 COMMAND CBluetoothSocket1 ~ |
|
615 COMMAND CBluetoothSocket1 RSocketServerClose |
|
616 END_TEST_BLOCK |
|
617 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0007-0004 |
|
618 |
|
619 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0007 |
|
620 |
|
621 |
|
622 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0008 |
|
623 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0008 |
|
624 //! @SYMAPI CBluetoothSocket |
|
625 //! @SYMAuthor Johan Eriksson |
|
626 //! @SYMCreationDate 05/04/2006 |
|
627 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify IOCTL incoming options |
|
628 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
629 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
630 //! @SYMTestActions Wait for master to order start |
|
631 //! 1. Create and start a session on the socket server |
|
632 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
633 //! 3. Create an TRfcommSockAddr object |
|
634 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
635 //! 5. Set the Family to Bluetooth (257) |
|
636 //! 6. Set the port to the one matching the protocol to use |
|
637 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
638 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
639 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
640 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
641 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
642 //! Synchronization point |
|
643 //! 12. Read data sent to socket using Recv()1 |
|
644 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
645 //! Synchronization point |
|
646 //! 14. Call Ioctl()2 with KL2CAPIncomeingMTUIoctl, Buffer, KSolBtL2CAP |
|
647 //! 15. HandleIoctlCompleteL gets called when operation completes |
|
648 //! 16. Do socket cleanup by calling Shutdown()1 |
|
649 //! 17. HandleShutdownCompleteL gets called verify error code |
|
650 //! 18. delete CBluetoothSocket object |
|
651 //! Synchronization point |
|
652 //! @SYMTestStatus Implemented |
|
653 //! @SYMTestPriority Critical |
|
654 //! @SYMTestExpectedResults Slave side IOCTL request |
|
655 //! @SYMTestType CIT |
|
656 |
|
657 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
658 SHARED_ACTIVE_SCHEDULER |
|
659 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
660 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
661 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
662 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
663 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
664 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0008-0001command2NewL |
|
665 COMMAND TRfcommSockAddr1 Construct |
|
666 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0008-0001command5SetBTAddr |
|
667 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0008-0001command6BTAddr |
|
668 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0008-0001command7SetFamily |
|
669 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0008-0001command8SetPort |
|
670 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0008-0001command10SetRsocketServerFromCBTSocket |
|
671 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0008-0001command11NewL |
|
672 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0008-0001command13Bind |
|
673 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0008-0001command14Listen |
|
674 STORE CBluetoothSocket1 |
|
675 STORE CBluetoothSessionSocket |
|
676 STORE TBTDevAddrLocal |
|
677 STORE_ACTIVE_SCHEDULER |
|
678 END_TEST_BLOCK |
|
679 |
|
680 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0008-0002 |
|
681 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
682 SHARED_ACTIVE_SCHEDULER |
|
683 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
684 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
685 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0008-0002command1Accept |
|
686 OUTSTANDING |
|
687 STORE CBluetoothSocket1 |
|
688 STORE CBluetoothSessionSocket |
|
689 STORE_ACTIVE_SCHEDULER |
|
690 END_TEST_BLOCK |
|
691 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0008-0002 |
|
692 |
|
693 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0008-0003 |
|
694 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
695 SHARED_ACTIVE_SCHEDULER |
|
696 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
697 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
698 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0008-0003command1Recv |
|
699 OUTSTANDING |
|
700 COMMAND CBluetoothSessionSocket Ioctl BT-USER-SOCK-PublicAPI-Passive-0008-0003command2Ioctl |
|
701 OUTSTANDING |
|
702 STORE CBluetoothSocket1 |
|
703 STORE CBluetoothSessionSocket |
|
704 STORE_ACTIVE_SCHEDULER |
|
705 END_TEST_BLOCK |
|
706 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0008-0003 |
|
707 |
|
708 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0008-0004 |
|
709 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
710 SHARED_ACTIVE_SCHEDULER |
|
711 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
712 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
713 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0008-0004command1Shutdown |
|
714 OUTSTANDING |
|
715 COMMAND CBluetoothSessionSocket ~ |
|
716 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0008-0004command4Shutdown |
|
717 OUTSTANDING |
|
718 COMMAND CBluetoothSocket1 ~ |
|
719 COMMAND CBluetoothSocket1 RSocketServerClose |
|
720 END_TEST_BLOCK |
|
721 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0008-0004 |
|
722 |
|
723 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0008 |
|
724 |
|
725 |
|
726 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0009 |
|
727 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0009 |
|
728 //! @SYMAPI CBluetoothSocket |
|
729 //! @SYMAuthor Johan Eriksson |
|
730 //! @SYMCreationDate 05/04/2006 |
|
731 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify cancel of IOCTL incoming options |
|
732 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
733 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
734 //! @SYMTestActions Wait for master to order start |
|
735 //! 1. Create and start a session on the socket server |
|
736 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
737 //! 3. Create an TRfcommSockAddr object |
|
738 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
739 //! 5. Set the Family to Bluetooth (257) |
|
740 //! 6. Set the port to the one matching the protocol to use |
|
741 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
742 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
743 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
744 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
745 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
746 //! Synchronization point |
|
747 //! 12. Read data sent to socket using Recv()1 |
|
748 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
749 //! Synchronization point |
|
750 //! 14. Do socket cleanup by calling Shutdown()1 |
|
751 //! 15. HandleShutdownCompleteL gets called verify error code |
|
752 //! 16. delete CBluetoothSocket object |
|
753 //! Synchronization point |
|
754 //! @SYMTestStatus Implemented |
|
755 //! @SYMTestPriority Critical |
|
756 //! @SYMTestExpectedResults Slave side IOCTL request cancelled |
|
757 //! @SYMTestType CIT |
|
758 |
|
759 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
760 SHARED_ACTIVE_SCHEDULER |
|
761 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
762 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
763 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
764 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
765 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
766 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0009-0001command2NewL |
|
767 COMMAND TRfcommSockAddr1 Construct |
|
768 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0009-0001command5SetBTAddr |
|
769 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0009-0001command6BTAddr |
|
770 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0009-0001command7SetFamily |
|
771 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0009-0001command8SetPort |
|
772 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0009-0001command10SetRsocketServerFromCBTSocket |
|
773 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0009-0001command11NewL |
|
774 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0009-0001command13Bind |
|
775 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0009-0001command14Listen |
|
776 STORE CBluetoothSocket1 |
|
777 STORE CBluetoothSessionSocket |
|
778 STORE TBTDevAddrLocal |
|
779 STORE_ACTIVE_SCHEDULER |
|
780 END_TEST_BLOCK |
|
781 |
|
782 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0009-0002 |
|
783 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
784 SHARED_ACTIVE_SCHEDULER |
|
785 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
786 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
787 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0009-0002command1Accept |
|
788 OUTSTANDING |
|
789 STORE CBluetoothSocket1 |
|
790 STORE CBluetoothSessionSocket |
|
791 STORE_ACTIVE_SCHEDULER |
|
792 END_TEST_BLOCK |
|
793 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0009-0002 |
|
794 |
|
795 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0009-0003 |
|
796 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
797 SHARED_ACTIVE_SCHEDULER |
|
798 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
799 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
800 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0009-0003command1Recv |
|
801 OUTSTANDING |
|
802 STORE CBluetoothSocket1 |
|
803 STORE CBluetoothSessionSocket |
|
804 STORE_ACTIVE_SCHEDULER |
|
805 END_TEST_BLOCK |
|
806 DELAY 1000 |
|
807 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
808 SHARED_ACTIVE_SCHEDULER |
|
809 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
810 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
811 COMMAND CBluetoothSessionSocket Ioctl BT-USER-SOCK-PublicAPI-Passive-0009-0004command1Ioctl |
|
812 COMMAND CBluetoothSessionSocket CancelIoctl |
|
813 OUTSTANDING |
|
814 STORE CBluetoothSocket1 |
|
815 STORE CBluetoothSessionSocket |
|
816 STORE_ACTIVE_SCHEDULER |
|
817 END_TEST_BLOCK |
|
818 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0009-0003 |
|
819 |
|
820 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0009-0004 |
|
821 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
822 SHARED_ACTIVE_SCHEDULER |
|
823 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
824 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
825 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0009-0005command1Shutdown |
|
826 OUTSTANDING |
|
827 COMMAND CBluetoothSessionSocket ~ |
|
828 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0009-0005command4Shutdown |
|
829 OUTSTANDING |
|
830 COMMAND CBluetoothSocket1 ~ |
|
831 COMMAND CBluetoothSocket1 RSocketServerClose |
|
832 END_TEST_BLOCK |
|
833 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0009-0004 |
|
834 |
|
835 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0009 |
|
836 |
|
837 |
|
838 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0010 |
|
839 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0010 |
|
840 //! @SYMAPI CBluetoothSocket |
|
841 //! @SYMAuthor Johan Eriksson |
|
842 //! @SYMCreationDate 05/04/2006 |
|
843 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify low power options |
|
844 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
845 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
846 //! @SYMTestActions Wait for master to order start |
|
847 //! 1. Create and start a session on the socket server |
|
848 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
849 //! 3. Create an TRfcommSockAddr object |
|
850 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
851 //! 5. Set the Family to Bluetooth (257) |
|
852 //! 6. Set the port to the one matching the protocol to use |
|
853 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
854 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
855 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
856 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
857 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
858 //! Synchronization point |
|
859 //! 12. Read data sent to socket using Recv()1 |
|
860 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
861 //! Synchronization point |
|
862 //! 14. Do socket cleanup by calling Shutdown()1 |
|
863 //! 15. HandleShutdownCompleteL gets called verify error code |
|
864 //! 16. delete CBluetoothSocket object |
|
865 //! Synchronization point |
|
866 //! @SYMTestStatus Implemented |
|
867 //! @SYMTestPriority Critical |
|
868 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully for client low power test |
|
869 //! @SYMTestType CIT |
|
870 |
|
871 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
872 SHARED_ACTIVE_SCHEDULER |
|
873 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
874 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
875 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
876 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
877 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
878 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0010-0001command2NewL |
|
879 COMMAND TRfcommSockAddr1 Construct |
|
880 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0010-0001command5SetBTAddr |
|
881 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0010-0001command6BTAddr |
|
882 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0010-0001command7SetFamily |
|
883 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0010-0001command8SetPort |
|
884 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0010-0001command10SetRsocketServerFromCBTSocket |
|
885 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0010-0001command11NewL |
|
886 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0010-0001command13Bind |
|
887 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0010-0001command14Listen |
|
888 STORE CBluetoothSocket1 |
|
889 STORE CBluetoothSessionSocket |
|
890 STORE TBTDevAddrLocal |
|
891 STORE_ACTIVE_SCHEDULER |
|
892 END_TEST_BLOCK |
|
893 |
|
894 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0010-0002 |
|
895 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
896 SHARED_ACTIVE_SCHEDULER |
|
897 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
898 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
899 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0010-0002command1Accept |
|
900 OUTSTANDING |
|
901 STORE CBluetoothSocket1 |
|
902 STORE CBluetoothSessionSocket |
|
903 STORE_ACTIVE_SCHEDULER |
|
904 END_TEST_BLOCK |
|
905 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0010-0002 |
|
906 |
|
907 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0010-0003 |
|
908 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
909 SHARED_ACTIVE_SCHEDULER |
|
910 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
911 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
912 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0010-0003command1Recv |
|
913 OUTSTANDING |
|
914 STORE CBluetoothSocket1 |
|
915 STORE CBluetoothSessionSocket |
|
916 STORE_ACTIVE_SCHEDULER |
|
917 END_TEST_BLOCK |
|
918 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0010-0003 |
|
919 |
|
920 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0010-0004 |
|
921 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
922 SHARED_ACTIVE_SCHEDULER |
|
923 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
924 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
925 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0010-0004command1Shutdown |
|
926 OUTSTANDING |
|
927 COMMAND CBluetoothSessionSocket ~ |
|
928 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0010-0004command4Shutdown |
|
929 OUTSTANDING |
|
930 COMMAND CBluetoothSocket1 ~ |
|
931 COMMAND CBluetoothSocket1 RSocketServerClose |
|
932 END_TEST_BLOCK |
|
933 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0010-0004 |
|
934 |
|
935 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0010 |
|
936 |
|
937 |
|
938 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0011 |
|
939 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0011 |
|
940 //! @SYMAPI CBluetoothSocket |
|
941 //! @SYMAuthor Johan Eriksson |
|
942 //! @SYMCreationDate 05/04/2006 |
|
943 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify low baseband notification options |
|
944 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
945 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
946 //! @SYMTestActions Wait for master to order start |
|
947 //! 1. Create and start a session on the socket server |
|
948 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
949 //! 3. Create an TRfcommSockAddr object |
|
950 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
951 //! 5. Set the Family to Bluetooth (257) |
|
952 //! 6. Set the port to the one matching the protocol to use |
|
953 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
954 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
955 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
956 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
957 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
958 //! Synchronization point |
|
959 //! Synchronization point |
|
960 //! 12. Do socket cleanup by calling Shutdown()1 |
|
961 //! 13. HandleShutdownCompleteL gets called verify error code |
|
962 //! 14. delete CBluetoothSocket object |
|
963 //! Synchronization point |
|
964 //! @SYMTestStatus Implemented |
|
965 //! @SYMTestPriority Critical |
|
966 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully for client baseband notification testing |
|
967 //! @SYMTestType CIT |
|
968 |
|
969 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
970 SHARED_ACTIVE_SCHEDULER |
|
971 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
972 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
973 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
974 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
975 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
976 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0011-0001command3NewL |
|
977 COMMAND TRfcommSockAddr1 Construct |
|
978 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0011-0001command6SetBTAddr |
|
979 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0011-0001command7BTAddr |
|
980 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0011-0001command8SetFamily |
|
981 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0011-0001command9SetPort |
|
982 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0011-0001command11Bind |
|
983 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0011-0001command12Listen |
|
984 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0011-0001command14SetRsocketServerFromCBTSocket |
|
985 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0011-0001command15NewL |
|
986 STORE CBluetoothSocket1 |
|
987 STORE CBluetoothSessionSocket |
|
988 STORE TBTDevAddrLocal |
|
989 STORE_ACTIVE_SCHEDULER |
|
990 END_TEST_BLOCK |
|
991 |
|
992 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0011-0002 |
|
993 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
994 SHARED_ACTIVE_SCHEDULER |
|
995 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
996 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
997 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0011-0002command1Accept |
|
998 OUTSTANDING |
|
999 STORE CBluetoothSocket1 |
|
1000 STORE CBluetoothSessionSocket |
|
1001 STORE_ACTIVE_SCHEDULER |
|
1002 END_TEST_BLOCK |
|
1003 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0011-0002 |
|
1004 |
|
1005 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0011-0003 |
|
1006 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1007 SHARED_ACTIVE_SCHEDULER |
|
1008 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1009 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1010 COMMAND CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0011-0003command1RecvOneOrMore |
|
1011 OUTSTANDING |
|
1012 STORE CBluetoothSocket1 |
|
1013 STORE CBluetoothSessionSocket |
|
1014 STORE_ACTIVE_SCHEDULER |
|
1015 END_TEST_BLOCK |
|
1016 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0011-0003 |
|
1017 |
|
1018 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0011-0004 |
|
1019 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1020 SHARED_ACTIVE_SCHEDULER |
|
1021 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1022 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1023 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0011-0004command1Shutdown |
|
1024 OUTSTANDING |
|
1025 COMMAND CBluetoothSessionSocket ~ |
|
1026 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0011-0004command4Shutdown |
|
1027 OUTSTANDING |
|
1028 COMMAND CBluetoothSocket1 ~ |
|
1029 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1030 END_TEST_BLOCK |
|
1031 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0011-0004 |
|
1032 |
|
1033 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0011 |
|
1034 |
|
1035 |
|
1036 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0012 |
|
1037 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0012 |
|
1038 //! @SYMAPI CBluetoothSocket |
|
1039 //! @SYMAuthor Johan Eriksson |
|
1040 //! @SYMCreationDate 05/04/2006 |
|
1041 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify role switching |
|
1042 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
1043 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
1044 //! @SYMTestActions Wait for master to order start |
|
1045 //! 1. Create and start a session on the socket server |
|
1046 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
1047 //! 3. Create an TRfcommSockAddr object |
|
1048 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
1049 //! 5. Set the Family to Bluetooth (257) |
|
1050 //! 6. Set the port to the one matching the protocol to use |
|
1051 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
1052 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
1053 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
1054 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
1055 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
1056 //! Synchronization point |
|
1057 //! Synchronization point |
|
1058 //! 12. Do socket cleanup by calling Shutdown()1 |
|
1059 //! 13. HandleShutdownCompleteL gets called verify error code |
|
1060 //! 14. delete CBluetoothSocket object |
|
1061 //! Synchronization point |
|
1062 //! @SYMTestStatus Implemented |
|
1063 //! @SYMTestPriority Critical |
|
1064 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully for role switch testing |
|
1065 //! @SYMTestType CIT |
|
1066 |
|
1067 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1068 SHARED_ACTIVE_SCHEDULER |
|
1069 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1070 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1071 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1072 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
1073 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1074 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0012-0001command2NewL |
|
1075 COMMAND TRfcommSockAddr1 Construct |
|
1076 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0012-0001command5SetBTAddr |
|
1077 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0012-0001command6BTAddr |
|
1078 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0012-0001command7SetFamily |
|
1079 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0012-0001command8SetPort |
|
1080 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0012-0001command10SetRsocketServerFromCBTSocket |
|
1081 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0012-0001command11NewL |
|
1082 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0012-0001command13Bind |
|
1083 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0012-0001command14Listen |
|
1084 STORE CBluetoothSocket1 |
|
1085 STORE CBluetoothSessionSocket |
|
1086 STORE TBTDevAddrLocal |
|
1087 STORE_ACTIVE_SCHEDULER |
|
1088 END_TEST_BLOCK |
|
1089 |
|
1090 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0012-0002 |
|
1091 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1092 SHARED_ACTIVE_SCHEDULER |
|
1093 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1094 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1095 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0012-0002command1Accept |
|
1096 OUTSTANDING |
|
1097 STORE CBluetoothSocket1 |
|
1098 STORE CBluetoothSessionSocket |
|
1099 STORE_ACTIVE_SCHEDULER |
|
1100 END_TEST_BLOCK |
|
1101 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0012-0002 |
|
1102 |
|
1103 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0012-0003 |
|
1104 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1105 SHARED_ACTIVE_SCHEDULER |
|
1106 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1107 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1108 COMMAND CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0012-0003command1RecvOneOrMore |
|
1109 OUTSTANDING |
|
1110 STORE CBluetoothSocket1 |
|
1111 STORE CBluetoothSessionSocket |
|
1112 STORE_ACTIVE_SCHEDULER |
|
1113 END_TEST_BLOCK |
|
1114 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0012-0003 |
|
1115 |
|
1116 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0012-0004 |
|
1117 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1118 SHARED_ACTIVE_SCHEDULER |
|
1119 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1120 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1121 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0012-0004command1Shutdown |
|
1122 OUTSTANDING |
|
1123 COMMAND CBluetoothSessionSocket ~ |
|
1124 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0012-0004command4Shutdown |
|
1125 OUTSTANDING |
|
1126 COMMAND CBluetoothSocket1 ~ |
|
1127 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1128 END_TEST_BLOCK |
|
1129 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0012-0004 |
|
1130 |
|
1131 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0012 |
|
1132 |
|
1133 |
|
1134 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0013 |
|
1135 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0013 |
|
1136 //! @SYMAPI CBluetoothSocket |
|
1137 //! @SYMAuthor Johan Eriksson |
|
1138 //! @SYMCreationDate 05/04/2006 |
|
1139 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify park and sniff requesters |
|
1140 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
1141 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
1142 //! @SYMTestActions Wait for master to order start |
|
1143 //! 1. Create and start a session on the socket server |
|
1144 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
1145 //! 3. Create an TRfcommSockAddr object |
|
1146 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
1147 //! 5. Set the Family to Bluetooth (257) |
|
1148 //! 6. Set the port to the one matching the protocol to use |
|
1149 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
1150 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
1151 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
1152 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
1153 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
1154 //! Synchronization point |
|
1155 //! Synchronization point |
|
1156 //! 12. Do socket cleanup by calling Shutdown()1 |
|
1157 //! 13. HandleShutdownCompleteL gets called verify error code |
|
1158 //! 14. delete CBluetoothSocket object |
|
1159 //! Synchronization point |
|
1160 //! @SYMTestStatus Implemented |
|
1161 //! @SYMTestPriority Critical |
|
1162 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully to verify park and sniff requesters |
|
1163 //! @SYMTestType CIT |
|
1164 |
|
1165 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1166 SHARED_ACTIVE_SCHEDULER |
|
1167 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1168 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1169 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1170 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
1171 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1172 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0013-0001command2NewL |
|
1173 COMMAND TRfcommSockAddr1 Construct |
|
1174 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0013-0001command5SetBTAddr |
|
1175 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0013-0001command6BTAddr |
|
1176 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0013-0001command7SetFamily |
|
1177 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0013-0001command8SetPort |
|
1178 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0013-0001command10SetRsocketServerFromCBTSocket |
|
1179 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0013-0001command11NewL |
|
1180 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0013-0001command13Bind |
|
1181 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0013-0001command14Listen |
|
1182 STORE CBluetoothSocket1 |
|
1183 STORE CBluetoothSessionSocket |
|
1184 STORE TBTDevAddrLocal |
|
1185 STORE_ACTIVE_SCHEDULER |
|
1186 END_TEST_BLOCK |
|
1187 |
|
1188 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0013-0002 |
|
1189 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1190 SHARED_ACTIVE_SCHEDULER |
|
1191 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1192 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1193 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0013-0002command1Accept |
|
1194 OUTSTANDING |
|
1195 STORE CBluetoothSocket1 |
|
1196 STORE CBluetoothSessionSocket |
|
1197 STORE_ACTIVE_SCHEDULER |
|
1198 END_TEST_BLOCK |
|
1199 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0013-0002 |
|
1200 |
|
1201 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0013-0003 |
|
1202 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1203 SHARED_ACTIVE_SCHEDULER |
|
1204 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1205 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1206 COMMAND CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0013-0003command1RecvOneOrMore |
|
1207 OUTSTANDING |
|
1208 STORE CBluetoothSocket1 |
|
1209 STORE CBluetoothSessionSocket |
|
1210 STORE_ACTIVE_SCHEDULER |
|
1211 END_TEST_BLOCK |
|
1212 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0013-0003 |
|
1213 |
|
1214 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0013-0004 |
|
1215 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1216 SHARED_ACTIVE_SCHEDULER |
|
1217 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1218 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1219 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0013-0004command1Shutdown |
|
1220 OUTSTANDING |
|
1221 COMMAND CBluetoothSessionSocket ~ |
|
1222 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0013-0004command4Shutdown |
|
1223 OUTSTANDING |
|
1224 COMMAND CBluetoothSocket1 ~ |
|
1225 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1226 END_TEST_BLOCK |
|
1227 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0013-0004 |
|
1228 |
|
1229 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0013 |
|
1230 |
|
1231 |
|
1232 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0014 |
|
1233 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0014 |
|
1234 //! @SYMAPI CBluetoothSocket |
|
1235 //! @SYMAuthor Johan Eriksson |
|
1236 //! @SYMCreationDate 05/04/2006 |
|
1237 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify cancel of send |
|
1238 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
1239 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
1240 //! @SYMTestActions Wait for master to order start |
|
1241 //! 1. Create and start a session on the socket server |
|
1242 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
1243 //! 3. Create an TRfcommSockAddr object |
|
1244 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
1245 //! 5. Set the Family to Bluetooth (257) |
|
1246 //! 6. Set the port to the one matching the protocol to use |
|
1247 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
1248 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
1249 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
1250 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
1251 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
1252 //! Synchronization point |
|
1253 //! Synchronization point |
|
1254 //! 12. Do socket cleanup by calling Shutdown()1 |
|
1255 //! 13. HandleShutdownCompleteL gets called verify error code |
|
1256 //! 14. delete CBluetoothSocket object |
|
1257 //! Synchronization point |
|
1258 //! @SYMTestStatus Implemented |
|
1259 //! @SYMTestPriority Critical |
|
1260 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully to verify cancel of send |
|
1261 //! @SYMTestType CIT |
|
1262 |
|
1263 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1264 SHARED_ACTIVE_SCHEDULER |
|
1265 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1266 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1267 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1268 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
1269 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1270 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0014-0001command2NewL |
|
1271 COMMAND TRfcommSockAddr1 Construct |
|
1272 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0014-0001command5SetBTAddr |
|
1273 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0014-0001command6BTAddr |
|
1274 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0014-0001command7SetFamily |
|
1275 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0014-0001command8SetPort |
|
1276 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0014-0001command10SetRsocketServerFromCBTSocket |
|
1277 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0014-0001command11NewL |
|
1278 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0014-0001command13Bind |
|
1279 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0014-0001command14Listen |
|
1280 STORE CBluetoothSocket1 |
|
1281 STORE CBluetoothSessionSocket |
|
1282 STORE TBTDevAddrLocal |
|
1283 STORE_ACTIVE_SCHEDULER |
|
1284 END_TEST_BLOCK |
|
1285 |
|
1286 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0014-0002 |
|
1287 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1288 SHARED_ACTIVE_SCHEDULER |
|
1289 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1290 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1291 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0014-0002command1Accept |
|
1292 OUTSTANDING |
|
1293 STORE CBluetoothSocket1 |
|
1294 STORE CBluetoothSessionSocket |
|
1295 STORE_ACTIVE_SCHEDULER |
|
1296 END_TEST_BLOCK |
|
1297 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0014-0002 |
|
1298 |
|
1299 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0014-0003 |
|
1300 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1301 SHARED_ACTIVE_SCHEDULER |
|
1302 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1303 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1304 COMMAND CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0014-0003command1RecvOneOrMore |
|
1305 OUTSTANDING |
|
1306 STORE CBluetoothSocket1 |
|
1307 STORE CBluetoothSessionSocket |
|
1308 STORE_ACTIVE_SCHEDULER |
|
1309 END_TEST_BLOCK |
|
1310 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0014-0003 |
|
1311 |
|
1312 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0014-0004 |
|
1313 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1314 SHARED_ACTIVE_SCHEDULER |
|
1315 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1316 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1317 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0014-0004command1Shutdown |
|
1318 OUTSTANDING |
|
1319 COMMAND CBluetoothSessionSocket ~ |
|
1320 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0014-0004command4Shutdown |
|
1321 OUTSTANDING |
|
1322 COMMAND CBluetoothSocket1 ~ |
|
1323 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1324 END_TEST_BLOCK |
|
1325 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0014-0004 |
|
1326 |
|
1327 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0014 |
|
1328 |
|
1329 |
|
1330 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0015 |
|
1331 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0015 |
|
1332 //! @SYMAPI CBluetoothSocket |
|
1333 //! @SYMAuthor Johan Eriksson |
|
1334 //! @SYMCreationDate 05/04/2006 |
|
1335 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify cancel of send using cancelall |
|
1336 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
1337 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
1338 //! @SYMTestActions Wait for master to order start |
|
1339 //! 1. Create and start a session on the socket server |
|
1340 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
1341 //! 3. Create an TRfcommSockAddr object |
|
1342 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
1343 //! 5. Set the Family to Bluetooth (257) |
|
1344 //! 6. Set the port to the one matching the protocol to use |
|
1345 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
1346 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
1347 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
1348 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
1349 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
1350 //! Synchronization point |
|
1351 //! Synchronization point |
|
1352 //! 12. Do socket cleanup by calling Shutdown()1 |
|
1353 //! 13. HandleShutdownCompleteL gets called verify error code |
|
1354 //! 14. delete CBluetoothSocket object |
|
1355 //! Synchronization point |
|
1356 //! @SYMTestStatus Implemented |
|
1357 //! @SYMTestPriority Critical |
|
1358 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully to verify cancel of send |
|
1359 //! @SYMTestType CIT |
|
1360 |
|
1361 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1362 SHARED_ACTIVE_SCHEDULER |
|
1363 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1364 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1365 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1366 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
1367 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1368 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0015-0001command2NewL |
|
1369 COMMAND TRfcommSockAddr1 Construct |
|
1370 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0015-0001command5SetBTAddr |
|
1371 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0015-0001command6BTAddr |
|
1372 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0015-0001command7SetFamily |
|
1373 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0015-0001command8SetPort |
|
1374 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0015-0001command10SetRsocketServerFromCBTSocket |
|
1375 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0015-0001command11NewL |
|
1376 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0015-0001command13Bind |
|
1377 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0015-0001command14Listen |
|
1378 STORE CBluetoothSocket1 |
|
1379 STORE CBluetoothSessionSocket |
|
1380 STORE TBTDevAddrLocal |
|
1381 STORE_ACTIVE_SCHEDULER |
|
1382 END_TEST_BLOCK |
|
1383 |
|
1384 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0015-0002 |
|
1385 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1386 SHARED_ACTIVE_SCHEDULER |
|
1387 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1388 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1389 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0015-0002command1Accept |
|
1390 OUTSTANDING |
|
1391 STORE CBluetoothSocket1 |
|
1392 STORE CBluetoothSessionSocket |
|
1393 STORE_ACTIVE_SCHEDULER |
|
1394 END_TEST_BLOCK |
|
1395 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0015-0002 |
|
1396 |
|
1397 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0015-0003 |
|
1398 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1399 SHARED_ACTIVE_SCHEDULER |
|
1400 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1401 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1402 COMMAND CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0015-0003command1RecvOneOrMore |
|
1403 OUTSTANDING |
|
1404 STORE CBluetoothSocket1 |
|
1405 STORE CBluetoothSessionSocket |
|
1406 STORE_ACTIVE_SCHEDULER |
|
1407 END_TEST_BLOCK |
|
1408 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0015-0003 |
|
1409 |
|
1410 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0015-0004 |
|
1411 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1412 SHARED_ACTIVE_SCHEDULER |
|
1413 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1414 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1415 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0015-0004command1Shutdown |
|
1416 OUTSTANDING |
|
1417 COMMAND CBluetoothSessionSocket ~ |
|
1418 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0015-0004command4Shutdown |
|
1419 OUTSTANDING |
|
1420 COMMAND CBluetoothSocket1 ~ |
|
1421 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1422 END_TEST_BLOCK |
|
1423 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0015-0004 |
|
1424 |
|
1425 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0015 |
|
1426 |
|
1427 |
|
1428 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0016 |
|
1429 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0016 |
|
1430 //! @SYMAPI CBluetoothSocket |
|
1431 //! @SYMAuthor Johan Eriksson |
|
1432 //! @SYMCreationDate 05/04/2006 |
|
1433 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and cancel recovery of data |
|
1434 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
1435 //! HandleAcceptCompleteL, Recv()1, CancelRecv, HandleReceiveCompleteL, Shutdown()1, |
|
1436 //! HandleShutdownCompleteL |
|
1437 //! @SYMTestActions Wait for master to order start |
|
1438 //! 1. Create and start a session on the socket server |
|
1439 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
1440 //! 3. Create an TRfcommSockAddr object |
|
1441 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
1442 //! 5. Set the Family to Bluetooth (257) |
|
1443 //! 6. Set the port to the one matching the protocol to use |
|
1444 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
1445 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
1446 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
1447 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
1448 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
1449 //! Synchronization point |
|
1450 //! 12. Read data sent to socket using Recv()1 |
|
1451 //! 13. Call CancelRecv before Recv is completed |
|
1452 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
1453 //! Synchronization point |
|
1454 //! 15. Do socket cleanup by calling Shutdown()1 |
|
1455 //! 16. HandleShutdownCompleteL gets called verify error code |
|
1456 //! 17. delete CBluetoothSocket object |
|
1457 //! Synchronization point |
|
1458 //! @SYMTestStatus Implemented |
|
1459 //! @SYMTestPriority Critical |
|
1460 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, Recv cancelled |
|
1461 //! @SYMTestType CIT |
|
1462 |
|
1463 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1464 SHARED_ACTIVE_SCHEDULER |
|
1465 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1466 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1467 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1468 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
1469 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1470 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0016-0001command2NewL |
|
1471 COMMAND TRfcommSockAddr1 Construct |
|
1472 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0016-0001command5SetBTAddr |
|
1473 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0016-0001command6BTAddr |
|
1474 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0016-0001command7SetFamily |
|
1475 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0016-0001command8SetPort |
|
1476 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0016-0001command10SetRsocketServerFromCBTSocket |
|
1477 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0016-0001command11NewL |
|
1478 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0016-0001command13Bind |
|
1479 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0016-0001command14Listen |
|
1480 STORE CBluetoothSocket1 |
|
1481 STORE CBluetoothSessionSocket |
|
1482 STORE TBTDevAddrLocal |
|
1483 STORE_ACTIVE_SCHEDULER |
|
1484 END_TEST_BLOCK |
|
1485 |
|
1486 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0016-0002 |
|
1487 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1488 SHARED_ACTIVE_SCHEDULER |
|
1489 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1490 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1491 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0016-0002command1Accept |
|
1492 OUTSTANDING |
|
1493 STORE CBluetoothSocket1 |
|
1494 STORE CBluetoothSessionSocket |
|
1495 STORE_ACTIVE_SCHEDULER |
|
1496 END_TEST_BLOCK |
|
1497 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0016-0002 |
|
1498 |
|
1499 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0016-0003 |
|
1500 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1501 SHARED_ACTIVE_SCHEDULER |
|
1502 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1503 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1504 DELAY 1 |
|
1505 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0016-0003command2Recv |
|
1506 COMMAND CBluetoothSessionSocket CancelRecv |
|
1507 OUTSTANDING |
|
1508 STORE CBluetoothSocket1 |
|
1509 STORE CBluetoothSessionSocket |
|
1510 STORE_ACTIVE_SCHEDULER |
|
1511 END_TEST_BLOCK |
|
1512 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0016-0003 |
|
1513 |
|
1514 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0016-0004 |
|
1515 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1516 SHARED_ACTIVE_SCHEDULER |
|
1517 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1518 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1519 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0016-0004command1Shutdown |
|
1520 OUTSTANDING |
|
1521 COMMAND CBluetoothSessionSocket ~ |
|
1522 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0016-0004command4Shutdown |
|
1523 OUTSTANDING |
|
1524 COMMAND CBluetoothSocket1 ~ |
|
1525 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1526 END_TEST_BLOCK |
|
1527 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0016-0004 |
|
1528 |
|
1529 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0016 |
|
1530 |
|
1531 |
|
1532 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0017 |
|
1533 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0017 |
|
1534 //! @SYMAPI CBluetoothSocket |
|
1535 //! @SYMAuthor Johan Eriksson |
|
1536 //! @SYMCreationDate 05/04/2006 |
|
1537 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data using read |
|
1538 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
1539 //! HandleAcceptCompleteL, Read, HandleReceiveCompleteL, Shutdown()1, |
|
1540 //! HandleShutdownCompleteL |
|
1541 //! @SYMTestActions Wait for master to order start |
|
1542 //! 1. Create and start a session on the socket server |
|
1543 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
1544 //! 3. Create an TRfcommSockAddr object |
|
1545 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
1546 //! 5. Set the Family to Bluetooth (257) |
|
1547 //! 6. Set the port to the one matching the protocol to use |
|
1548 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
1549 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
1550 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
1551 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
1552 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
1553 //! Synchronization point |
|
1554 //! 12. Read data sent to socket using Read |
|
1555 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
1556 //! Synchronization point |
|
1557 //! 14. Do socket cleanup by calling Shutdown()1 |
|
1558 //! 15. HandleShutdownCompleteL gets called verify error code |
|
1559 //! 16. delete CBluetoothSocket object |
|
1560 //! Synchronization point |
|
1561 //! @SYMTestStatus Implemented |
|
1562 //! @SYMTestPriority Critical |
|
1563 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully |
|
1564 //! @SYMTestType CIT |
|
1565 |
|
1566 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1567 SHARED_ACTIVE_SCHEDULER |
|
1568 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1569 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1570 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1571 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
1572 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1573 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0017-0001command2NewL |
|
1574 COMMAND TRfcommSockAddr1 Construct |
|
1575 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0017-0001command5SetBTAddr |
|
1576 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0017-0001command6BTAddr |
|
1577 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0017-0001command7SetFamily |
|
1578 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0017-0001command8SetPort |
|
1579 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0017-0001command10SetRsocketServerFromCBTSocket |
|
1580 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0017-0001command11NewL |
|
1581 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0017-0001command13Bind |
|
1582 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0017-0001command14Listen |
|
1583 STORE CBluetoothSocket1 |
|
1584 STORE CBluetoothSessionSocket |
|
1585 STORE TBTDevAddrLocal |
|
1586 STORE_ACTIVE_SCHEDULER |
|
1587 END_TEST_BLOCK |
|
1588 |
|
1589 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0017-0002 |
|
1590 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1591 SHARED_ACTIVE_SCHEDULER |
|
1592 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1593 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1594 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0017-0002command1Accept |
|
1595 OUTSTANDING |
|
1596 STORE CBluetoothSocket1 |
|
1597 STORE CBluetoothSessionSocket |
|
1598 STORE_ACTIVE_SCHEDULER |
|
1599 END_TEST_BLOCK |
|
1600 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0017-0002 |
|
1601 |
|
1602 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0017-0003 |
|
1603 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1604 SHARED_ACTIVE_SCHEDULER |
|
1605 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1606 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1607 COMMAND CBluetoothSessionSocket Read BT-USER-SOCK-PublicAPI-Passive-0017-0003command1Read |
|
1608 OUTSTANDING |
|
1609 STORE CBluetoothSocket1 |
|
1610 STORE CBluetoothSessionSocket |
|
1611 STORE_ACTIVE_SCHEDULER |
|
1612 END_TEST_BLOCK |
|
1613 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0017-0003 |
|
1614 |
|
1615 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0017-0004 |
|
1616 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1617 SHARED_ACTIVE_SCHEDULER |
|
1618 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1619 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1620 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0017-0004command1Shutdown |
|
1621 OUTSTANDING |
|
1622 COMMAND CBluetoothSessionSocket ~ |
|
1623 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0017-0004command4Shutdown |
|
1624 OUTSTANDING |
|
1625 COMMAND CBluetoothSocket1 ~ |
|
1626 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1627 END_TEST_BLOCK |
|
1628 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0017-0004 |
|
1629 |
|
1630 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0017 |
|
1631 |
|
1632 |
|
1633 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0018 |
|
1634 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0018 |
|
1635 //! @SYMAPI CBluetoothSocket |
|
1636 //! @SYMAuthor Johan Eriksson |
|
1637 //! @SYMCreationDate 05/04/2006 |
|
1638 //! @SYMTestCaseDesc Set up a Bluetooth endpoint, to test cancel of write on active side |
|
1639 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
1640 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
1641 //! @SYMTestActions Wait for master to order start |
|
1642 //! 1. Create and start a session on the socket server |
|
1643 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
1644 //! 3. Create an TRfcommSockAddr object |
|
1645 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
1646 //! 5. Set the Family to Bluetooth (257) |
|
1647 //! 6. Set the port to the one matching the protocol to use |
|
1648 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
1649 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
1650 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
1651 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
1652 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
1653 //! Synchronization point |
|
1654 //! 12. Read data sent to socket using Read |
|
1655 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
1656 //! Synchronization point |
|
1657 //! 14. Do socket cleanup by calling Shutdown()1 |
|
1658 //! 15. HandleShutdownCompleteL gets called verify error code |
|
1659 //! 16. delete CBluetoothSocket object |
|
1660 //! Synchronization point |
|
1661 //! @SYMTestStatus Implemented |
|
1662 //! @SYMTestPriority Critical |
|
1663 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, to test cancel of write on active side |
|
1664 //! @SYMTestType CIT |
|
1665 |
|
1666 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1667 SHARED_ACTIVE_SCHEDULER |
|
1668 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1669 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1670 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1671 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
1672 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1673 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0018-0001command2NewL |
|
1674 COMMAND TRfcommSockAddr1 Construct |
|
1675 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0018-0001command5SetBTAddr |
|
1676 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0018-0001command6BTAddr |
|
1677 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0018-0001command7SetFamily |
|
1678 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0018-0001command8SetPort |
|
1679 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0018-0001command10SetRsocketServerFromCBTSocket |
|
1680 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0018-0001command11NewL |
|
1681 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0018-0001command13Bind |
|
1682 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0018-0001command14Listen |
|
1683 STORE CBluetoothSocket1 |
|
1684 STORE CBluetoothSessionSocket |
|
1685 STORE TBTDevAddrLocal |
|
1686 STORE_ACTIVE_SCHEDULER |
|
1687 END_TEST_BLOCK |
|
1688 |
|
1689 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0018-0002 |
|
1690 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1691 SHARED_ACTIVE_SCHEDULER |
|
1692 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1693 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1694 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0018-0002command1Accept |
|
1695 OUTSTANDING |
|
1696 STORE CBluetoothSocket1 |
|
1697 STORE CBluetoothSessionSocket |
|
1698 STORE_ACTIVE_SCHEDULER |
|
1699 END_TEST_BLOCK |
|
1700 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0018-0002 |
|
1701 |
|
1702 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0018-0003 |
|
1703 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1704 SHARED_ACTIVE_SCHEDULER |
|
1705 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1706 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1707 COMMAND CBluetoothSessionSocket Read BT-USER-SOCK-PublicAPI-Passive-0018-0003command1Read |
|
1708 OUTSTANDING |
|
1709 STORE CBluetoothSocket1 |
|
1710 STORE CBluetoothSessionSocket |
|
1711 STORE_ACTIVE_SCHEDULER |
|
1712 END_TEST_BLOCK |
|
1713 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0018-0003 |
|
1714 |
|
1715 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0018-0004 |
|
1716 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1717 SHARED_ACTIVE_SCHEDULER |
|
1718 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1719 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1720 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0018-0004command1Shutdown |
|
1721 OUTSTANDING |
|
1722 COMMAND CBluetoothSessionSocket ~ |
|
1723 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0018-0004command4Shutdown |
|
1724 OUTSTANDING |
|
1725 COMMAND CBluetoothSocket1 ~ |
|
1726 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1727 END_TEST_BLOCK |
|
1728 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0018-0004 |
|
1729 |
|
1730 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0018 |
|
1731 |
|
1732 |
|
1733 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0019 |
|
1734 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0019 |
|
1735 //! @SYMAPI CBluetoothSocket |
|
1736 //! @SYMAuthor Johan Eriksson |
|
1737 //! @SYMCreationDate 05/04/2006 |
|
1738 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data, cancel read of data from client |
|
1739 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
1740 //! HandleAcceptCompleteL, Read, CancelRead , HandleReceiveCompleteL, Shutdown()1, |
|
1741 //! HandleShutdownCompleteL |
|
1742 //! @SYMTestActions Wait for master to order start |
|
1743 //! 1. Create and start a session on the socket server |
|
1744 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
1745 //! 3. Create an TRfcommSockAddr object |
|
1746 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
1747 //! 5. Set the Family to Bluetooth (257) |
|
1748 //! 6. Set the port to the one matching the protocol to use |
|
1749 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
1750 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
1751 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
1752 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
1753 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
1754 //! Synchronization point |
|
1755 //! 12. Read data sent to socket using Read |
|
1756 //! 13. Call CancelRead to cancel the read |
|
1757 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
1758 //! Synchronization point |
|
1759 //! 15. Do socket cleanup by calling Shutdown()1 |
|
1760 //! 16. HandleShutdownCompleteL gets called verify error code |
|
1761 //! 17. delete CBluetoothSocket object |
|
1762 //! Synchronization point |
|
1763 //! @SYMTestStatus Implemented |
|
1764 //! @SYMTestPriority Critical |
|
1765 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, read is cancelled |
|
1766 //! @SYMTestType CIT |
|
1767 |
|
1768 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1769 SHARED_ACTIVE_SCHEDULER |
|
1770 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1771 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1772 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1773 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
1774 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1775 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0019-0001command2NewL |
|
1776 COMMAND TRfcommSockAddr1 Construct |
|
1777 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0019-0001command5SetBTAddr |
|
1778 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0019-0001command6BTAddr |
|
1779 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0019-0001command7SetFamily |
|
1780 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0019-0001command8SetPort |
|
1781 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0019-0001command10SetRsocketServerFromCBTSocket |
|
1782 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0019-0001command11NewL |
|
1783 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0019-0001command13Bind |
|
1784 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0019-0001command14Listen |
|
1785 STORE CBluetoothSocket1 |
|
1786 STORE CBluetoothSessionSocket |
|
1787 STORE TBTDevAddrLocal |
|
1788 STORE_ACTIVE_SCHEDULER |
|
1789 END_TEST_BLOCK |
|
1790 |
|
1791 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0019-0002 |
|
1792 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1793 SHARED_ACTIVE_SCHEDULER |
|
1794 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1795 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1796 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0019-0002command1Accept |
|
1797 OUTSTANDING |
|
1798 STORE CBluetoothSocket1 |
|
1799 STORE CBluetoothSessionSocket |
|
1800 STORE_ACTIVE_SCHEDULER |
|
1801 END_TEST_BLOCK |
|
1802 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0019-0002 |
|
1803 |
|
1804 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0019-0003 |
|
1805 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1806 SHARED_ACTIVE_SCHEDULER |
|
1807 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1808 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1809 DELAY 1 |
|
1810 COMMAND CBluetoothSessionSocket Read BT-USER-SOCK-PublicAPI-Passive-0019-0003command2Read |
|
1811 COMMAND CBluetoothSessionSocket CancelRead |
|
1812 OUTSTANDING |
|
1813 STORE CBluetoothSocket1 |
|
1814 STORE CBluetoothSessionSocket |
|
1815 STORE_ACTIVE_SCHEDULER |
|
1816 END_TEST_BLOCK |
|
1817 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0019-0003 |
|
1818 |
|
1819 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0019-0004 |
|
1820 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1821 SHARED_ACTIVE_SCHEDULER |
|
1822 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1823 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1824 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0019-0004command1Shutdown |
|
1825 OUTSTANDING |
|
1826 COMMAND CBluetoothSessionSocket ~ |
|
1827 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0019-0004command4Shutdown |
|
1828 OUTSTANDING |
|
1829 COMMAND CBluetoothSocket1 ~ |
|
1830 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1831 END_TEST_BLOCK |
|
1832 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0019-0004 |
|
1833 |
|
1834 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0019 |
|
1835 |
|
1836 |
|
1837 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0020 |
|
1838 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0020 |
|
1839 //! @SYMAPI CBluetoothSocket |
|
1840 //! @SYMAuthor Johan Eriksson |
|
1841 //! @SYMCreationDate 05/04/2006 |
|
1842 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data using RecvOneOrMore |
|
1843 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
1844 //! HandleAcceptCompleteL, RecvOneOrMore, HandleReceiveCompleteL, Shutdown()1, |
|
1845 //! HandleShutdownCompleteL |
|
1846 //! @SYMTestActions Wait for master to order start |
|
1847 //! 1. Create and start a session on the socket server |
|
1848 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
1849 //! 3. Create an TRfcommSockAddr object |
|
1850 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
1851 //! 5. Set the Family to Bluetooth (257) |
|
1852 //! 6. Set the port to the one matching the protocol to use |
|
1853 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
1854 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
1855 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
1856 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
1857 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
1858 //! Synchronization point |
|
1859 //! 12. Read data sent to socket using RecvOneOrMore |
|
1860 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
1861 //! Synchronization point |
|
1862 //! 14. Do socket cleanup by calling Shutdown()1 |
|
1863 //! 15. HandleShutdownCompleteL gets called verify error code |
|
1864 //! 16. delete CBluetoothSocket object |
|
1865 //! Synchronization point |
|
1866 //! @SYMTestStatus Implemented |
|
1867 //! @SYMTestPriority Critical |
|
1868 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data read using RecvOneOrMore |
|
1869 //! @SYMTestType CIT |
|
1870 |
|
1871 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1872 SHARED_ACTIVE_SCHEDULER |
|
1873 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1874 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1875 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1876 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
1877 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1878 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0020-0001command2NewL |
|
1879 COMMAND TRfcommSockAddr1 Construct |
|
1880 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0020-0001command5SetBTAddr |
|
1881 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0020-0001command6BTAddr |
|
1882 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0020-0001command7SetFamily |
|
1883 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0020-0001command8SetPort |
|
1884 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0020-0001command10SetRsocketServerFromCBTSocket |
|
1885 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0020-0001command11NewL |
|
1886 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0020-0001command13Bind |
|
1887 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0020-0001command14Listen |
|
1888 STORE CBluetoothSocket1 |
|
1889 STORE CBluetoothSessionSocket |
|
1890 STORE TBTDevAddrLocal |
|
1891 STORE_ACTIVE_SCHEDULER |
|
1892 END_TEST_BLOCK |
|
1893 |
|
1894 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0020-0002 |
|
1895 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1896 SHARED_ACTIVE_SCHEDULER |
|
1897 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1898 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1899 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0020-0002command1Accept |
|
1900 OUTSTANDING |
|
1901 STORE CBluetoothSocket1 |
|
1902 STORE CBluetoothSessionSocket |
|
1903 STORE_ACTIVE_SCHEDULER |
|
1904 END_TEST_BLOCK |
|
1905 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0020-0002 |
|
1906 |
|
1907 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0020-0003 |
|
1908 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1909 SHARED_ACTIVE_SCHEDULER |
|
1910 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1911 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1912 COMMAND CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0020-0003command1RecvOneOrMore |
|
1913 OUTSTANDING |
|
1914 STORE CBluetoothSocket1 |
|
1915 STORE CBluetoothSessionSocket |
|
1916 STORE_ACTIVE_SCHEDULER |
|
1917 END_TEST_BLOCK |
|
1918 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0020-0003 |
|
1919 |
|
1920 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0020-0004 |
|
1921 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1922 SHARED_ACTIVE_SCHEDULER |
|
1923 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1924 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1925 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0020-0004command1Shutdown |
|
1926 OUTSTANDING |
|
1927 COMMAND CBluetoothSessionSocket ~ |
|
1928 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0020-0004command4Shutdown |
|
1929 OUTSTANDING |
|
1930 COMMAND CBluetoothSocket1 ~ |
|
1931 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1932 END_TEST_BLOCK |
|
1933 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0020-0004 |
|
1934 |
|
1935 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0020 |
|
1936 |
|
1937 |
|
1938 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0021 |
|
1939 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0021 |
|
1940 //! @SYMAPI CBluetoothSocket |
|
1941 //! @SYMAuthor Johan Eriksson |
|
1942 //! @SYMCreationDate 06/04/2006 |
|
1943 //! @SYMTestCaseDesc Set up a Bluetooth endpoint used for testing GetDisconnectData on client side |
|
1944 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
1945 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
1946 //! @SYMTestActions Wait for master to order start |
|
1947 //! 1. Create and start a session on the socket server |
|
1948 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
1949 //! 3. Create an TRfcommSockAddr object |
|
1950 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
1951 //! 5. Set the Family to Bluetooth (257) |
|
1952 //! 6. Set the port to the one matching the protocol to use |
|
1953 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
1954 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
1955 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
1956 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
1957 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
1958 //! Synchronization point |
|
1959 //! 12. Read data sent to socket using Recv()1 |
|
1960 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
1961 //! Synchronization point |
|
1962 //! 14. Do socket cleanup by calling Shutdown()1 |
|
1963 //! 15. HandleShutdownCompleteL gets called verify error code |
|
1964 //! 16. delete CBluetoothSocket object |
|
1965 //! Synchronization point |
|
1966 //! @SYMTestStatus Implemented |
|
1967 //! @SYMTestPriority Critical |
|
1968 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully |
|
1969 //! @SYMTestType CIT |
|
1970 |
|
1971 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1972 SHARED_ACTIVE_SCHEDULER |
|
1973 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1974 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1975 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1976 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
1977 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1978 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0021-0001command2NewL |
|
1979 COMMAND TRfcommSockAddr1 Construct |
|
1980 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0021-0001command5SetBTAddr |
|
1981 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0021-0001command6BTAddr |
|
1982 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0021-0001command7SetFamily |
|
1983 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0021-0001command8SetPort |
|
1984 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0021-0001command10SetRsocketServerFromCBTSocket |
|
1985 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0021-0001command11NewL |
|
1986 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0021-0001command13Bind |
|
1987 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0021-0001command14Listen |
|
1988 STORE CBluetoothSocket1 |
|
1989 STORE CBluetoothSessionSocket |
|
1990 STORE TBTDevAddrLocal |
|
1991 STORE_ACTIVE_SCHEDULER |
|
1992 END_TEST_BLOCK |
|
1993 |
|
1994 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0021-0002 |
|
1995 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
1996 SHARED_ACTIVE_SCHEDULER |
|
1997 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1998 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
1999 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0021-0002command1Accept |
|
2000 OUTSTANDING |
|
2001 STORE CBluetoothSocket1 |
|
2002 STORE CBluetoothSessionSocket |
|
2003 STORE_ACTIVE_SCHEDULER |
|
2004 END_TEST_BLOCK |
|
2005 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0021-0002 |
|
2006 |
|
2007 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0021-0003 |
|
2008 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2009 SHARED_ACTIVE_SCHEDULER |
|
2010 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2011 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2012 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0021-0003command1Recv |
|
2013 OUTSTANDING |
|
2014 STORE CBluetoothSocket1 |
|
2015 STORE CBluetoothSessionSocket |
|
2016 STORE_ACTIVE_SCHEDULER |
|
2017 END_TEST_BLOCK |
|
2018 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0021-0003 |
|
2019 |
|
2020 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0021-0004 |
|
2021 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2022 SHARED_ACTIVE_SCHEDULER |
|
2023 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2024 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2025 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0021-0004command1Shutdown |
|
2026 OUTSTANDING |
|
2027 COMMAND CBluetoothSessionSocket ~ |
|
2028 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0021-0004command4Shutdown |
|
2029 OUTSTANDING |
|
2030 COMMAND CBluetoothSocket1 ~ |
|
2031 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2032 END_TEST_BLOCK |
|
2033 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0021-0004 |
|
2034 |
|
2035 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0021 |
|
2036 |
|
2037 |
|
2038 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0022 |
|
2039 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0022 |
|
2040 //! @SYMAPI CBluetoothSocket |
|
2041 //! @SYMAuthor Johan Eriksson |
|
2042 //! @SYMCreationDate 06/04/2006 |
|
2043 //! @SYMTestCaseDesc Set up a Bluetooth endpoint used for testing RequestChangeSupportedPacketTypes on client side |
|
2044 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
2045 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
2046 //! @SYMTestActions Wait for master to order start |
|
2047 //! 1. Create and start a session on the socket server |
|
2048 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
2049 //! 3. Create an TRfcommSockAddr object |
|
2050 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
2051 //! 5. Set the Family to Bluetooth (257) |
|
2052 //! 6. Set the port to the one matching the protocol to use |
|
2053 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
2054 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
2055 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
2056 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
2057 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
2058 //! Synchronization point |
|
2059 //! 12. Read data sent to socket using Recv()1 |
|
2060 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
2061 //! Synchronization point |
|
2062 //! 14. Do socket cleanup by calling Shutdown()1 |
|
2063 //! 15. HandleShutdownCompleteL gets called verify error code |
|
2064 //! 16. delete CBluetoothSocket object |
|
2065 //! Synchronization point |
|
2066 //! @SYMTestStatus Implemented |
|
2067 //! @SYMTestPriority Critical |
|
2068 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully |
|
2069 //! @SYMTestType CIT |
|
2070 |
|
2071 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2072 SHARED_ACTIVE_SCHEDULER |
|
2073 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2074 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2075 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2076 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
2077 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2078 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0022-0001command2NewL |
|
2079 COMMAND TRfcommSockAddr1 Construct |
|
2080 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0022-0001command5SetBTAddr |
|
2081 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0022-0001command6BTAddr |
|
2082 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0022-0001command7SetFamily |
|
2083 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0022-0001command8SetPort |
|
2084 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0022-0001command10SetRsocketServerFromCBTSocket |
|
2085 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0022-0001command11NewL |
|
2086 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0022-0001command13Bind |
|
2087 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0022-0001command14Listen |
|
2088 STORE CBluetoothSocket1 |
|
2089 STORE CBluetoothSessionSocket |
|
2090 STORE TBTDevAddrLocal |
|
2091 STORE_ACTIVE_SCHEDULER |
|
2092 END_TEST_BLOCK |
|
2093 |
|
2094 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0022-0002 |
|
2095 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2096 SHARED_ACTIVE_SCHEDULER |
|
2097 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2098 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2099 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0022-0002command1Accept |
|
2100 OUTSTANDING |
|
2101 STORE CBluetoothSocket1 |
|
2102 STORE CBluetoothSessionSocket |
|
2103 STORE_ACTIVE_SCHEDULER |
|
2104 END_TEST_BLOCK |
|
2105 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0022-0002 |
|
2106 |
|
2107 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0022-0003 |
|
2108 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2109 SHARED_ACTIVE_SCHEDULER |
|
2110 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2111 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2112 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0022-0003command1Recv |
|
2113 OUTSTANDING |
|
2114 STORE CBluetoothSocket1 |
|
2115 STORE CBluetoothSessionSocket |
|
2116 STORE_ACTIVE_SCHEDULER |
|
2117 END_TEST_BLOCK |
|
2118 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0022-0003 |
|
2119 |
|
2120 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0022-0004 |
|
2121 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2122 SHARED_ACTIVE_SCHEDULER |
|
2123 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2124 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2125 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0022-0004command1Shutdown |
|
2126 OUTSTANDING |
|
2127 COMMAND CBluetoothSessionSocket ~ |
|
2128 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0022-0004command4Shutdown |
|
2129 OUTSTANDING |
|
2130 COMMAND CBluetoothSocket1 ~ |
|
2131 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2132 END_TEST_BLOCK |
|
2133 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0022-0004 |
|
2134 |
|
2135 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0022 |
|
2136 |
|
2137 |
|
2138 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0023 |
|
2139 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0023 |
|
2140 //! @SYMAPI CBluetoothSocket |
|
2141 //! @SYMAuthor James Mechen |
|
2142 //! @SYMCreationDate 07/08/2006 |
|
2143 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
2144 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
2145 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
2146 //! HandleShutdownCompleteL |
|
2147 //! @SYMTestActions Wait for master to order start |
|
2148 //! 1. Create and start a session on the socket server |
|
2149 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
2150 //! 3. Create an TRfcommSockAddr object |
|
2151 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
2152 //! 5. Set the Family to Bluetooth (257) |
|
2153 //! 6. Set the port to the one matching the protocol to use |
|
2154 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
2155 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
2156 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
2157 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
2158 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
2159 //! Synchronization point |
|
2160 //! 12. Read data sent to socket using Recv()1 |
|
2161 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
2162 //! Synchronization point |
|
2163 //! 14. Do socket cleanup by calling Shutdown()1 |
|
2164 //! 15. HandleShutdownCompleteL gets called verify error code |
|
2165 //! 16. delete CBluetoothSocket object |
|
2166 //! Synchronization point |
|
2167 //! @SYMTestStatus Implemented |
|
2168 //! @SYMTestPriority Critical |
|
2169 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
2170 //! @SYMTestType CIT |
|
2171 |
|
2172 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2173 SHARED_ACTIVE_SCHEDULER |
|
2174 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2175 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2176 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2177 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
2178 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2179 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0023-0001command3NewL |
|
2180 COMMAND TRfcommSockAddr1 Construct |
|
2181 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0023-0001command6SetBTAddr |
|
2182 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0023-0001command7BTAddr |
|
2183 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0023-0001command8SetFamily |
|
2184 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0023-0001command9SetPort |
|
2185 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0023-0001command11Bind |
|
2186 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0023-0001command12Listen |
|
2187 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0023-0001command14SetRsocketServerFromCBTSocket |
|
2188 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0023-0001command15NewL |
|
2189 STORE CBluetoothSocket1 |
|
2190 STORE CBluetoothSessionSocket |
|
2191 STORE TBTDevAddrLocal |
|
2192 STORE_ACTIVE_SCHEDULER |
|
2193 END_TEST_BLOCK |
|
2194 |
|
2195 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0023-0002 |
|
2196 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2197 SHARED_ACTIVE_SCHEDULER |
|
2198 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2199 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2200 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0023-0002command1Accept |
|
2201 OUTSTANDING |
|
2202 STORE CBluetoothSocket1 |
|
2203 STORE CBluetoothSessionSocket |
|
2204 STORE_ACTIVE_SCHEDULER |
|
2205 END_TEST_BLOCK |
|
2206 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0023-0002 |
|
2207 |
|
2208 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0023-0003 |
|
2209 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2210 SHARED_ACTIVE_SCHEDULER |
|
2211 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2212 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2213 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0023-0003command1Recv |
|
2214 OUTSTANDING |
|
2215 STORE CBluetoothSocket1 |
|
2216 STORE CBluetoothSessionSocket |
|
2217 STORE_ACTIVE_SCHEDULER |
|
2218 END_TEST_BLOCK |
|
2219 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0023-0003 |
|
2220 |
|
2221 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0023-0004 |
|
2222 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2223 SHARED_ACTIVE_SCHEDULER |
|
2224 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2225 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2226 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0023-0004command1Shutdown |
|
2227 OUTSTANDING |
|
2228 COMMAND CBluetoothSessionSocket ~ |
|
2229 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0023-0004command4Shutdown |
|
2230 OUTSTANDING |
|
2231 COMMAND CBluetoothSocket1 ~ |
|
2232 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2233 END_TEST_BLOCK |
|
2234 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0023-0004 |
|
2235 |
|
2236 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0023 |
|
2237 |
|
2238 |
|
2239 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0024 |
|
2240 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0024 |
|
2241 //! @SYMAPI CBluetoothSocket |
|
2242 //! @SYMAuthor James Mechen |
|
2243 //! @SYMCreationDate 07/08/2006 |
|
2244 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
2245 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
2246 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
2247 //! HandleShutdownCompleteL |
|
2248 //! @SYMTestActions Wait for master to order start |
|
2249 //! 1. Create and start a session on the socket server |
|
2250 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
2251 //! 3. Create an TRfcommSockAddr object |
|
2252 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
2253 //! 5. Set the Family to Bluetooth (257) |
|
2254 //! 6. Set the port to the one matching the protocol to use |
|
2255 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
2256 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
2257 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
2258 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
2259 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
2260 //! Synchronization point |
|
2261 //! 12. Read data sent to socket using Recv()1 |
|
2262 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
2263 //! Synchronization point |
|
2264 //! 14. Do socket cleanup by calling Shutdown()1 |
|
2265 //! 15. HandleShutdownCompleteL gets called verify error code |
|
2266 //! 16. delete CBluetoothSocket object |
|
2267 //! Synchronization point |
|
2268 //! @SYMTestStatus Implemented |
|
2269 //! @SYMTestPriority Critical |
|
2270 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
2271 //! @SYMTestType CIT |
|
2272 |
|
2273 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2274 SHARED_ACTIVE_SCHEDULER |
|
2275 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2276 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2277 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2278 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
2279 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2280 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0024-0001command3NewL |
|
2281 COMMAND TRfcommSockAddr1 Construct |
|
2282 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0024-0001command6SetBTAddr |
|
2283 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0024-0001command7BTAddr |
|
2284 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0024-0001command8SetFamily |
|
2285 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0024-0001command9SetPort |
|
2286 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0024-0001command11Bind |
|
2287 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0024-0001command12Listen |
|
2288 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0024-0001command14SetRsocketServerFromCBTSocket |
|
2289 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0024-0001command15NewL |
|
2290 STORE CBluetoothSocket1 |
|
2291 STORE CBluetoothSessionSocket |
|
2292 STORE TBTDevAddrLocal |
|
2293 STORE_ACTIVE_SCHEDULER |
|
2294 END_TEST_BLOCK |
|
2295 |
|
2296 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0024-0002 |
|
2297 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2298 SHARED_ACTIVE_SCHEDULER |
|
2299 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2300 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2301 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0024-0002command1Accept |
|
2302 OUTSTANDING |
|
2303 STORE CBluetoothSocket1 |
|
2304 STORE CBluetoothSessionSocket |
|
2305 STORE_ACTIVE_SCHEDULER |
|
2306 END_TEST_BLOCK |
|
2307 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0024-0002 |
|
2308 |
|
2309 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0024-0003 |
|
2310 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2311 SHARED_ACTIVE_SCHEDULER |
|
2312 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2313 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2314 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0024-0003command1Recv |
|
2315 OUTSTANDING |
|
2316 STORE CBluetoothSocket1 |
|
2317 STORE CBluetoothSessionSocket |
|
2318 STORE_ACTIVE_SCHEDULER |
|
2319 END_TEST_BLOCK |
|
2320 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0024-0003 |
|
2321 |
|
2322 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0024-0004 |
|
2323 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2324 SHARED_ACTIVE_SCHEDULER |
|
2325 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2326 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2327 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0024-0004command1Shutdown |
|
2328 OUTSTANDING |
|
2329 COMMAND CBluetoothSessionSocket ~ |
|
2330 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0024-0004command4Shutdown |
|
2331 OUTSTANDING |
|
2332 COMMAND CBluetoothSocket1 ~ |
|
2333 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2334 END_TEST_BLOCK |
|
2335 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0024-0004 |
|
2336 |
|
2337 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0024 |
|
2338 |
|
2339 |
|
2340 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0025 |
|
2341 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0025 |
|
2342 //! @SYMAPI CBluetoothSocket |
|
2343 //! @SYMAuthor James Mechen |
|
2344 //! @SYMCreationDate 07/08/2006 |
|
2345 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
2346 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
2347 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
2348 //! HandleShutdownCompleteL |
|
2349 //! @SYMTestActions Wait for master to order start |
|
2350 //! 1. Create and start a session on the socket server |
|
2351 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
2352 //! 3. Create an TRfcommSockAddr object |
|
2353 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
2354 //! 5. Set the Family to Bluetooth (257) |
|
2355 //! 6. Set the port to the one matching the protocol to use |
|
2356 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
2357 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
2358 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
2359 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
2360 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
2361 //! Synchronization point |
|
2362 //! 12. Read data sent to socket using Recv()1 |
|
2363 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
2364 //! Synchronization point |
|
2365 //! 14. Do socket cleanup by calling Shutdown()1 |
|
2366 //! 15. HandleShutdownCompleteL gets called verify error code |
|
2367 //! 16. delete CBluetoothSocket object |
|
2368 //! Synchronization point |
|
2369 //! @SYMTestStatus Implemented |
|
2370 //! @SYMTestPriority Critical |
|
2371 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
2372 //! @SYMTestType CIT |
|
2373 |
|
2374 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2375 SHARED_ACTIVE_SCHEDULER |
|
2376 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2377 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2378 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2379 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
2380 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2381 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0025-0001command3NewL |
|
2382 COMMAND TRfcommSockAddr1 Construct |
|
2383 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0025-0001command6SetBTAddr |
|
2384 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0025-0001command7BTAddr |
|
2385 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0025-0001command8SetFamily |
|
2386 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0025-0001command9SetPort |
|
2387 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0025-0001command11Bind |
|
2388 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0025-0001command12Listen |
|
2389 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0025-0001command14SetRsocketServerFromCBTSocket |
|
2390 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0025-0001command15NewL |
|
2391 STORE CBluetoothSocket1 |
|
2392 STORE CBluetoothSessionSocket |
|
2393 STORE TBTDevAddrLocal |
|
2394 STORE_ACTIVE_SCHEDULER |
|
2395 END_TEST_BLOCK |
|
2396 |
|
2397 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0025-0002 |
|
2398 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2399 SHARED_ACTIVE_SCHEDULER |
|
2400 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2401 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2402 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0025-0002command1Accept |
|
2403 OUTSTANDING |
|
2404 STORE CBluetoothSocket1 |
|
2405 STORE CBluetoothSessionSocket |
|
2406 STORE_ACTIVE_SCHEDULER |
|
2407 END_TEST_BLOCK |
|
2408 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0025-0002 |
|
2409 |
|
2410 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0025-0003 |
|
2411 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2412 SHARED_ACTIVE_SCHEDULER |
|
2413 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2414 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2415 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0025-0003command1Recv |
|
2416 OUTSTANDING |
|
2417 STORE CBluetoothSocket1 |
|
2418 STORE CBluetoothSessionSocket |
|
2419 STORE_ACTIVE_SCHEDULER |
|
2420 END_TEST_BLOCK |
|
2421 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0025-0003 |
|
2422 |
|
2423 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0025-0004 |
|
2424 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2425 SHARED_ACTIVE_SCHEDULER |
|
2426 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2427 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2428 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0025-0004command1Shutdown |
|
2429 OUTSTANDING |
|
2430 COMMAND CBluetoothSessionSocket ~ |
|
2431 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0025-0004command4Shutdown |
|
2432 OUTSTANDING |
|
2433 COMMAND CBluetoothSocket1 ~ |
|
2434 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2435 END_TEST_BLOCK |
|
2436 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0025-0004 |
|
2437 |
|
2438 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0025 |
|
2439 |
|
2440 |
|
2441 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0026 |
|
2442 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0026 |
|
2443 //! @SYMAPI CBluetoothSocket |
|
2444 //! @SYMAuthor James Mechen |
|
2445 //! @SYMCreationDate 07/08/2006 |
|
2446 //! @SYMTestCaseDesc Try to receive data over a BT socket while already receiving |
|
2447 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
2448 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
2449 //! HandleShutdownCompleteL |
|
2450 //! @SYMTestActions Wait for master to order start |
|
2451 //! 1. Create and start a session on the socket server |
|
2452 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
2453 //! 3. Create an TRfcommSockAddr object |
|
2454 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
2455 //! 5. Set the Family to Bluetooth (257) |
|
2456 //! 6. Set the port to the one matching the protocol to use |
|
2457 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
2458 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
2459 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
2460 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
2461 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
2462 //! Synchronization point |
|
2463 //! 12. Read data sent to socket using Recv()1 |
|
2464 //! 13. Immediately read data sent to socket again, using Recv()1 |
|
2465 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, with error code KErrInUse |
|
2466 //! Synchronization point |
|
2467 //! 15. Do socket cleanup by calling Shutdown()1 |
|
2468 //! 16. HandleShutdownCompleteL gets called verify error code |
|
2469 //! 17. delete CBluetoothSocket object |
|
2470 //! Synchronization point |
|
2471 //! @SYMTestStatus Implemented |
|
2472 //! @SYMTestPriority Critical |
|
2473 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully but second receive returns KErrInUse (-14) |
|
2474 //! @SYMTestType CIT |
|
2475 |
|
2476 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2477 SHARED_ACTIVE_SCHEDULER |
|
2478 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2479 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2480 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2481 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
2482 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2483 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0026-0001command3NewL |
|
2484 COMMAND TRfcommSockAddr1 Construct |
|
2485 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0026-0001command6SetBTAddr |
|
2486 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0026-0001command7BTAddr |
|
2487 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0026-0001command8SetFamily |
|
2488 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0026-0001command9SetPort |
|
2489 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0026-0001command11Bind |
|
2490 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0026-0001command12Listen |
|
2491 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0026-0001command14SetRsocketServerFromCBTSocket |
|
2492 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0026-0001command15NewL |
|
2493 STORE CBluetoothSocket1 |
|
2494 STORE CBluetoothSessionSocket |
|
2495 STORE TBTDevAddrLocal |
|
2496 STORE_ACTIVE_SCHEDULER |
|
2497 END_TEST_BLOCK |
|
2498 |
|
2499 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0026-0002 |
|
2500 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2501 SHARED_ACTIVE_SCHEDULER |
|
2502 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2503 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2504 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0026-0002command1Accept |
|
2505 OUTSTANDING |
|
2506 STORE CBluetoothSocket1 |
|
2507 STORE CBluetoothSessionSocket |
|
2508 STORE_ACTIVE_SCHEDULER |
|
2509 END_TEST_BLOCK |
|
2510 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0026-0002 |
|
2511 |
|
2512 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0026-0003 |
|
2513 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2514 SHARED_ACTIVE_SCHEDULER |
|
2515 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2516 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2517 COMMAND !Error=-14 CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0026-0003command1Recv |
|
2518 OUTSTANDING |
|
2519 STORE CBluetoothSocket1 |
|
2520 STORE CBluetoothSessionSocket |
|
2521 STORE_ACTIVE_SCHEDULER |
|
2522 END_TEST_BLOCK |
|
2523 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0026-0003 |
|
2524 |
|
2525 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0026-0004 |
|
2526 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2527 SHARED_ACTIVE_SCHEDULER |
|
2528 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2529 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2530 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0026-0004command1Shutdown |
|
2531 OUTSTANDING |
|
2532 COMMAND CBluetoothSessionSocket ~ |
|
2533 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0026-0004command4Shutdown |
|
2534 OUTSTANDING |
|
2535 COMMAND CBluetoothSocket1 ~ |
|
2536 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2537 END_TEST_BLOCK |
|
2538 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0026-0004 |
|
2539 |
|
2540 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0026 |
|
2541 |
|
2542 |
|
2543 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0027 |
|
2544 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0027 |
|
2545 //! @SYMAPI CBluetoothSocket |
|
2546 //! @SYMAuthor James Mechen |
|
2547 //! @SYMCreationDate 07/08/2006 |
|
2548 //! @SYMTestCaseDesc Try to receive data over a BT socket while already receiving |
|
2549 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
2550 //! HandleAcceptCompleteL, Recv()2, HandleReceiveCompleteL, Shutdown()1, |
|
2551 //! HandleShutdownCompleteL |
|
2552 //! @SYMTestActions Wait for master to order start |
|
2553 //! 1. Create and start a session on the socket server |
|
2554 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
2555 //! 3. Create an TRfcommSockAddr object |
|
2556 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
2557 //! 5. Set the Family to Bluetooth (257) |
|
2558 //! 6. Set the port to the one matching the protocol to use |
|
2559 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
2560 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
2561 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
2562 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
2563 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
2564 //! Synchronization point |
|
2565 //! 12. Read data sent to socket using Recv()2 |
|
2566 //! 13. Immediately read data sent to socket again, using Recv()2 |
|
2567 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, with error code KErrInUse |
|
2568 //! Synchronization point |
|
2569 //! 15. Do socket cleanup by calling Shutdown()1 |
|
2570 //! 16. HandleShutdownCompleteL gets called verify error code |
|
2571 //! 17. delete CBluetoothSocket object |
|
2572 //! Synchronization point |
|
2573 //! @SYMTestStatus Implemented |
|
2574 //! @SYMTestPriority Critical |
|
2575 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully but second receive returns KErrInUse (-14) |
|
2576 //! @SYMTestType CIT |
|
2577 |
|
2578 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2579 SHARED_ACTIVE_SCHEDULER |
|
2580 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2581 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2582 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2583 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
2584 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2585 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0027-0001command3NewL |
|
2586 COMMAND TRfcommSockAddr1 Construct |
|
2587 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0027-0001command6SetBTAddr |
|
2588 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0027-0001command7BTAddr |
|
2589 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0027-0001command8SetFamily |
|
2590 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0027-0001command9SetPort |
|
2591 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0027-0001command11Bind |
|
2592 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0027-0001command12Listen |
|
2593 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0027-0001command14SetRsocketServerFromCBTSocket |
|
2594 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0027-0001command15NewL |
|
2595 STORE CBluetoothSocket1 |
|
2596 STORE CBluetoothSessionSocket |
|
2597 STORE TBTDevAddrLocal |
|
2598 STORE_ACTIVE_SCHEDULER |
|
2599 END_TEST_BLOCK |
|
2600 |
|
2601 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0027-0002 |
|
2602 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2603 SHARED_ACTIVE_SCHEDULER |
|
2604 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2605 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2606 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0027-0002command1Accept |
|
2607 OUTSTANDING |
|
2608 STORE CBluetoothSocket1 |
|
2609 STORE CBluetoothSessionSocket |
|
2610 STORE_ACTIVE_SCHEDULER |
|
2611 END_TEST_BLOCK |
|
2612 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0027-0002 |
|
2613 |
|
2614 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0027-0003 |
|
2615 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2616 SHARED_ACTIVE_SCHEDULER |
|
2617 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2618 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2619 COMMAND !Error=-14 CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0027-0003command1Recv |
|
2620 OUTSTANDING |
|
2621 STORE CBluetoothSocket1 |
|
2622 STORE CBluetoothSessionSocket |
|
2623 STORE_ACTIVE_SCHEDULER |
|
2624 END_TEST_BLOCK |
|
2625 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0027-0003 |
|
2626 |
|
2627 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0027-0004 |
|
2628 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2629 SHARED_ACTIVE_SCHEDULER |
|
2630 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2631 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2632 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0027-0004command1Shutdown |
|
2633 OUTSTANDING |
|
2634 COMMAND CBluetoothSessionSocket ~ |
|
2635 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0027-0004command4Shutdown |
|
2636 OUTSTANDING |
|
2637 COMMAND CBluetoothSocket1 ~ |
|
2638 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2639 END_TEST_BLOCK |
|
2640 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0027-0004 |
|
2641 |
|
2642 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0027 |
|
2643 |
|
2644 |
|
2645 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0028 |
|
2646 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0028 |
|
2647 //! @SYMAPI CBluetoothSocket |
|
2648 //! @SYMAuthor James Mechen |
|
2649 //! @SYMCreationDate 07/08/2006 |
|
2650 //! @SYMTestCaseDesc Try to receive data over a BT socket while already receiving |
|
2651 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
2652 //! HandleAcceptCompleteL, RecvOneOrMore(), HandleReceiveCompleteL, Shutdown()1, |
|
2653 //! HandleShutdownCompleteL |
|
2654 //! @SYMTestActions Wait for master to order start |
|
2655 //! 1. Create and start a session on the socket server |
|
2656 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
2657 //! 3. Create an TRfcommSockAddr object |
|
2658 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
2659 //! 5. Set the Family to Bluetooth (257) |
|
2660 //! 6. Set the port to the one matching the protocol to use |
|
2661 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
2662 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
2663 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
2664 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
2665 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
2666 //! Synchronization point |
|
2667 //! 12. Read data sent to socket using RecvOneOrMore() |
|
2668 //! 13. Immediately read data sent to socket again, using RecvOneOrMore() |
|
2669 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, with error code KErrInUse |
|
2670 //! Synchronization point |
|
2671 //! 15. Do socket cleanup by calling Shutdown()1 |
|
2672 //! 16. HandleShutdownCompleteL gets called verify error code |
|
2673 //! 17. delete CBluetoothSocket object |
|
2674 //! Synchronization point |
|
2675 //! @SYMTestStatus Implemented |
|
2676 //! @SYMTestPriority Critical |
|
2677 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully but second receive returns KErrInUse (-14) |
|
2678 //! @SYMTestType CIT |
|
2679 |
|
2680 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2681 SHARED_ACTIVE_SCHEDULER |
|
2682 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2683 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2684 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2685 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
2686 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2687 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0028-0001command3NewL |
|
2688 COMMAND TRfcommSockAddr1 Construct |
|
2689 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0028-0001command6SetBTAddr |
|
2690 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0028-0001command7BTAddr |
|
2691 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0028-0001command8SetFamily |
|
2692 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0028-0001command9SetPort |
|
2693 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0028-0001command11Bind |
|
2694 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0028-0001command12Listen |
|
2695 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0028-0001command14SetRsocketServerFromCBTSocket |
|
2696 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0028-0001command15NewL |
|
2697 STORE CBluetoothSocket1 |
|
2698 STORE CBluetoothSessionSocket |
|
2699 STORE TBTDevAddrLocal |
|
2700 STORE_ACTIVE_SCHEDULER |
|
2701 END_TEST_BLOCK |
|
2702 |
|
2703 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0028-0002 |
|
2704 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2705 SHARED_ACTIVE_SCHEDULER |
|
2706 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2707 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2708 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0028-0002command1Accept |
|
2709 OUTSTANDING |
|
2710 STORE CBluetoothSocket1 |
|
2711 STORE CBluetoothSessionSocket |
|
2712 STORE_ACTIVE_SCHEDULER |
|
2713 END_TEST_BLOCK |
|
2714 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0028-0002 |
|
2715 |
|
2716 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0028-0003 |
|
2717 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2718 SHARED_ACTIVE_SCHEDULER |
|
2719 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2720 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2721 COMMAND !Error=-14 CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0028-0003command1RecvOneOrMore |
|
2722 OUTSTANDING |
|
2723 STORE CBluetoothSocket1 |
|
2724 STORE CBluetoothSessionSocket |
|
2725 STORE_ACTIVE_SCHEDULER |
|
2726 END_TEST_BLOCK |
|
2727 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0028-0003 |
|
2728 |
|
2729 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0028-0004 |
|
2730 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2731 SHARED_ACTIVE_SCHEDULER |
|
2732 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2733 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2734 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0028-0004command1Shutdown |
|
2735 OUTSTANDING |
|
2736 COMMAND CBluetoothSessionSocket ~ |
|
2737 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0028-0004command4Shutdown |
|
2738 OUTSTANDING |
|
2739 COMMAND CBluetoothSocket1 ~ |
|
2740 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2741 END_TEST_BLOCK |
|
2742 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0028-0004 |
|
2743 |
|
2744 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0028 |
|
2745 |
|
2746 |
|
2747 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0029 |
|
2748 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0029 |
|
2749 //! @SYMAPI CBluetoothSocket |
|
2750 //! @SYMAuthor James Mechen |
|
2751 //! @SYMCreationDate 07/08/2006 |
|
2752 //! @SYMTestCaseDesc Cancel recovery of data over a BT socket without first attempting recovery |
|
2753 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
2754 //! HandleAcceptCompleteL, Recv()1, CancelRecv, HandleReceiveCompleteL, Shutdown()1, |
|
2755 //! HandleShutdownCompleteL |
|
2756 //! @SYMTestActions Wait for master to order start |
|
2757 //! 1. Create and start a session on the socket server |
|
2758 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
2759 //! 3. Create an TRfcommSockAddr object |
|
2760 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
2761 //! 5. Set the Family to Bluetooth (257) |
|
2762 //! 6. Set the port to the one matching the protocol to use |
|
2763 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
2764 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
2765 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
2766 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
2767 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
2768 //! Synchronization point |
|
2769 //! 12. Call CancelRecv before Recv is called |
|
2770 //! 13. Read data sent to socket using Recv()1 |
|
2771 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
2772 //! Synchronization point |
|
2773 //! 15. Do socket cleanup by calling Shutdown()1 |
|
2774 //! 16. HandleShutdownCompleteL gets called verify error code |
|
2775 //! 17. delete CBluetoothSocket object |
|
2776 //! Synchronization point |
|
2777 //! @SYMTestStatus Implemented |
|
2778 //! @SYMTestPriority Critical |
|
2779 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
2780 //! @SYMTestType CIT |
|
2781 |
|
2782 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2783 SHARED_ACTIVE_SCHEDULER |
|
2784 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2785 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2786 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2787 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
2788 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2789 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0029-0001command3NewL |
|
2790 COMMAND TRfcommSockAddr1 Construct |
|
2791 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0029-0001command6SetBTAddr |
|
2792 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0029-0001command7BTAddr |
|
2793 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0029-0001command8SetFamily |
|
2794 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0029-0001command9SetPort |
|
2795 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0029-0001command11Bind |
|
2796 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0029-0001command12Listen |
|
2797 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0029-0001command14SetRsocketServerFromCBTSocket |
|
2798 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0029-0001command15NewL |
|
2799 STORE CBluetoothSocket1 |
|
2800 STORE CBluetoothSessionSocket |
|
2801 STORE TBTDevAddrLocal |
|
2802 STORE_ACTIVE_SCHEDULER |
|
2803 END_TEST_BLOCK |
|
2804 |
|
2805 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0029-0002 |
|
2806 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2807 SHARED_ACTIVE_SCHEDULER |
|
2808 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2809 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2810 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0029-0002command1Accept |
|
2811 OUTSTANDING |
|
2812 STORE CBluetoothSocket1 |
|
2813 STORE CBluetoothSessionSocket |
|
2814 STORE_ACTIVE_SCHEDULER |
|
2815 END_TEST_BLOCK |
|
2816 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0029-0002 |
|
2817 |
|
2818 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0029-0003 |
|
2819 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2820 SHARED_ACTIVE_SCHEDULER |
|
2821 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2822 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2823 COMMAND CBluetoothSessionSocket CancelRecv |
|
2824 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0029-0003command2Recv |
|
2825 OUTSTANDING |
|
2826 STORE CBluetoothSocket1 |
|
2827 STORE CBluetoothSessionSocket |
|
2828 STORE_ACTIVE_SCHEDULER |
|
2829 END_TEST_BLOCK |
|
2830 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0029-0003 |
|
2831 |
|
2832 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0029-0004 |
|
2833 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2834 SHARED_ACTIVE_SCHEDULER |
|
2835 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2836 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2837 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0029-0004command1Shutdown |
|
2838 OUTSTANDING |
|
2839 COMMAND CBluetoothSessionSocket ~ |
|
2840 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0029-0004command4Shutdown |
|
2841 OUTSTANDING |
|
2842 COMMAND CBluetoothSocket1 ~ |
|
2843 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2844 END_TEST_BLOCK |
|
2845 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0029-0004 |
|
2846 |
|
2847 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0029 |
|
2848 |
|
2849 |
|
2850 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0030 |
|
2851 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0030 |
|
2852 //! @SYMAPI CBluetoothSocket |
|
2853 //! @SYMAuthor James Mechen |
|
2854 //! @SYMCreationDate 07/08/2006 |
|
2855 //! @SYMTestCaseDesc Try to receive data over a BT socket while already receiving |
|
2856 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
2857 //! HandleAcceptCompleteL, Read(), HandleReceiveCompleteL, Shutdown()1, |
|
2858 //! HandleShutdownCompleteL |
|
2859 //! @SYMTestActions Wait for master to order start |
|
2860 //! 1. Create and start a session on the socket server |
|
2861 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
2862 //! 3. Create an TRfcommSockAddr object |
|
2863 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
2864 //! 5. Set the Family to Bluetooth (257) |
|
2865 //! 6. Set the port to the one matching the protocol to use |
|
2866 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
2867 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
2868 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
2869 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
2870 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
2871 //! Synchronization point |
|
2872 //! 12. Read data sent to socket using Read() |
|
2873 //! 13. Immediately read data sent to socket again, using Read() |
|
2874 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, with error code KErrInUse |
|
2875 //! Synchronization point |
|
2876 //! 15. Do socket cleanup by calling Shutdown()1 |
|
2877 //! 16. HandleShutdownCompleteL gets called verify error code |
|
2878 //! 17. delete CBluetoothSocket object |
|
2879 //! Synchronization point |
|
2880 //! @SYMTestStatus Implemented |
|
2881 //! @SYMTestPriority Critical |
|
2882 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully but second receive returns KErrInUse (-14) |
|
2883 //! @SYMTestType CIT |
|
2884 |
|
2885 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2886 SHARED_ACTIVE_SCHEDULER |
|
2887 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2888 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2889 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2890 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
2891 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2892 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0030-0001command3NewL |
|
2893 COMMAND TRfcommSockAddr1 Construct |
|
2894 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0030-0001command6SetBTAddr |
|
2895 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0030-0001command7BTAddr |
|
2896 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0030-0001command8SetFamily |
|
2897 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0030-0001command9SetPort |
|
2898 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0030-0001command11Bind |
|
2899 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0030-0001command12Listen |
|
2900 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0030-0001command14SetRsocketServerFromCBTSocket |
|
2901 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0030-0001command15NewL |
|
2902 STORE CBluetoothSocket1 |
|
2903 STORE CBluetoothSessionSocket |
|
2904 STORE TBTDevAddrLocal |
|
2905 STORE_ACTIVE_SCHEDULER |
|
2906 END_TEST_BLOCK |
|
2907 |
|
2908 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0030-0002 |
|
2909 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2910 SHARED_ACTIVE_SCHEDULER |
|
2911 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2912 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2913 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0030-0002command1Accept |
|
2914 OUTSTANDING |
|
2915 STORE CBluetoothSocket1 |
|
2916 STORE CBluetoothSessionSocket |
|
2917 STORE_ACTIVE_SCHEDULER |
|
2918 END_TEST_BLOCK |
|
2919 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0030-0002 |
|
2920 |
|
2921 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0030-0003 |
|
2922 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2923 SHARED_ACTIVE_SCHEDULER |
|
2924 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2925 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2926 COMMAND !Error=-14 CBluetoothSessionSocket Read BT-USER-SOCK-PublicAPI-Passive-0030-0003command1Read |
|
2927 OUTSTANDING |
|
2928 STORE CBluetoothSocket1 |
|
2929 STORE CBluetoothSessionSocket |
|
2930 STORE_ACTIVE_SCHEDULER |
|
2931 END_TEST_BLOCK |
|
2932 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0030-0003 |
|
2933 |
|
2934 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0030-0004 |
|
2935 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2936 SHARED_ACTIVE_SCHEDULER |
|
2937 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2938 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2939 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0030-0004command1Shutdown |
|
2940 OUTSTANDING |
|
2941 COMMAND CBluetoothSessionSocket ~ |
|
2942 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0030-0004command4Shutdown |
|
2943 OUTSTANDING |
|
2944 COMMAND CBluetoothSocket1 ~ |
|
2945 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2946 END_TEST_BLOCK |
|
2947 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0030-0004 |
|
2948 |
|
2949 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0030 |
|
2950 |
|
2951 |
|
2952 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0031 |
|
2953 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0031 |
|
2954 //! @SYMAPI CBluetoothSocket |
|
2955 //! @SYMAuthor James Mechen |
|
2956 //! @SYMCreationDate 07/08/2006 |
|
2957 //! @SYMTestCaseDesc Cancel recovery of data over a BT socket without first attempting recovery |
|
2958 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
2959 //! HandleAcceptCompleteL, Recv()1, CancelRead, HandleReceiveCompleteL, Shutdown()1, |
|
2960 //! HandleShutdownCompleteL |
|
2961 //! @SYMTestActions Wait for master to order start |
|
2962 //! 1. Create and start a session on the socket server |
|
2963 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
2964 //! 3. Create an TRfcommSockAddr object |
|
2965 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
2966 //! 5. Set the Family to Bluetooth (257) |
|
2967 //! 6. Set the port to the one matching the protocol to use |
|
2968 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
2969 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
2970 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
2971 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
2972 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
2973 //! Synchronization point |
|
2974 //! 12. Call CancelRead before Read is called |
|
2975 //! 13. Read data sent to socket using Read() |
|
2976 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
2977 //! Synchronization point |
|
2978 //! 15. Do socket cleanup by calling Shutdown()1 |
|
2979 //! 16. HandleShutdownCompleteL gets called verify error code |
|
2980 //! 17. delete CBluetoothSocket object |
|
2981 //! Synchronization point |
|
2982 //! @SYMTestStatus Implemented |
|
2983 //! @SYMTestPriority Critical |
|
2984 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data read successfully |
|
2985 //! @SYMTestType CIT |
|
2986 |
|
2987 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
2988 SHARED_ACTIVE_SCHEDULER |
|
2989 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2990 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2991 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
2992 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
2993 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2994 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0031-0001command3NewL |
|
2995 COMMAND TRfcommSockAddr1 Construct |
|
2996 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0031-0001command6SetBTAddr |
|
2997 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0031-0001command7BTAddr |
|
2998 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0031-0001command8SetFamily |
|
2999 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0031-0001command9SetPort |
|
3000 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0031-0001command11Bind |
|
3001 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0031-0001command12Listen |
|
3002 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0031-0001command14SetRsocketServerFromCBTSocket |
|
3003 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0031-0001command15NewL |
|
3004 STORE CBluetoothSocket1 |
|
3005 STORE CBluetoothSessionSocket |
|
3006 STORE TBTDevAddrLocal |
|
3007 STORE_ACTIVE_SCHEDULER |
|
3008 END_TEST_BLOCK |
|
3009 |
|
3010 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0031-0002 |
|
3011 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3012 SHARED_ACTIVE_SCHEDULER |
|
3013 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3014 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3015 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0031-0002command1Accept |
|
3016 OUTSTANDING |
|
3017 STORE CBluetoothSocket1 |
|
3018 STORE CBluetoothSessionSocket |
|
3019 STORE_ACTIVE_SCHEDULER |
|
3020 END_TEST_BLOCK |
|
3021 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0031-0002 |
|
3022 |
|
3023 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0031-0003 |
|
3024 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3025 SHARED_ACTIVE_SCHEDULER |
|
3026 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3027 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3028 COMMAND CBluetoothSessionSocket CancelRead |
|
3029 COMMAND CBluetoothSessionSocket Read BT-USER-SOCK-PublicAPI-Passive-0031-0003command2Read |
|
3030 OUTSTANDING |
|
3031 STORE CBluetoothSocket1 |
|
3032 STORE CBluetoothSessionSocket |
|
3033 STORE_ACTIVE_SCHEDULER |
|
3034 END_TEST_BLOCK |
|
3035 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0031-0003 |
|
3036 |
|
3037 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0031-0004 |
|
3038 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3039 SHARED_ACTIVE_SCHEDULER |
|
3040 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3041 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3042 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0031-0004command1Shutdown |
|
3043 OUTSTANDING |
|
3044 COMMAND CBluetoothSessionSocket ~ |
|
3045 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0031-0004command4Shutdown |
|
3046 OUTSTANDING |
|
3047 COMMAND CBluetoothSocket1 ~ |
|
3048 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3049 END_TEST_BLOCK |
|
3050 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0031-0004 |
|
3051 |
|
3052 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0031 |
|
3053 |
|
3054 |
|
3055 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0032 |
|
3056 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0032 |
|
3057 //! @SYMAPI CBluetoothSocket |
|
3058 //! @SYMAuthor James Mechen |
|
3059 //! @SYMCreationDate 07/08/2006 |
|
3060 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
3061 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
3062 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
3063 //! HandleShutdownCompleteL |
|
3064 //! @SYMTestActions Wait for master to order start |
|
3065 //! 1. Create and start a session on the socket server |
|
3066 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
3067 //! 3. Create an TRfcommSockAddr object |
|
3068 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
3069 //! 5. Set the Family to Bluetooth (257) |
|
3070 //! 6. Set the port to the one matching the protocol to use |
|
3071 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
3072 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
3073 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
3074 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
3075 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
3076 //! Synchronization point |
|
3077 //! 12. Read data sent to socket using Recv()1 |
|
3078 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
3079 //! Synchronization point |
|
3080 //! 14. Do socket cleanup by calling Shutdown()1 |
|
3081 //! 15. HandleShutdownCompleteL gets called verify error code |
|
3082 //! 16. delete CBluetoothSocket object |
|
3083 //! Synchronization point |
|
3084 //! @SYMTestStatus Implemented |
|
3085 //! @SYMTestPriority Critical |
|
3086 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
3087 //! @SYMTestType CIT |
|
3088 |
|
3089 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3090 SHARED_ACTIVE_SCHEDULER |
|
3091 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3092 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3093 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3094 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
3095 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3096 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0032-0001command3NewL |
|
3097 COMMAND TRfcommSockAddr1 Construct |
|
3098 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0032-0001command6SetBTAddr |
|
3099 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0032-0001command7BTAddr |
|
3100 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0032-0001command8SetFamily |
|
3101 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0032-0001command9SetPort |
|
3102 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0032-0001command11Bind |
|
3103 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0032-0001command12Listen |
|
3104 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0032-0001command14SetRsocketServerFromCBTSocket |
|
3105 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0032-0001command15NewL |
|
3106 STORE CBluetoothSocket1 |
|
3107 STORE CBluetoothSessionSocket |
|
3108 STORE TBTDevAddrLocal |
|
3109 STORE_ACTIVE_SCHEDULER |
|
3110 END_TEST_BLOCK |
|
3111 |
|
3112 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0032-0002 |
|
3113 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3114 SHARED_ACTIVE_SCHEDULER |
|
3115 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3116 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3117 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0032-0002command1Accept |
|
3118 OUTSTANDING |
|
3119 STORE CBluetoothSocket1 |
|
3120 STORE CBluetoothSessionSocket |
|
3121 STORE_ACTIVE_SCHEDULER |
|
3122 END_TEST_BLOCK |
|
3123 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0032-0002 |
|
3124 |
|
3125 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0032-0003 |
|
3126 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3127 SHARED_ACTIVE_SCHEDULER |
|
3128 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3129 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3130 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0032-0003command1Recv |
|
3131 OUTSTANDING |
|
3132 STORE CBluetoothSocket1 |
|
3133 STORE CBluetoothSessionSocket |
|
3134 STORE_ACTIVE_SCHEDULER |
|
3135 END_TEST_BLOCK |
|
3136 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0032-0003 |
|
3137 |
|
3138 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0032-0004 |
|
3139 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3140 SHARED_ACTIVE_SCHEDULER |
|
3141 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3142 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3143 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0032-0004command1Shutdown |
|
3144 OUTSTANDING |
|
3145 COMMAND CBluetoothSessionSocket ~ |
|
3146 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0032-0004command4Shutdown |
|
3147 OUTSTANDING |
|
3148 COMMAND CBluetoothSocket1 ~ |
|
3149 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3150 END_TEST_BLOCK |
|
3151 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0032-0004 |
|
3152 |
|
3153 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0032 |
|
3154 |
|
3155 |
|
3156 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0033 |
|
3157 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0033 |
|
3158 //! @SYMAPI CBluetoothSocket |
|
3159 //! @SYMAuthor James Mechen |
|
3160 //! @SYMCreationDate 07/08/2006 |
|
3161 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
3162 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
3163 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
3164 //! HandleShutdownCompleteL |
|
3165 //! @SYMTestActions Wait for master to order start |
|
3166 //! 1. Create and start a session on the socket server |
|
3167 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
3168 //! 3. Create an TRfcommSockAddr object |
|
3169 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
3170 //! 5. Set the Family to Bluetooth (257) |
|
3171 //! 6. Set the port to the one matching the protocol to use |
|
3172 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
3173 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
3174 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
3175 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
3176 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
3177 //! Synchronization point |
|
3178 //! 12. Read data sent to socket using Recv()1 |
|
3179 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
3180 //! Synchronization point |
|
3181 //! 14. Do socket cleanup by calling Shutdown()1 |
|
3182 //! 15. HandleShutdownCompleteL gets called verify error code |
|
3183 //! 16. delete CBluetoothSocket object |
|
3184 //! Synchronization point |
|
3185 //! @SYMTestStatus Implemented |
|
3186 //! @SYMTestPriority Critical |
|
3187 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
3188 //! @SYMTestType CIT |
|
3189 |
|
3190 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3191 SHARED_ACTIVE_SCHEDULER |
|
3192 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3193 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3194 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3195 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
3196 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3197 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0033-0001command3NewL |
|
3198 COMMAND TRfcommSockAddr1 Construct |
|
3199 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0033-0001command6SetBTAddr |
|
3200 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0033-0001command7BTAddr |
|
3201 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0033-0001command8SetFamily |
|
3202 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0033-0001command9SetPort |
|
3203 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0033-0001command11Bind |
|
3204 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0033-0001command12Listen |
|
3205 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0033-0001command14SetRsocketServerFromCBTSocket |
|
3206 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0033-0001command15NewL |
|
3207 STORE CBluetoothSocket1 |
|
3208 STORE CBluetoothSessionSocket |
|
3209 STORE TBTDevAddrLocal |
|
3210 STORE_ACTIVE_SCHEDULER |
|
3211 END_TEST_BLOCK |
|
3212 |
|
3213 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0033-0002 |
|
3214 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3215 SHARED_ACTIVE_SCHEDULER |
|
3216 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3217 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3218 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0033-0002command1Accept |
|
3219 OUTSTANDING |
|
3220 STORE CBluetoothSocket1 |
|
3221 STORE CBluetoothSessionSocket |
|
3222 STORE_ACTIVE_SCHEDULER |
|
3223 END_TEST_BLOCK |
|
3224 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0033-0002 |
|
3225 |
|
3226 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0033-0003 |
|
3227 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3228 SHARED_ACTIVE_SCHEDULER |
|
3229 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3230 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3231 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0033-0003command1Recv |
|
3232 OUTSTANDING |
|
3233 STORE CBluetoothSocket1 |
|
3234 STORE CBluetoothSessionSocket |
|
3235 STORE_ACTIVE_SCHEDULER |
|
3236 END_TEST_BLOCK |
|
3237 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0033-0003 |
|
3238 |
|
3239 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0033-0004 |
|
3240 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3241 SHARED_ACTIVE_SCHEDULER |
|
3242 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3243 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3244 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0033-0004command1Shutdown |
|
3245 OUTSTANDING |
|
3246 COMMAND CBluetoothSessionSocket ~ |
|
3247 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0033-0004command4Shutdown |
|
3248 OUTSTANDING |
|
3249 COMMAND CBluetoothSocket1 ~ |
|
3250 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3251 END_TEST_BLOCK |
|
3252 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0033-0004 |
|
3253 |
|
3254 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0033 |
|
3255 |
|
3256 |
|
3257 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0034 |
|
3258 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0034 |
|
3259 //! @SYMAPI CBluetoothSocket |
|
3260 //! @SYMAuthor James Mechen |
|
3261 //! @SYMCreationDate 07/08/2006 |
|
3262 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
3263 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
3264 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
3265 //! HandleShutdownCompleteL |
|
3266 //! @SYMTestActions Wait for master to order start |
|
3267 //! 1. Create and start a session on the socket server |
|
3268 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
3269 //! 3. Create an TRfcommSockAddr object |
|
3270 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
3271 //! 5. Set the Family to Bluetooth (257) |
|
3272 //! 6. Set the port to the one matching the protocol to use |
|
3273 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
3274 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
3275 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
3276 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
3277 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
3278 //! Synchronization point |
|
3279 //! 12. Read data sent to socket using Recv()1 |
|
3280 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
3281 //! Synchronization point |
|
3282 //! 14. Do socket cleanup by calling Shutdown()1 |
|
3283 //! 15. HandleShutdownCompleteL gets called verify error code |
|
3284 //! 16. delete CBluetoothSocket object |
|
3285 //! Synchronization point |
|
3286 //! @SYMTestStatus Implemented |
|
3287 //! @SYMTestPriority Critical |
|
3288 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
3289 //! @SYMTestType CIT |
|
3290 |
|
3291 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3292 SHARED_ACTIVE_SCHEDULER |
|
3293 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3294 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3295 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3296 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
3297 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3298 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0034-0001command3NewL |
|
3299 COMMAND TRfcommSockAddr1 Construct |
|
3300 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0034-0001command6SetBTAddr |
|
3301 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0034-0001command7BTAddr |
|
3302 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0034-0001command8SetFamily |
|
3303 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0034-0001command9SetPort |
|
3304 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0034-0001command11Bind |
|
3305 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0034-0001command12Listen |
|
3306 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0034-0001command14SetRsocketServerFromCBTSocket |
|
3307 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0034-0001command15NewL |
|
3308 STORE CBluetoothSocket1 |
|
3309 STORE CBluetoothSessionSocket |
|
3310 STORE TBTDevAddrLocal |
|
3311 STORE_ACTIVE_SCHEDULER |
|
3312 END_TEST_BLOCK |
|
3313 |
|
3314 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0034-0002 |
|
3315 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3316 SHARED_ACTIVE_SCHEDULER |
|
3317 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3318 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3319 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0034-0002command1Accept |
|
3320 OUTSTANDING |
|
3321 STORE CBluetoothSocket1 |
|
3322 STORE CBluetoothSessionSocket |
|
3323 STORE_ACTIVE_SCHEDULER |
|
3324 END_TEST_BLOCK |
|
3325 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0034-0002 |
|
3326 |
|
3327 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0034-0003 |
|
3328 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3329 SHARED_ACTIVE_SCHEDULER |
|
3330 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3331 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3332 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0034-0003command1Recv |
|
3333 OUTSTANDING |
|
3334 STORE CBluetoothSocket1 |
|
3335 STORE CBluetoothSessionSocket |
|
3336 STORE_ACTIVE_SCHEDULER |
|
3337 END_TEST_BLOCK |
|
3338 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0034-0003 |
|
3339 |
|
3340 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0034-0004 |
|
3341 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3342 SHARED_ACTIVE_SCHEDULER |
|
3343 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3344 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3345 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0034-0004command1Shutdown |
|
3346 OUTSTANDING |
|
3347 COMMAND CBluetoothSessionSocket ~ |
|
3348 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0034-0004command4Shutdown |
|
3349 OUTSTANDING |
|
3350 COMMAND CBluetoothSocket1 ~ |
|
3351 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3352 END_TEST_BLOCK |
|
3353 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0034-0004 |
|
3354 |
|
3355 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0034 |
|
3356 |
|
3357 |
|
3358 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0035 |
|
3359 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0035 |
|
3360 //! @SYMAPI CBluetoothSocket |
|
3361 //! @SYMAuthor James Mechen |
|
3362 //! @SYMCreationDate 07/08/2006 |
|
3363 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
3364 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
3365 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
3366 //! HandleShutdownCompleteL |
|
3367 //! @SYMTestActions Wait for master to order start |
|
3368 //! 1. Create and start a session on the socket server |
|
3369 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
3370 //! 3. Create an TRfcommSockAddr object |
|
3371 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
3372 //! 5. Set the Family to Bluetooth (257) |
|
3373 //! 6. Set the port to the one matching the protocol to use |
|
3374 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
3375 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
3376 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
3377 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
3378 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
3379 //! Synchronization point |
|
3380 //! 12. Read data sent to socket using Recv()1 |
|
3381 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
3382 //! Synchronization point |
|
3383 //! 14. Do socket cleanup by calling Shutdown()1 |
|
3384 //! 15. HandleShutdownCompleteL gets called verify error code |
|
3385 //! 16. delete CBluetoothSocket object |
|
3386 //! Synchronization point |
|
3387 //! @SYMTestStatus Implemented |
|
3388 //! @SYMTestPriority Critical |
|
3389 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
3390 //! @SYMTestType CIT |
|
3391 |
|
3392 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3393 SHARED_ACTIVE_SCHEDULER |
|
3394 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3395 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3396 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3397 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
3398 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3399 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0035-0001command3NewL |
|
3400 COMMAND TRfcommSockAddr1 Construct |
|
3401 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0035-0001command6SetBTAddr |
|
3402 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0035-0001command7BTAddr |
|
3403 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0035-0001command8SetFamily |
|
3404 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0035-0001command9SetPort |
|
3405 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0035-0001command11Bind |
|
3406 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0035-0001command12Listen |
|
3407 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0035-0001command14SetRsocketServerFromCBTSocket |
|
3408 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0035-0001command15NewL |
|
3409 STORE CBluetoothSocket1 |
|
3410 STORE CBluetoothSessionSocket |
|
3411 STORE TBTDevAddrLocal |
|
3412 STORE_ACTIVE_SCHEDULER |
|
3413 END_TEST_BLOCK |
|
3414 |
|
3415 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0035-0002 |
|
3416 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3417 SHARED_ACTIVE_SCHEDULER |
|
3418 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3419 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3420 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0035-0002command1Accept |
|
3421 OUTSTANDING |
|
3422 STORE CBluetoothSocket1 |
|
3423 STORE CBluetoothSessionSocket |
|
3424 STORE_ACTIVE_SCHEDULER |
|
3425 END_TEST_BLOCK |
|
3426 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0035-0002 |
|
3427 |
|
3428 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0035-0003 |
|
3429 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3430 SHARED_ACTIVE_SCHEDULER |
|
3431 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3432 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3433 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0035-0003command1Recv |
|
3434 OUTSTANDING |
|
3435 STORE CBluetoothSocket1 |
|
3436 STORE CBluetoothSessionSocket |
|
3437 STORE_ACTIVE_SCHEDULER |
|
3438 END_TEST_BLOCK |
|
3439 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0035-0003 |
|
3440 |
|
3441 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0035-0004 |
|
3442 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3443 SHARED_ACTIVE_SCHEDULER |
|
3444 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3445 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3446 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0035-0004command1Shutdown |
|
3447 OUTSTANDING |
|
3448 COMMAND CBluetoothSessionSocket ~ |
|
3449 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0035-0004command4Shutdown |
|
3450 OUTSTANDING |
|
3451 COMMAND CBluetoothSocket1 ~ |
|
3452 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3453 END_TEST_BLOCK |
|
3454 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0035-0004 |
|
3455 |
|
3456 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0035 |
|
3457 |
|
3458 |
|
3459 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0036 |
|
3460 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0036 |
|
3461 //! @SYMAPI CBluetoothSocket |
|
3462 //! @SYMAuthor James Mechen |
|
3463 //! @SYMCreationDate 07/08/2006 |
|
3464 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
3465 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
3466 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
3467 //! HandleShutdownCompleteL |
|
3468 //! @SYMTestActions Wait for master to order start |
|
3469 //! 1. Create and start a session on the socket server |
|
3470 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
3471 //! 3. Create an TRfcommSockAddr object |
|
3472 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
3473 //! 5. Set the Family to Bluetooth (257) |
|
3474 //! 6. Set the port to the one matching the protocol to use |
|
3475 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
3476 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
3477 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
3478 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
3479 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
3480 //! Synchronization point |
|
3481 //! 12. Read data sent to socket using Recv()1 |
|
3482 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
3483 //! Synchronization point |
|
3484 //! 14. Do socket cleanup by calling Shutdown()1 |
|
3485 //! 15. HandleShutdownCompleteL gets called verify error code |
|
3486 //! 16. delete CBluetoothSocket object |
|
3487 //! Synchronization point |
|
3488 //! @SYMTestStatus Implemented |
|
3489 //! @SYMTestPriority Critical |
|
3490 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
3491 //! @SYMTestType CIT |
|
3492 |
|
3493 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3494 SHARED_ACTIVE_SCHEDULER |
|
3495 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3496 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3497 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3498 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
3499 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3500 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0036-0001command3NewL |
|
3501 COMMAND TRfcommSockAddr1 Construct |
|
3502 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0036-0001command6SetBTAddr |
|
3503 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0036-0001command7BTAddr |
|
3504 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0036-0001command8SetFamily |
|
3505 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0036-0001command9SetPort |
|
3506 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0036-0001command11Bind |
|
3507 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0036-0001command12Listen |
|
3508 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0036-0001command14SetRsocketServerFromCBTSocket |
|
3509 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0036-0001command15NewL |
|
3510 STORE CBluetoothSocket1 |
|
3511 STORE CBluetoothSessionSocket |
|
3512 STORE TBTDevAddrLocal |
|
3513 STORE_ACTIVE_SCHEDULER |
|
3514 END_TEST_BLOCK |
|
3515 |
|
3516 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0036-0002 |
|
3517 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3518 SHARED_ACTIVE_SCHEDULER |
|
3519 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3520 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3521 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0036-0002command1Accept |
|
3522 OUTSTANDING |
|
3523 STORE CBluetoothSocket1 |
|
3524 STORE CBluetoothSessionSocket |
|
3525 STORE_ACTIVE_SCHEDULER |
|
3526 END_TEST_BLOCK |
|
3527 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0036-0002 |
|
3528 |
|
3529 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0036-0003 |
|
3530 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3531 SHARED_ACTIVE_SCHEDULER |
|
3532 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3533 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3534 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0036-0003command1Recv |
|
3535 OUTSTANDING |
|
3536 STORE CBluetoothSocket1 |
|
3537 STORE CBluetoothSessionSocket |
|
3538 STORE_ACTIVE_SCHEDULER |
|
3539 END_TEST_BLOCK |
|
3540 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0036-0003 |
|
3541 |
|
3542 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0036-0004 |
|
3543 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3544 SHARED_ACTIVE_SCHEDULER |
|
3545 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3546 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3547 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0036-0004command1Shutdown |
|
3548 OUTSTANDING |
|
3549 COMMAND CBluetoothSessionSocket ~ |
|
3550 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0036-0004command4Shutdown |
|
3551 OUTSTANDING |
|
3552 COMMAND CBluetoothSocket1 ~ |
|
3553 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3554 END_TEST_BLOCK |
|
3555 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0036-0004 |
|
3556 |
|
3557 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0036 |
|
3558 |
|
3559 |
|
3560 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0037 |
|
3561 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0037 |
|
3562 //! @SYMAPI CBluetoothSocket |
|
3563 //! @SYMAuthor James Mechen |
|
3564 //! @SYMCreationDate 07/08/2006 |
|
3565 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
3566 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
3567 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
3568 //! HandleShutdownCompleteL |
|
3569 //! @SYMTestActions Wait for master to order start |
|
3570 //! 1. Create and start a session on the socket server |
|
3571 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
3572 //! 3. Create an TRfcommSockAddr object |
|
3573 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
3574 //! 5. Set the Family to Bluetooth (257) |
|
3575 //! 6. Set the port to the one matching the protocol to use |
|
3576 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
3577 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
3578 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
3579 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
3580 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
3581 //! Synchronization point |
|
3582 //! 12. Read data sent to socket using Recv()1 |
|
3583 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
3584 //! Synchronization point |
|
3585 //! 14. Do socket cleanup by calling Shutdown()1 |
|
3586 //! 15. HandleShutdownCompleteL gets called verify error code |
|
3587 //! 16. delete CBluetoothSocket object |
|
3588 //! Synchronization point |
|
3589 //! @SYMTestStatus Implemented |
|
3590 //! @SYMTestPriority Critical |
|
3591 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
3592 //! @SYMTestType CIT |
|
3593 |
|
3594 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3595 SHARED_ACTIVE_SCHEDULER |
|
3596 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3597 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3598 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3599 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
3600 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3601 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0037-0001command3NewL |
|
3602 COMMAND TRfcommSockAddr1 Construct |
|
3603 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0037-0001command6SetBTAddr |
|
3604 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0037-0001command7BTAddr |
|
3605 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0037-0001command8SetFamily |
|
3606 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0037-0001command9SetPort |
|
3607 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0037-0001command11Bind |
|
3608 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0037-0001command12Listen |
|
3609 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0037-0001command14SetRsocketServerFromCBTSocket |
|
3610 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0037-0001command15NewL |
|
3611 STORE CBluetoothSocket1 |
|
3612 STORE CBluetoothSessionSocket |
|
3613 STORE TBTDevAddrLocal |
|
3614 STORE_ACTIVE_SCHEDULER |
|
3615 END_TEST_BLOCK |
|
3616 |
|
3617 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0037-0002 |
|
3618 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3619 SHARED_ACTIVE_SCHEDULER |
|
3620 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3621 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3622 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0037-0002command1Accept |
|
3623 OUTSTANDING |
|
3624 STORE CBluetoothSocket1 |
|
3625 STORE CBluetoothSessionSocket |
|
3626 STORE_ACTIVE_SCHEDULER |
|
3627 END_TEST_BLOCK |
|
3628 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0037-0002 |
|
3629 |
|
3630 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0037-0003 |
|
3631 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3632 SHARED_ACTIVE_SCHEDULER |
|
3633 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3634 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3635 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0037-0003command1Recv |
|
3636 OUTSTANDING |
|
3637 STORE CBluetoothSocket1 |
|
3638 STORE CBluetoothSessionSocket |
|
3639 STORE_ACTIVE_SCHEDULER |
|
3640 END_TEST_BLOCK |
|
3641 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0037-0003 |
|
3642 |
|
3643 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0037-0004 |
|
3644 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3645 SHARED_ACTIVE_SCHEDULER |
|
3646 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3647 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3648 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0037-0004command1Shutdown |
|
3649 OUTSTANDING |
|
3650 COMMAND CBluetoothSessionSocket ~ |
|
3651 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0037-0004command4Shutdown |
|
3652 OUTSTANDING |
|
3653 COMMAND CBluetoothSocket1 ~ |
|
3654 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3655 END_TEST_BLOCK |
|
3656 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0037-0004 |
|
3657 |
|
3658 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0037 |
|
3659 |
|
3660 |
|
3661 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0040 |
|
3662 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0040 |
|
3663 //! @SYMAPI CBluetoothSocket |
|
3664 //! @SYMAuthor James Mechen |
|
3665 //! @SYMCreationDate 07/08/2006 |
|
3666 //! @SYMTestCaseDesc Try to call CancelAccept without calling accept first |
|
3667 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, CancelAccept(), Accept()1, |
|
3668 //! HandleAcceptCompleteL, Recv(), HandleReceiveCompleteL, Shutdown()1, |
|
3669 //! HandleShutdownCompleteL |
|
3670 //! @SYMTestActions Wait for master to order start |
|
3671 //! 1. Create and start a session on the socket server |
|
3672 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
3673 //! 3. Create an TRfcommSockAddr object |
|
3674 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
3675 //! 5. Set the Family to Bluetooth (257) |
|
3676 //! 6. Set the port to the one matching the protocol to use |
|
3677 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
3678 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
3679 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
3680 //! 10. Try to call CancelAccept without calling accept first |
|
3681 //! 11. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
3682 //! 12. HandleAcceptCompleteL gets called when accept is completed, with no error code |
|
3683 //! Synchronization point |
|
3684 //! 13. Read data sent to socket using Recv() |
|
3685 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, with no error code |
|
3686 //! Synchronization point |
|
3687 //! 15. Do socket cleanup by calling Shutdown()1 |
|
3688 //! 16. HandleShutdownCompleteL gets called verify error code |
|
3689 //! 17. delete CBluetoothSocket object |
|
3690 //! Synchronization point |
|
3691 //! @SYMTestStatus Implemented |
|
3692 //! @SYMTestPriority Critical |
|
3693 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
3694 //! @SYMTestType CIT |
|
3695 |
|
3696 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3697 SHARED_ACTIVE_SCHEDULER |
|
3698 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3699 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3700 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3701 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
3702 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3703 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0040-0001command3NewL |
|
3704 COMMAND TRfcommSockAddr1 Construct |
|
3705 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0040-0001command6SetBTAddr |
|
3706 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0040-0001command7BTAddr |
|
3707 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0040-0001command8SetFamily |
|
3708 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0040-0001command9SetPort |
|
3709 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0040-0001command11Bind |
|
3710 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0040-0001command12Listen |
|
3711 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0040-0001command14SetRsocketServerFromCBTSocket |
|
3712 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0040-0001command15NewL |
|
3713 STORE CBluetoothSocket1 |
|
3714 STORE CBluetoothSessionSocket |
|
3715 STORE TBTDevAddrLocal |
|
3716 STORE_ACTIVE_SCHEDULER |
|
3717 END_TEST_BLOCK |
|
3718 |
|
3719 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0040-0002 |
|
3720 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3721 SHARED_ACTIVE_SCHEDULER |
|
3722 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3723 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3724 COMMAND CBluetoothSocket1 CancelAccept |
|
3725 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0040-0002command2Accept |
|
3726 OUTSTANDING |
|
3727 STORE CBluetoothSocket1 |
|
3728 STORE CBluetoothSessionSocket |
|
3729 STORE_ACTIVE_SCHEDULER |
|
3730 END_TEST_BLOCK |
|
3731 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0040-0002 |
|
3732 |
|
3733 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0040-0003 |
|
3734 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3735 SHARED_ACTIVE_SCHEDULER |
|
3736 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3737 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3738 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0040-0003command1Recv |
|
3739 OUTSTANDING |
|
3740 STORE CBluetoothSocket1 |
|
3741 STORE CBluetoothSessionSocket |
|
3742 STORE_ACTIVE_SCHEDULER |
|
3743 END_TEST_BLOCK |
|
3744 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0040-0003 |
|
3745 |
|
3746 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0040-0004 |
|
3747 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3748 SHARED_ACTIVE_SCHEDULER |
|
3749 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3750 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3751 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0040-0004command1Shutdown |
|
3752 OUTSTANDING |
|
3753 COMMAND CBluetoothSessionSocket ~ |
|
3754 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0040-0004command4Shutdown |
|
3755 OUTSTANDING |
|
3756 COMMAND CBluetoothSocket1 ~ |
|
3757 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3758 END_TEST_BLOCK |
|
3759 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0040-0004 |
|
3760 |
|
3761 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0040 |
|
3762 |
|
3763 |
|
3764 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0041 |
|
3765 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0041 |
|
3766 //! @SYMAPI CBluetoothSocket |
|
3767 //! @SYMAuthor James Mechen |
|
3768 //! @SYMCreationDate 07/08/2006 |
|
3769 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify IOCTL options |
|
3770 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
3771 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
3772 //! @SYMTestActions Wait for master to order start |
|
3773 //! 1. Create and start a session on the socket server |
|
3774 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
3775 //! 3. Create an TRfcommSockAddr object |
|
3776 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
3777 //! 5. Set the Family to Bluetooth (257) |
|
3778 //! 6. Set the port to the one matching the protocol to use |
|
3779 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
3780 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
3781 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
3782 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
3783 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
3784 //! Synchronization point |
|
3785 //! 12. Read data sent to socket using Recv()1 |
|
3786 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
3787 //! Synchronization point |
|
3788 //! 14. Do socket cleanup by calling Shutdown()1 |
|
3789 //! 15. HandleShutdownCompleteL gets called verify error code |
|
3790 //! 16. delete CBluetoothSocket object |
|
3791 //! Synchronization point |
|
3792 //! @SYMTestStatus Implemented |
|
3793 //! @SYMTestPriority Critical |
|
3794 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully for client IOCTL test |
|
3795 //! @SYMTestType CIT |
|
3796 |
|
3797 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3798 SHARED_ACTIVE_SCHEDULER |
|
3799 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3800 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3801 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3802 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
3803 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3804 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0041-0001command2NewL |
|
3805 COMMAND TRfcommSockAddr1 Construct |
|
3806 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0041-0001command5SetBTAddr |
|
3807 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0041-0001command6BTAddr |
|
3808 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0041-0001command7SetFamily |
|
3809 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0041-0001command8SetPort |
|
3810 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0041-0001command10SetRsocketServerFromCBTSocket |
|
3811 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0041-0001command11NewL |
|
3812 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0041-0001command13Bind |
|
3813 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0041-0001command14Listen |
|
3814 STORE CBluetoothSocket1 |
|
3815 STORE CBluetoothSessionSocket |
|
3816 STORE TBTDevAddrLocal |
|
3817 STORE_ACTIVE_SCHEDULER |
|
3818 END_TEST_BLOCK |
|
3819 |
|
3820 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0041-0002 |
|
3821 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3822 SHARED_ACTIVE_SCHEDULER |
|
3823 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3824 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3825 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0041-0002command1Accept |
|
3826 OUTSTANDING |
|
3827 STORE CBluetoothSocket1 |
|
3828 STORE CBluetoothSessionSocket |
|
3829 STORE_ACTIVE_SCHEDULER |
|
3830 END_TEST_BLOCK |
|
3831 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0041-0002 |
|
3832 |
|
3833 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0041-0003 |
|
3834 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3835 SHARED_ACTIVE_SCHEDULER |
|
3836 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3837 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3838 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0041-0003command1Recv |
|
3839 OUTSTANDING |
|
3840 STORE CBluetoothSocket1 |
|
3841 STORE CBluetoothSessionSocket |
|
3842 STORE_ACTIVE_SCHEDULER |
|
3843 END_TEST_BLOCK |
|
3844 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0041-0003 |
|
3845 |
|
3846 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0041-0004 |
|
3847 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3848 SHARED_ACTIVE_SCHEDULER |
|
3849 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3850 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3851 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0041-0004command1Shutdown |
|
3852 OUTSTANDING |
|
3853 COMMAND CBluetoothSessionSocket ~ |
|
3854 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0041-0004command4Shutdown |
|
3855 OUTSTANDING |
|
3856 COMMAND CBluetoothSocket1 ~ |
|
3857 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3858 END_TEST_BLOCK |
|
3859 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0041-0004 |
|
3860 |
|
3861 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0041 |
|
3862 |
|
3863 |
|
3864 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0042 |
|
3865 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0042 |
|
3866 //! @SYMAPI CBluetoothSocket |
|
3867 //! @SYMAuthor James Mechen |
|
3868 //! @SYMCreationDate 07/08/2006 |
|
3869 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify IOCTL options |
|
3870 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
3871 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
3872 //! @SYMTestActions Wait for master to order start |
|
3873 //! 1. Create and start a session on the socket server |
|
3874 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
3875 //! 3. Create an TRfcommSockAddr object |
|
3876 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
3877 //! 5. Set the Family to Bluetooth (257) |
|
3878 //! 6. Set the port to the one matching the protocol to use |
|
3879 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
3880 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
3881 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
3882 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
3883 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
3884 //! Synchronization point |
|
3885 //! 12. Read data sent to socket using Recv()1 |
|
3886 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
3887 //! Synchronization point |
|
3888 //! 14. Do socket cleanup by calling Shutdown()1 |
|
3889 //! 15. HandleShutdownCompleteL gets called verify error code |
|
3890 //! 16. delete CBluetoothSocket object |
|
3891 //! Synchronization point |
|
3892 //! @SYMTestStatus Implemented |
|
3893 //! @SYMTestPriority Critical |
|
3894 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully for client IOCTL test |
|
3895 //! @SYMTestType CIT |
|
3896 |
|
3897 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3898 SHARED_ACTIVE_SCHEDULER |
|
3899 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3900 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3901 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3902 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
3903 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3904 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0042-0001command2NewL |
|
3905 COMMAND TRfcommSockAddr1 Construct |
|
3906 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0042-0001command5SetBTAddr |
|
3907 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0042-0001command6BTAddr |
|
3908 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0042-0001command7SetFamily |
|
3909 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0042-0001command8SetPort |
|
3910 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0042-0001command10SetRsocketServerFromCBTSocket |
|
3911 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0042-0001command11NewL |
|
3912 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0042-0001command13Bind |
|
3913 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0042-0001command14Listen |
|
3914 STORE CBluetoothSocket1 |
|
3915 STORE CBluetoothSessionSocket |
|
3916 STORE TBTDevAddrLocal |
|
3917 STORE_ACTIVE_SCHEDULER |
|
3918 END_TEST_BLOCK |
|
3919 |
|
3920 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0042-0002 |
|
3921 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3922 SHARED_ACTIVE_SCHEDULER |
|
3923 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3924 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3925 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0042-0002command1Accept |
|
3926 OUTSTANDING |
|
3927 STORE CBluetoothSocket1 |
|
3928 STORE CBluetoothSessionSocket |
|
3929 STORE_ACTIVE_SCHEDULER |
|
3930 END_TEST_BLOCK |
|
3931 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0042-0002 |
|
3932 |
|
3933 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0042-0003 |
|
3934 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3935 SHARED_ACTIVE_SCHEDULER |
|
3936 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3937 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3938 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0042-0003command1Recv |
|
3939 OUTSTANDING |
|
3940 STORE CBluetoothSocket1 |
|
3941 STORE CBluetoothSessionSocket |
|
3942 STORE_ACTIVE_SCHEDULER |
|
3943 END_TEST_BLOCK |
|
3944 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0042-0003 |
|
3945 |
|
3946 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0042-0004 |
|
3947 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3948 SHARED_ACTIVE_SCHEDULER |
|
3949 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3950 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
3951 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0042-0004command1Shutdown |
|
3952 OUTSTANDING |
|
3953 COMMAND CBluetoothSessionSocket ~ |
|
3954 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0042-0004command4Shutdown |
|
3955 OUTSTANDING |
|
3956 COMMAND CBluetoothSocket1 ~ |
|
3957 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3958 END_TEST_BLOCK |
|
3959 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0042-0004 |
|
3960 |
|
3961 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0042 |
|
3962 |
|
3963 |
|
3964 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0043 |
|
3965 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0043 |
|
3966 //! @SYMAPI CBluetoothSocket |
|
3967 //! @SYMAuthor James Mechen |
|
3968 //! @SYMCreationDate 07/08/2006 |
|
3969 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify low baseband notification options |
|
3970 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
3971 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
3972 //! @SYMTestActions Wait for master to order start |
|
3973 //! 1. Create and start a session on the socket server |
|
3974 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
3975 //! 3. Create an TRfcommSockAddr object |
|
3976 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
3977 //! 5. Set the Family to Bluetooth (257) |
|
3978 //! 6. Set the port to the one matching the protocol to use |
|
3979 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
3980 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
3981 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
3982 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
3983 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
3984 //! Synchronization point |
|
3985 //! Synchronization point |
|
3986 //! 12. Do socket cleanup by calling Shutdown()1 |
|
3987 //! 13. HandleShutdownCompleteL gets called verify error code |
|
3988 //! 14. delete CBluetoothSocket object |
|
3989 //! Synchronization point |
|
3990 //! @SYMTestStatus Implemented |
|
3991 //! @SYMTestPriority Critical |
|
3992 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully for client baseband notification testing |
|
3993 //! @SYMTestType CIT |
|
3994 |
|
3995 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
3996 SHARED_ACTIVE_SCHEDULER |
|
3997 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3998 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3999 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4000 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4001 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4002 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0043-0001command3NewL |
|
4003 COMMAND TRfcommSockAddr1 Construct |
|
4004 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0043-0001command6SetBTAddr |
|
4005 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0043-0001command7BTAddr |
|
4006 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0043-0001command8SetFamily |
|
4007 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0043-0001command9SetPort |
|
4008 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0043-0001command11Bind |
|
4009 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0043-0001command12Listen |
|
4010 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0043-0001command14SetRsocketServerFromCBTSocket |
|
4011 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0043-0001command15NewL |
|
4012 STORE CBluetoothSocket1 |
|
4013 STORE CBluetoothSessionSocket |
|
4014 STORE TBTDevAddrLocal |
|
4015 STORE_ACTIVE_SCHEDULER |
|
4016 END_TEST_BLOCK |
|
4017 |
|
4018 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0043-0002 |
|
4019 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4020 SHARED_ACTIVE_SCHEDULER |
|
4021 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4022 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4023 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0043-0002command1Accept |
|
4024 OUTSTANDING |
|
4025 STORE CBluetoothSocket1 |
|
4026 STORE CBluetoothSessionSocket |
|
4027 STORE_ACTIVE_SCHEDULER |
|
4028 END_TEST_BLOCK |
|
4029 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0043-0002 |
|
4030 |
|
4031 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0043-0003 |
|
4032 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4033 SHARED_ACTIVE_SCHEDULER |
|
4034 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4035 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4036 COMMAND CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0043-0003command1RecvOneOrMore |
|
4037 OUTSTANDING |
|
4038 STORE CBluetoothSocket1 |
|
4039 STORE CBluetoothSessionSocket |
|
4040 STORE_ACTIVE_SCHEDULER |
|
4041 END_TEST_BLOCK |
|
4042 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0043-0003 |
|
4043 |
|
4044 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0043-0004 |
|
4045 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4046 SHARED_ACTIVE_SCHEDULER |
|
4047 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4048 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4049 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0043-0004command1Shutdown |
|
4050 OUTSTANDING |
|
4051 COMMAND CBluetoothSessionSocket ~ |
|
4052 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0043-0004command4Shutdown |
|
4053 OUTSTANDING |
|
4054 COMMAND CBluetoothSocket1 ~ |
|
4055 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4056 END_TEST_BLOCK |
|
4057 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0043-0004 |
|
4058 |
|
4059 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0043 |
|
4060 |
|
4061 |
|
4062 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0044 |
|
4063 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0044 |
|
4064 //! @SYMAPI CBluetoothSocket |
|
4065 //! @SYMAuthor James Mechen |
|
4066 //! @SYMCreationDate 07/08/2006 |
|
4067 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify low baseband notification options |
|
4068 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
4069 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
4070 //! @SYMTestActions Wait for master to order start |
|
4071 //! 1. Create and start a session on the socket server |
|
4072 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
4073 //! 3. Create an TRfcommSockAddr object |
|
4074 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
4075 //! 5. Set the Family to Bluetooth (257) |
|
4076 //! 6. Set the port to the one matching the protocol to use |
|
4077 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
4078 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
4079 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
4080 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
4081 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
4082 //! Synchronization point |
|
4083 //! Synchronization point |
|
4084 //! 12. Do socket cleanup by calling Shutdown()1 |
|
4085 //! 13. HandleShutdownCompleteL gets called verify error code |
|
4086 //! 14. delete CBluetoothSocket object |
|
4087 //! Synchronization point |
|
4088 //! @SYMTestStatus Implemented |
|
4089 //! @SYMTestPriority Critical |
|
4090 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully for client baseband notification testing |
|
4091 //! @SYMTestType CIT |
|
4092 |
|
4093 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4094 SHARED_ACTIVE_SCHEDULER |
|
4095 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4096 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4097 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4098 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4099 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4100 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0044-0001command3NewL |
|
4101 COMMAND TRfcommSockAddr1 Construct |
|
4102 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0044-0001command6SetBTAddr |
|
4103 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0044-0001command7BTAddr |
|
4104 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0044-0001command8SetFamily |
|
4105 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0044-0001command9SetPort |
|
4106 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0044-0001command11Bind |
|
4107 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0044-0001command12Listen |
|
4108 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0044-0001command14SetRsocketServerFromCBTSocket |
|
4109 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0044-0001command15NewL |
|
4110 STORE CBluetoothSocket1 |
|
4111 STORE CBluetoothSessionSocket |
|
4112 STORE TBTDevAddrLocal |
|
4113 STORE_ACTIVE_SCHEDULER |
|
4114 END_TEST_BLOCK |
|
4115 |
|
4116 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0044-0002 |
|
4117 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4118 SHARED_ACTIVE_SCHEDULER |
|
4119 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4120 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4121 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0044-0002command1Accept |
|
4122 OUTSTANDING |
|
4123 STORE CBluetoothSocket1 |
|
4124 STORE CBluetoothSessionSocket |
|
4125 STORE_ACTIVE_SCHEDULER |
|
4126 END_TEST_BLOCK |
|
4127 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0044-0002 |
|
4128 |
|
4129 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0044-0003 |
|
4130 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4131 SHARED_ACTIVE_SCHEDULER |
|
4132 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4133 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4134 COMMAND CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0044-0003command1RecvOneOrMore |
|
4135 OUTSTANDING |
|
4136 STORE CBluetoothSocket1 |
|
4137 STORE CBluetoothSessionSocket |
|
4138 STORE_ACTIVE_SCHEDULER |
|
4139 END_TEST_BLOCK |
|
4140 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0044-0003 |
|
4141 |
|
4142 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0044-0004 |
|
4143 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4144 SHARED_ACTIVE_SCHEDULER |
|
4145 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4146 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4147 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0044-0004command1Shutdown |
|
4148 OUTSTANDING |
|
4149 COMMAND CBluetoothSessionSocket ~ |
|
4150 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0044-0004command4Shutdown |
|
4151 OUTSTANDING |
|
4152 COMMAND CBluetoothSocket1 ~ |
|
4153 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4154 END_TEST_BLOCK |
|
4155 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0044-0004 |
|
4156 |
|
4157 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0044 |
|
4158 |
|
4159 |
|
4160 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0003 |
|
4161 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0003 |
|
4162 //! @SYMAPI CBluetoothSocket |
|
4163 //! @SYMAuthor Johan Eriksson |
|
4164 //! @SYMCreationDate 27/03/2006 |
|
4165 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
4166 //! Uses API elements: NewLC()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
4167 //! CancelAccept, HandleAcceptCompleteL, Shutdown()2, HandleShutdownCompleteL |
|
4168 //! @SYMTestActions Wait for master to order start |
|
4169 //! 1. Create and start a session on the socket server |
|
4170 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
4171 //! 3. Create an TRfcommSockAddr object |
|
4172 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
4173 //! 5. Set the Family to Bluetooth (257) |
|
4174 //! 6. Set the port to the one matching the protocol to use |
|
4175 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
4176 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
4177 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
4178 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
4179 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
4180 //! Synchronization point |
|
4181 //! 12. Read data sent to socket using Recv()1 |
|
4182 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
4183 //! Synchronization point |
|
4184 //! 14. Do socket cleanup by calling Shutdown()2 |
|
4185 //! 15. HandleShutdownCompleteL gets called verify error code |
|
4186 //! 16. delete CBluetoothSocket object |
|
4187 //! Synchronization point |
|
4188 //! @SYMTestStatus Implemented |
|
4189 //! @SYMTestPriority Critical |
|
4190 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully |
|
4191 //! @SYMTestType CIT |
|
4192 |
|
4193 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4194 SHARED_ACTIVE_SCHEDULER |
|
4195 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4196 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4197 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4198 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4199 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4200 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0003-0001command2NewL |
|
4201 COMMAND TRfcommSockAddr1 Construct |
|
4202 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0003-0001command5SetBTAddr |
|
4203 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0003-0001command6BTAddr |
|
4204 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0003-0001command7SetFamily |
|
4205 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0003-0001command8SetPort |
|
4206 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0003-0001command10SetRsocketServerFromCBTSocket |
|
4207 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0003-0001command11NewL |
|
4208 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0003-0001command13Bind |
|
4209 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0003-0001command14Listen |
|
4210 STORE CBluetoothSocket1 |
|
4211 STORE CBluetoothSessionSocket |
|
4212 STORE TBTDevAddrLocal |
|
4213 STORE_ACTIVE_SCHEDULER |
|
4214 END_TEST_BLOCK |
|
4215 |
|
4216 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0003-0002 |
|
4217 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4218 SHARED_ACTIVE_SCHEDULER |
|
4219 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4220 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4221 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0003-0002command2Accept |
|
4222 COMMAND CBluetoothSocket1 CancelAccept |
|
4223 OUTSTANDING |
|
4224 STORE CBluetoothSocket1 |
|
4225 STORE CBluetoothSessionSocket |
|
4226 STORE_ACTIVE_SCHEDULER |
|
4227 END_TEST_BLOCK |
|
4228 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0003-0002 |
|
4229 |
|
4230 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0003-0003 |
|
4231 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4232 SHARED_ACTIVE_SCHEDULER |
|
4233 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4234 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4235 COMMAND CBluetoothSessionSocket ~ |
|
4236 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0003-0003command3Shutdown |
|
4237 OUTSTANDING |
|
4238 COMMAND CBluetoothSocket1 ~ |
|
4239 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4240 END_TEST_BLOCK |
|
4241 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0003-0003 |
|
4242 |
|
4243 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0003 |
|
4244 |
|
4245 |
|
4246 |
|
4247 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0005 |
|
4248 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0005 |
|
4249 //! @SYMAPI CBluetoothSocket |
|
4250 //! @SYMAuthor Johan Eriksson |
|
4251 //! @SYMCreationDate 27/03/2006 |
|
4252 //! @SYMTestCaseDesc Set up a Bluetooth endpoint connect cancelled by client |
|
4253 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
4254 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
4255 //! @SYMTestActions Wait for master to order start |
|
4256 //! 1. Create and start a session on the socket server |
|
4257 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
4258 //! 3. Create an TRfcommSockAddr object |
|
4259 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
4260 //! 5. Set the Family to Bluetooth (257) |
|
4261 //! 6. Set the port to the one matching the protocol to use |
|
4262 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
4263 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
4264 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
4265 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
4266 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
4267 //! Synchronization point |
|
4268 //! 12. Do socket cleanup by calling Shutdown()1 |
|
4269 //! 13. HandleShutdownCompleteL gets called verify error code |
|
4270 //! 14. delete CBluetoothSocket object |
|
4271 //! Synchronization point |
|
4272 //! @SYMTestStatus Implemented |
|
4273 //! @SYMTestPriority Critical |
|
4274 //! @SYMTestExpectedResults Bluetooth endpoint connect cancelled by client |
|
4275 //! @SYMTestType CIT |
|
4276 |
|
4277 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4278 SHARED_ACTIVE_SCHEDULER |
|
4279 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4280 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4281 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4282 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4283 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4284 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0005-0001command2NewL |
|
4285 COMMAND TRfcommSockAddr1 Construct |
|
4286 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0005-0001command5SetBTAddr |
|
4287 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0005-0001command6BTAddr |
|
4288 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0005-0001command7SetFamily |
|
4289 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0005-0001command8SetPort |
|
4290 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0005-0001command10SetRsocketServerFromCBTSocket |
|
4291 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0005-0001command11NewL |
|
4292 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0005-0001command13Bind |
|
4293 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0005-0001command14Listen |
|
4294 STORE CBluetoothSocket1 |
|
4295 STORE CBluetoothSessionSocket |
|
4296 STORE TBTDevAddrLocal |
|
4297 STORE_ACTIVE_SCHEDULER |
|
4298 END_TEST_BLOCK |
|
4299 |
|
4300 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0005-0002 |
|
4301 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4302 SHARED_ACTIVE_SCHEDULER |
|
4303 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4304 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4305 DELAY 1000000 |
|
4306 STORE CBluetoothSocket1 |
|
4307 STORE CBluetoothSessionSocket |
|
4308 STORE_ACTIVE_SCHEDULER |
|
4309 END_TEST_BLOCK |
|
4310 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0005-0002 |
|
4311 |
|
4312 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0005-0003 |
|
4313 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4314 SHARED_ACTIVE_SCHEDULER |
|
4315 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4316 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4317 COMMAND CBluetoothSessionSocket ~ |
|
4318 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0005-0003command3Shutdown |
|
4319 OUTSTANDING |
|
4320 COMMAND CBluetoothSocket1 ~ |
|
4321 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4322 END_TEST_BLOCK |
|
4323 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0005-0003 |
|
4324 |
|
4325 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0005 |
|
4326 |
|
4327 |
|
4328 |
|
4329 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0051 |
|
4330 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0051 |
|
4331 //! @SYMAPI CBluetoothSocket |
|
4332 //! @SYMAuthor James Mechen |
|
4333 //! @SYMCreationDate 11/08/2006 |
|
4334 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify park and sniff requesters |
|
4335 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
4336 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
4337 //! @SYMTestActions Wait for master to order start |
|
4338 //! 1. Create and start a session on the socket server |
|
4339 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
4340 //! 3. Create an TRfcommSockAddr object |
|
4341 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
4342 //! 5. Set the Family to Bluetooth (257) |
|
4343 //! 6. Set the port to the one matching the protocol to use |
|
4344 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
4345 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
4346 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
4347 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
4348 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
4349 //! Synchronization point |
|
4350 //! Synchronization point |
|
4351 //! 12. Do socket cleanup by calling Shutdown()1 |
|
4352 //! 13. HandleShutdownCompleteL gets called verify error code |
|
4353 //! 14. delete CBluetoothSocket object |
|
4354 //! Synchronization point |
|
4355 //! @SYMTestStatus Implemented |
|
4356 //! @SYMTestPriority Critical |
|
4357 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully to verify park and sniff requesters |
|
4358 //! @SYMTestType CIT |
|
4359 |
|
4360 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4361 SHARED_ACTIVE_SCHEDULER |
|
4362 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4363 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4364 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4365 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4366 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4367 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0051-0001command2NewL |
|
4368 COMMAND TRfcommSockAddr1 Construct |
|
4369 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0051-0001command5SetBTAddr |
|
4370 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0051-0001command6BTAddr |
|
4371 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0051-0001command7SetFamily |
|
4372 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0051-0001command8SetPort |
|
4373 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0051-0001command10SetRsocketServerFromCBTSocket |
|
4374 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0051-0001command11NewL |
|
4375 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0051-0001command13Bind |
|
4376 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0051-0001command14Listen |
|
4377 STORE CBluetoothSocket1 |
|
4378 STORE CBluetoothSessionSocket |
|
4379 STORE TBTDevAddrLocal |
|
4380 STORE_ACTIVE_SCHEDULER |
|
4381 END_TEST_BLOCK |
|
4382 |
|
4383 |
|
4384 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0051-0002 |
|
4385 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4386 SHARED_ACTIVE_SCHEDULER |
|
4387 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4388 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4389 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0051-0002command1Accept |
|
4390 OUTSTANDING |
|
4391 STORE CBluetoothSocket1 |
|
4392 STORE CBluetoothSessionSocket |
|
4393 STORE_ACTIVE_SCHEDULER |
|
4394 END_TEST_BLOCK |
|
4395 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0051-0002 |
|
4396 |
|
4397 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0051-0003 |
|
4398 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4399 SHARED_ACTIVE_SCHEDULER |
|
4400 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4401 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4402 COMMAND CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0051-0003command1RecvOneOrMore |
|
4403 OUTSTANDING |
|
4404 STORE CBluetoothSocket1 |
|
4405 STORE CBluetoothSessionSocket |
|
4406 STORE_ACTIVE_SCHEDULER |
|
4407 END_TEST_BLOCK |
|
4408 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0051-0003 |
|
4409 |
|
4410 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0051-0004 |
|
4411 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4412 SHARED_ACTIVE_SCHEDULER |
|
4413 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4414 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4415 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0051-0004command1Shutdown |
|
4416 OUTSTANDING |
|
4417 COMMAND CBluetoothSessionSocket ~ |
|
4418 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0051-0004command4Shutdown |
|
4419 OUTSTANDING |
|
4420 COMMAND CBluetoothSocket1 ~ |
|
4421 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4422 END_TEST_BLOCK |
|
4423 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0051-0004 |
|
4424 |
|
4425 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0051 |
|
4426 |
|
4427 |
|
4428 |
|
4429 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0052 |
|
4430 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0052 |
|
4431 //! @SYMAPI CBluetoothSocket |
|
4432 //! @SYMAuthor James Mechen |
|
4433 //! @SYMCreationDate 11/08/2006 |
|
4434 //! @SYMTestCaseDesc Set up a Bluetooth endpoint to verify park and sniff requesters |
|
4435 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
4436 //! HandleAcceptCompleteL, Shutdown()1, HandleShutdownCompleteL |
|
4437 //! @SYMTestActions Wait for master to order start |
|
4438 //! 1. Create and start a session on the socket server |
|
4439 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
4440 //! 3. Create an TRfcommSockAddr object |
|
4441 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
4442 //! 5. Set the Family to Bluetooth (257) |
|
4443 //! 6. Set the port to the one matching the protocol to use |
|
4444 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
4445 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
4446 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
4447 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
4448 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
4449 //! Synchronization point |
|
4450 //! Synchronization point |
|
4451 //! 12. Do socket cleanup by calling Shutdown()1 |
|
4452 //! 13. HandleShutdownCompleteL gets called verify error code |
|
4453 //! 14. delete CBluetoothSocket object |
|
4454 //! Synchronization point |
|
4455 //! @SYMTestStatus Implemented |
|
4456 //! @SYMTestPriority Critical |
|
4457 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully to verify park and sniff requesters |
|
4458 //! @SYMTestType CIT |
|
4459 |
|
4460 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4461 SHARED_ACTIVE_SCHEDULER |
|
4462 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4463 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4464 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4465 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4466 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4467 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0052-0001command2NewL |
|
4468 COMMAND TRfcommSockAddr1 Construct |
|
4469 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0052-0001command5SetBTAddr |
|
4470 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0052-0001command6BTAddr |
|
4471 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0052-0001command7SetFamily |
|
4472 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0052-0001command8SetPort |
|
4473 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0052-0001command10SetRsocketServerFromCBTSocket |
|
4474 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0052-0001command11NewL |
|
4475 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0052-0001command13Bind |
|
4476 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0052-0001command14Listen |
|
4477 STORE CBluetoothSocket1 |
|
4478 STORE CBluetoothSessionSocket |
|
4479 STORE TBTDevAddrLocal |
|
4480 STORE_ACTIVE_SCHEDULER |
|
4481 END_TEST_BLOCK |
|
4482 |
|
4483 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0052-0002 |
|
4484 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4485 SHARED_ACTIVE_SCHEDULER |
|
4486 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4487 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4488 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0052-0002command1Accept |
|
4489 OUTSTANDING |
|
4490 STORE CBluetoothSocket1 |
|
4491 STORE CBluetoothSessionSocket |
|
4492 STORE_ACTIVE_SCHEDULER |
|
4493 END_TEST_BLOCK |
|
4494 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0052-0002 |
|
4495 |
|
4496 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0052-0003 |
|
4497 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4498 SHARED_ACTIVE_SCHEDULER |
|
4499 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4500 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4501 COMMAND CBluetoothSessionSocket RecvOneOrMore BT-USER-SOCK-PublicAPI-Passive-0052-0003command1RecvOneOrMore |
|
4502 OUTSTANDING |
|
4503 STORE CBluetoothSocket1 |
|
4504 STORE CBluetoothSessionSocket |
|
4505 STORE_ACTIVE_SCHEDULER |
|
4506 END_TEST_BLOCK |
|
4507 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0052-0003 |
|
4508 |
|
4509 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0052-0004 |
|
4510 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4511 SHARED_ACTIVE_SCHEDULER |
|
4512 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4513 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4514 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0052-0004command1Shutdown |
|
4515 OUTSTANDING |
|
4516 COMMAND CBluetoothSessionSocket ~ |
|
4517 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0052-0004command4Shutdown |
|
4518 OUTSTANDING |
|
4519 COMMAND CBluetoothSocket1 ~ |
|
4520 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4521 STORE_ACTIVE_SCHEDULER |
|
4522 END_TEST_BLOCK |
|
4523 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0052-0004 |
|
4524 |
|
4525 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0052 |
|
4526 |
|
4527 |
|
4528 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0045 |
|
4529 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0045 |
|
4530 //! @SYMAPI CBluetoothSocket |
|
4531 //! @SYMAuthor James Mechen |
|
4532 //! @SYMCreationDate 10/08/2006 |
|
4533 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
4534 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
4535 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
4536 //! HandleShutdownCompleteL |
|
4537 //! @SYMTestActions Wait for master to order start |
|
4538 //! 1. Create and start a session on the socket server |
|
4539 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
4540 //! 3. Create an TRfcommSockAddr object |
|
4541 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
4542 //! 5. Set the Family to Bluetooth (257) |
|
4543 //! 6. Set the port to the one matching the protocol to use |
|
4544 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
4545 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
4546 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
4547 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
4548 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
4549 //! Synchronization point |
|
4550 //! 12. Read data sent to socket using Recv()1 |
|
4551 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
4552 //! Synchronization point |
|
4553 //! 14. Do socket cleanup by calling Shutdown()1 |
|
4554 //! 15. HandleShutdownCompleteL gets called verify error code |
|
4555 //! 16. delete CBluetoothSocket object |
|
4556 //! Synchronization point |
|
4557 //! @SYMTestStatus Implemented |
|
4558 //! @SYMTestPriority Critical |
|
4559 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
4560 //! @SYMTestType CIT |
|
4561 |
|
4562 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4563 SHARED_ACTIVE_SCHEDULER |
|
4564 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4565 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4566 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4567 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4568 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4569 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0045-0001command3NewL |
|
4570 COMMAND TRfcommSockAddr1 Construct |
|
4571 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0045-0001command6SetBTAddr |
|
4572 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0045-0001command7BTAddr |
|
4573 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0045-0001command8SetFamily |
|
4574 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0045-0001command9SetPort |
|
4575 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0045-0001command11Bind |
|
4576 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0045-0001command12Listen |
|
4577 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0045-0001command14SetRsocketServerFromCBTSocket |
|
4578 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0045-0001command15NewL |
|
4579 STORE CBluetoothSocket1 |
|
4580 STORE CBluetoothSessionSocket |
|
4581 STORE TBTDevAddrLocal |
|
4582 STORE_ACTIVE_SCHEDULER |
|
4583 END_TEST_BLOCK |
|
4584 |
|
4585 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0045-0002 |
|
4586 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4587 SHARED_ACTIVE_SCHEDULER |
|
4588 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4589 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4590 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0045-0002command1Accept |
|
4591 OUTSTANDING |
|
4592 STORE CBluetoothSocket1 |
|
4593 STORE CBluetoothSessionSocket |
|
4594 STORE_ACTIVE_SCHEDULER |
|
4595 END_TEST_BLOCK |
|
4596 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0045-0002 |
|
4597 |
|
4598 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0045-0003 |
|
4599 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4600 SHARED_ACTIVE_SCHEDULER |
|
4601 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4602 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4603 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0045-0003command1Recv |
|
4604 OUTSTANDING |
|
4605 STORE CBluetoothSocket1 |
|
4606 STORE CBluetoothSessionSocket |
|
4607 STORE_ACTIVE_SCHEDULER |
|
4608 END_TEST_BLOCK |
|
4609 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0045-0003 |
|
4610 |
|
4611 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0045-0004 |
|
4612 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4613 SHARED_ACTIVE_SCHEDULER |
|
4614 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4615 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4616 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0045-0004command1Shutdown |
|
4617 OUTSTANDING |
|
4618 COMMAND CBluetoothSessionSocket ~ |
|
4619 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0045-0004command4Shutdown |
|
4620 OUTSTANDING |
|
4621 COMMAND CBluetoothSocket1 ~ |
|
4622 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4623 END_TEST_BLOCK |
|
4624 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0045-0004 |
|
4625 |
|
4626 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0045 |
|
4627 |
|
4628 |
|
4629 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0049 |
|
4630 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0049 |
|
4631 //! @SYMAPI CBluetoothSocket |
|
4632 //! @SYMAuthor James Mechen |
|
4633 //! @SYMCreationDate 10/08/2006 |
|
4634 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
4635 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
4636 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
4637 //! HandleShutdownCompleteL |
|
4638 //! @SYMTestActions Wait for master to order start |
|
4639 //! 1. Create and start a session on the socket server |
|
4640 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
4641 //! 3. Create an TRfcommSockAddr object |
|
4642 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
4643 //! 5. Set the Family to Bluetooth (257) |
|
4644 //! 6. Set the port to the one matching the protocol to use |
|
4645 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
4646 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
4647 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
4648 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
4649 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
4650 //! Synchronization point |
|
4651 //! 12. Read data sent to socket using Recv()1 |
|
4652 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
4653 //! Synchronization point |
|
4654 //! 14. Do socket cleanup by calling Shutdown()1 |
|
4655 //! 15. HandleShutdownCompleteL gets called verify error code |
|
4656 //! 16. delete CBluetoothSocket object |
|
4657 //! Synchronization point |
|
4658 //! @SYMTestStatus Implemented |
|
4659 //! @SYMTestPriority Critical |
|
4660 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
4661 //! @SYMTestType CIT |
|
4662 |
|
4663 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4664 SHARED_ACTIVE_SCHEDULER |
|
4665 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4666 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4667 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4668 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4669 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4670 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0049-0001command3NewL |
|
4671 COMMAND TRfcommSockAddr1 Construct |
|
4672 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0049-0001command6SetBTAddr |
|
4673 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0049-0001command7BTAddr |
|
4674 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0049-0001command8SetFamily |
|
4675 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0049-0001command9SetPort |
|
4676 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0049-0001command11Bind |
|
4677 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0049-0001command12Listen |
|
4678 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0049-0001command14SetRsocketServerFromCBTSocket |
|
4679 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0049-0001command15NewL |
|
4680 STORE CBluetoothSocket1 |
|
4681 STORE CBluetoothSessionSocket |
|
4682 STORE TBTDevAddrLocal |
|
4683 STORE_ACTIVE_SCHEDULER |
|
4684 END_TEST_BLOCK |
|
4685 |
|
4686 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0049-0002 |
|
4687 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4688 SHARED_ACTIVE_SCHEDULER |
|
4689 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4690 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4691 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0049-0002command1Accept |
|
4692 OUTSTANDING |
|
4693 STORE CBluetoothSocket1 |
|
4694 STORE CBluetoothSessionSocket |
|
4695 STORE_ACTIVE_SCHEDULER |
|
4696 END_TEST_BLOCK |
|
4697 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0049-0002 |
|
4698 |
|
4699 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0049-0003 |
|
4700 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4701 SHARED_ACTIVE_SCHEDULER |
|
4702 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4703 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4704 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0049-0003command1Recv |
|
4705 OUTSTANDING |
|
4706 STORE CBluetoothSocket1 |
|
4707 STORE CBluetoothSessionSocket |
|
4708 STORE_ACTIVE_SCHEDULER |
|
4709 END_TEST_BLOCK |
|
4710 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0049-0003 |
|
4711 |
|
4712 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0049-0004 |
|
4713 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4714 SHARED_ACTIVE_SCHEDULER |
|
4715 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4716 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4717 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0049-0004command1Shutdown |
|
4718 OUTSTANDING |
|
4719 COMMAND CBluetoothSessionSocket ~ |
|
4720 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0049-0004command4Shutdown |
|
4721 OUTSTANDING |
|
4722 COMMAND CBluetoothSocket1 ~ |
|
4723 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4724 END_TEST_BLOCK |
|
4725 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0049-0004 |
|
4726 |
|
4727 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0049 |
|
4728 |
|
4729 |
|
4730 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0050 |
|
4731 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0050 |
|
4732 //! @SYMAPI CBluetoothSocket |
|
4733 //! @SYMAuthor James Mechen |
|
4734 //! @SYMCreationDate 10/08/2006 |
|
4735 //! @SYMTestCaseDesc Set up a Bluetooth endpoint and accept and verify data |
|
4736 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
4737 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
4738 //! HandleShutdownCompleteL |
|
4739 //! @SYMTestActions Wait for master to order start |
|
4740 //! 1. Create and start a session on the socket server |
|
4741 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
4742 //! 3. Create an TRfcommSockAddr object |
|
4743 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
4744 //! 5. Set the Family to Bluetooth (257) |
|
4745 //! 6. Set the port to the one matching the protocol to use |
|
4746 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
4747 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
4748 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
4749 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
4750 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
4751 //! Synchronization point |
|
4752 //! 12. Read data sent to socket using Recv()1 |
|
4753 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
4754 //! Synchronization point |
|
4755 //! 14. Do socket cleanup by calling Shutdown()1 |
|
4756 //! 15. HandleShutdownCompleteL gets called verify error code |
|
4757 //! 16. delete CBluetoothSocket object |
|
4758 //! Synchronization point |
|
4759 //! @SYMTestStatus Implemented |
|
4760 //! @SYMTestPriority Critical |
|
4761 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
4762 //! @SYMTestType CIT |
|
4763 |
|
4764 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4765 SHARED_ACTIVE_SCHEDULER |
|
4766 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4767 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4768 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4769 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4770 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4771 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0050-0001command3NewL |
|
4772 COMMAND TRfcommSockAddr1 Construct |
|
4773 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0050-0001command6SetBTAddr |
|
4774 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0050-0001command7BTAddr |
|
4775 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0050-0001command8SetFamily |
|
4776 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0050-0001command9SetPort |
|
4777 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0050-0001command11Bind |
|
4778 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0050-0001command12Listen |
|
4779 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0050-0001command14SetRsocketServerFromCBTSocket |
|
4780 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0050-0001command15NewL |
|
4781 STORE CBluetoothSocket1 |
|
4782 STORE CBluetoothSessionSocket |
|
4783 STORE TBTDevAddrLocal |
|
4784 STORE_ACTIVE_SCHEDULER |
|
4785 END_TEST_BLOCK |
|
4786 |
|
4787 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0050-0002 |
|
4788 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4789 SHARED_ACTIVE_SCHEDULER |
|
4790 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4791 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4792 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0050-0002command1Accept |
|
4793 OUTSTANDING |
|
4794 STORE CBluetoothSocket1 |
|
4795 STORE CBluetoothSessionSocket |
|
4796 STORE_ACTIVE_SCHEDULER |
|
4797 END_TEST_BLOCK |
|
4798 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0050-0002 |
|
4799 |
|
4800 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0050-0003 |
|
4801 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4802 SHARED_ACTIVE_SCHEDULER |
|
4803 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4804 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4805 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0050-0003command1Recv |
|
4806 OUTSTANDING |
|
4807 STORE CBluetoothSocket1 |
|
4808 STORE CBluetoothSessionSocket |
|
4809 STORE_ACTIVE_SCHEDULER |
|
4810 END_TEST_BLOCK |
|
4811 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0050-0003 |
|
4812 |
|
4813 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0050-0004 |
|
4814 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4815 SHARED_ACTIVE_SCHEDULER |
|
4816 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4817 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4818 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0050-0004command1Shutdown |
|
4819 OUTSTANDING |
|
4820 COMMAND CBluetoothSessionSocket ~ |
|
4821 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0050-0004command4Shutdown |
|
4822 OUTSTANDING |
|
4823 COMMAND CBluetoothSocket1 ~ |
|
4824 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4825 END_TEST_BLOCK |
|
4826 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0050-0004 |
|
4827 |
|
4828 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0050 |
|
4829 |
|
4830 |
|
4831 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0046 |
|
4832 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0046 |
|
4833 //! @SYMAPI CBluetoothSocket |
|
4834 //! @SYMAuthor James Mechen |
|
4835 //! @SYMCreationDate 10/08/2006 |
|
4836 //! @SYMTestCaseDesc Set up a Bluetooth endpoint, Bind with incorrect address, accept and verify data |
|
4837 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
4838 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
4839 //! HandleShutdownCompleteL |
|
4840 //! @SYMTestActions Wait for master to order start |
|
4841 //! 1. Create and start a session on the socket server |
|
4842 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
4843 //! 3. Create an TRfcommSockAddr object |
|
4844 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
4845 //! 5. Set the Family to Bluetooth (257) |
|
4846 //! 6. Set the port to the one matching the protocol to use |
|
4847 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket to an incorrect address |
|
4848 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
4849 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
4850 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
4851 //! 11. HandleAcceptCompleteL gets called when accept is completed, verify that there is no error |
|
4852 //! Synchronization point |
|
4853 //! 12. Read data sent to socket using Recv()1 |
|
4854 //! 13. HandleReceiveCompleteL gets called when we finished receiving data, verify data received |
|
4855 //! Synchronization point |
|
4856 //! 14. Do socket cleanup by calling Shutdown()1 |
|
4857 //! 15. HandleShutdownCompleteL gets called verify error code |
|
4858 //! 16. delete CBluetoothSocket object |
|
4859 //! Synchronization point |
|
4860 //! @SYMTestStatus Implemented |
|
4861 //! @SYMTestPriority Critical |
|
4862 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully |
|
4863 //! @SYMTestType CIT |
|
4864 |
|
4865 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4866 SHARED_ACTIVE_SCHEDULER |
|
4867 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4868 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4869 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4870 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4871 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4872 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0046-0001command3NewL |
|
4873 COMMAND TRfcommSockAddr1 Construct |
|
4874 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0046-0001command6SetBTAddr |
|
4875 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0046-0001command7BTAddr |
|
4876 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0046-0001command8SetFamily |
|
4877 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0046-0001command9SetPort |
|
4878 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0046-0001command11Bind |
|
4879 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0046-0001command12Listen |
|
4880 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0046-0001command14SetRsocketServerFromCBTSocket |
|
4881 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0046-0001command15NewL |
|
4882 STORE CBluetoothSocket1 |
|
4883 STORE CBluetoothSessionSocket |
|
4884 STORE TBTDevAddrLocal |
|
4885 STORE_ACTIVE_SCHEDULER |
|
4886 END_TEST_BLOCK |
|
4887 |
|
4888 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0046-0002 |
|
4889 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4890 SHARED_ACTIVE_SCHEDULER |
|
4891 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4892 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4893 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0046-0002command1Accept |
|
4894 OUTSTANDING |
|
4895 STORE CBluetoothSocket1 |
|
4896 STORE CBluetoothSessionSocket |
|
4897 STORE_ACTIVE_SCHEDULER |
|
4898 END_TEST_BLOCK |
|
4899 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0046-0002 |
|
4900 |
|
4901 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0046-0003 |
|
4902 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4903 SHARED_ACTIVE_SCHEDULER |
|
4904 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4905 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4906 COMMAND CBluetoothSessionSocket Recv BT-USER-SOCK-PublicAPI-Passive-0046-0003command1Recv |
|
4907 OUTSTANDING |
|
4908 STORE CBluetoothSocket1 |
|
4909 STORE CBluetoothSessionSocket |
|
4910 STORE_ACTIVE_SCHEDULER |
|
4911 END_TEST_BLOCK |
|
4912 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0046-0003 |
|
4913 |
|
4914 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0046-0004 |
|
4915 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4916 SHARED_ACTIVE_SCHEDULER |
|
4917 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4918 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
4919 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0046-0004command1Shutdown |
|
4920 OUTSTANDING |
|
4921 COMMAND CBluetoothSessionSocket ~ |
|
4922 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0046-0004command4Shutdown |
|
4923 OUTSTANDING |
|
4924 COMMAND CBluetoothSocket1 ~ |
|
4925 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4926 END_TEST_BLOCK |
|
4927 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0046-0004 |
|
4928 |
|
4929 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0046 |
|
4930 |
|
4931 |
|
4932 //START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0047 |
|
4933 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0047 |
|
4934 //! @SYMAPI CBluetoothSocket |
|
4935 //! @SYMAuthor James Mechen |
|
4936 //! @SYMCreationDate 10/08/2006 |
|
4937 //! @SYMTestCaseDesc Call Accept1 with a non-blank CBluetoothsocket |
|
4938 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
4939 //! HandleAcceptCompleteL, Recv()1, HandleReceiveCompleteL, Shutdown()1, |
|
4940 //! HandleShutdownCompleteL |
|
4941 //! @SYMTestActions Wait for master to order start |
|
4942 //! 1. Create and start a session on the socket server |
|
4943 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
4944 //! 3. Create an TRfcommSockAddr object |
|
4945 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
4946 //! 5. Set the Family to Bluetooth (257) |
|
4947 //! 6. Set the port to the one matching the protocol to use |
|
4948 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
4949 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
4950 //! 9. Create a new non-empty CBluetoothSocket using NewL() |
|
4951 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
4952 //! 11. delete CBluetoothSocket object |
|
4953 //! Synchronization point |
|
4954 //! @SYMTestStatus Implemented |
|
4955 //! @SYMTestPriority Critical |
|
4956 //! @SYMTestExpectedResults Accept panics with ESOCK code 0 |
|
4957 //! @SYMTestType CIT |
|
4958 |
|
4959 // START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4960 // SHARED_ACTIVE_SCHEDULER |
|
4961 // CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4962 // CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4963 // CREATE_OBJECT CBluetoothSocket CBluetoothSocket2 |
|
4964 // RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
4965 // COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4966 // COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0047-0001command3NewL |
|
4967 // COMMAND TRfcommSockAddr1 Construct |
|
4968 // COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0047-0001command6SetBTAddr |
|
4969 // COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0047-0001command7BTAddr |
|
4970 // COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0047-0001command8SetFamily |
|
4971 // COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0047-0001command9SetPort |
|
4972 // COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0047-0001command11Bind |
|
4973 // COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0047-0001command12Listen |
|
4974 // COMMAND CBluetoothSocket2 RSocketServerConnect |
|
4975 // COMMAND CBluetoothSocket2 NewL BT-USER-SOCK-PublicAPI-Passive-0047-0001command15NewL |
|
4976 // STORE CBluetoothSocket1 |
|
4977 // STORE CBluetoothSocket2 |
|
4978 // STORE TBTDevAddrLocal |
|
4979 // STORE_ACTIVE_SCHEDULER |
|
4980 // END_TEST_BLOCK |
|
4981 |
|
4982 // START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0047-0002 |
|
4983 // START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
4984 // SHARED_ACTIVE_SCHEDULER |
|
4985 // RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4986 // RESTORE_OBJECT CBluetoothSocket CBluetoothSocket2 |
|
4987 // COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0047-0002command1Accept |
|
4988 // COMMAND CBluetoothSocket2 Shutdown BT-USER-SOCK-PublicAPI-Passive-0047-0002command3Shutdown |
|
4989 // OUTSTANDING |
|
4990 // COMMAND CBluetoothSocket2 ~ |
|
4991 // COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0047-0002command6Shutdown |
|
4992 // OUTSTANDING |
|
4993 // COMMAND CBluetoothSocket1 ~ |
|
4994 // COMMAND CBluetoothSocket1 RSocketServerClose |
|
4995 // END_TEST_BLOCK !PanicCode=0 |
|
4996 // END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0047-0002 |
|
4997 |
|
4998 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0047 |
|
4999 |
|
5000 |
|
5001 |
|
5002 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0038 |
|
5003 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0038 |
|
5004 //! @SYMAPI CBluetoothSocket |
|
5005 //! @SYMAuthor James Mechen |
|
5006 //! @SYMCreationDate 07/08/2006 |
|
5007 //! @SYMTestCaseDesc Try to accept over a BT socket while already accepted |
|
5008 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()1, |
|
5009 //! HandleAcceptCompleteL, Recv(), HandleReceiveCompleteL, Shutdown()1, |
|
5010 //! HandleShutdownCompleteL |
|
5011 //! @SYMTestActions Wait for master to order start |
|
5012 //! 1. Create and start a session on the socket server |
|
5013 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
5014 //! 3. Create an TRfcommSockAddr object |
|
5015 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
5016 //! 5. Set the Family to Bluetooth (257) |
|
5017 //! 6. Set the port to the one matching the protocol to use |
|
5018 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
5019 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
5020 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
5021 //! 10. Call Accept()1 on the old CBluetoothSocket object with the new as argument |
|
5022 //! 11. Immediately call Accept()1 again |
|
5023 //! 12. HandleAcceptCompleteL gets called when accept is completed, with error code KErrInUse |
|
5024 //! Synchronization point |
|
5025 //! 13. Read data sent to socket using Recv() |
|
5026 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, with no error code |
|
5027 //! Synchronization point |
|
5028 //! 15. Do socket cleanup by calling Shutdown()1 |
|
5029 //! 16. HandleShutdownCompleteL gets called verify error code |
|
5030 //! 17. delete CBluetoothSocket object |
|
5031 //! Synchronization point |
|
5032 //! @SYMTestStatus Implemented |
|
5033 //! @SYMTestPriority Critical |
|
5034 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully but second accept returns KErrInUse (-14) |
|
5035 //! @SYMTestType CIT |
|
5036 |
|
5037 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
5038 SHARED_ACTIVE_SCHEDULER |
|
5039 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
5040 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
5041 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
5042 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
5043 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket2 |
|
5044 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
5045 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0038-0001command3NewL |
|
5046 COMMAND TRfcommSockAddr1 Construct |
|
5047 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0038-0001command6SetBTAddr |
|
5048 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0038-0001command7BTAddr |
|
5049 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0038-0001command8SetFamily |
|
5050 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0038-0001command9SetPort |
|
5051 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0038-0001command11Bind |
|
5052 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0038-0001command12Listen |
|
5053 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0038-0001command14SetRsocketServerFromCBTSocket |
|
5054 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0038-0001command15NewL |
|
5055 COMMAND CBluetoothSessionSocket2 SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0038-0001command17SetRsocketServerFromCBTSocket |
|
5056 COMMAND CBluetoothSessionSocket2 NewL BT-USER-SOCK-PublicAPI-Passive-0038-0001command18NewL |
|
5057 STORE CBluetoothSocket1 |
|
5058 STORE CBluetoothSessionSocket |
|
5059 STORE TBTDevAddrLocal |
|
5060 STORE CBluetoothSessionSocket2 |
|
5061 STORE_ACTIVE_SCHEDULER |
|
5062 END_TEST_BLOCK |
|
5063 |
|
5064 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0038-0002 |
|
5065 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
5066 SHARED_ACTIVE_SCHEDULER |
|
5067 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
5068 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
5069 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket2 |
|
5070 DELAY 1 |
|
5071 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0038-0002command2Accept |
|
5072 COMMAND !Error=-14 CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0038-0002command3Accept |
|
5073 OUTSTANDING |
|
5074 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0038-0002command6Shutdown |
|
5075 OUTSTANDING |
|
5076 COMMAND CBluetoothSessionSocket ~ |
|
5077 COMMAND CBluetoothSessionSocket2 ~ |
|
5078 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0038-0002command11Shutdown |
|
5079 OUTSTANDING |
|
5080 COMMAND CBluetoothSocket1 ~ |
|
5081 COMMAND CBluetoothSocket1 RSocketServerClose |
|
5082 END_TEST_BLOCK |
|
5083 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0038-0002 |
|
5084 |
|
5085 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0038 |
|
5086 |
|
5087 |
|
5088 START_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0039 |
|
5089 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Passive-Slave-0039 |
|
5090 //! @SYMAPI CBluetoothSocket |
|
5091 //! @SYMAuthor James Mechen |
|
5092 //! @SYMCreationDate 07/08/2006 |
|
5093 //! @SYMTestCaseDesc Try to accept over a BT socket while already accepted |
|
5094 //! Uses API elements: NewL()1, Bind, listen()1, LocalPort, NewL()4, Accept()2, |
|
5095 //! HandleAcceptCompleteL, Recv(), HandleReceiveCompleteL, Shutdown()1, |
|
5096 //! HandleShutdownCompleteL |
|
5097 //! @SYMTestActions Wait for master to order start |
|
5098 //! 1. Create and start a session on the socket server |
|
5099 //! 2. Create a CBluetoothSocket using the NewL()1 (Standard constructor) |
|
5100 //! 3. Create an TRfcommSockAddr object |
|
5101 //! 4. Set the Bluetooth address to the one of the Casira pod connected to this slave |
|
5102 //! 5. Set the Family to Bluetooth (257) |
|
5103 //! 6. Set the port to the one matching the protocol to use |
|
5104 //! 7. Use the Bind method of the CBluetoothSocket to bind the socket using the TRfcommSockAddr object |
|
5105 //! 8. Call the listen()1 method of the CBluetoothSocket object |
|
5106 //! 9. Create a new empty CBluetoothSocket using NewL()4 |
|
5107 //! 10. Call Accept()2 on the old CBluetoothSocket object with the new as argument |
|
5108 //! 11. Immediately call Accept()2 again |
|
5109 //! 12. HandleAcceptCompleteL gets called when accept is completed, with error code KErrInUse |
|
5110 //! Synchronization point |
|
5111 //! 13. Read data sent to socket using Recv() |
|
5112 //! 14. HandleReceiveCompleteL gets called when we finished receiving data, with no error code |
|
5113 //! Synchronization point |
|
5114 //! 15. Do socket cleanup by calling Shutdown()1 |
|
5115 //! 16. HandleShutdownCompleteL gets called verify error code |
|
5116 //! 17. delete CBluetoothSocket object |
|
5117 //! Synchronization point |
|
5118 //! @SYMTestStatus Implemented |
|
5119 //! @SYMTestPriority Critical |
|
5120 //! @SYMTestExpectedResults Bluetooth endpoint set up successfully, data received successfully but second accept returns KErrInUse (-14) |
|
5121 //! @SYMTestType CIT |
|
5122 |
|
5123 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
5124 SHARED_ACTIVE_SCHEDULER |
|
5125 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
5126 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
5127 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
5128 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
5129 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket2 |
|
5130 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
5131 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Passive-0039-0001command3NewL |
|
5132 COMMAND TRfcommSockAddr1 Construct |
|
5133 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Passive-0039-0001command6SetBTAddr |
|
5134 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Passive-0039-0001command7BTAddr |
|
5135 COMMAND TRfcommSockAddr1 SetFamily BT-USER-SOCK-PublicAPI-Passive-0039-0001command8SetFamily |
|
5136 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Passive-0039-0001command9SetPort |
|
5137 COMMAND CBluetoothSocket1 Bind BT-USER-SOCK-PublicAPI-Passive-0039-0001command11Bind |
|
5138 COMMAND CBluetoothSocket1 Listen BT-USER-SOCK-PublicAPI-Passive-0039-0001command12Listen |
|
5139 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0039-0001command14SetRsocketServerFromCBTSocket |
|
5140 COMMAND CBluetoothSessionSocket NewL BT-USER-SOCK-PublicAPI-Passive-0039-0001command15NewL |
|
5141 COMMAND CBluetoothSessionSocket2 SetRsocketServerFromCBTSocket BT-USER-SOCK-PublicAPI-Passive-0039-0001command17SetRsocketServerFromCBTSocket |
|
5142 COMMAND CBluetoothSessionSocket2 NewL BT-USER-SOCK-PublicAPI-Passive-0039-0001command18NewL |
|
5143 STORE CBluetoothSocket1 |
|
5144 STORE CBluetoothSessionSocket |
|
5145 STORE TBTDevAddrLocal |
|
5146 STORE CBluetoothSessionSocket2 |
|
5147 STORE_ACTIVE_SCHEDULER |
|
5148 END_TEST_BLOCK |
|
5149 |
|
5150 START_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0039-0002 |
|
5151 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Passive-Slave.ini |
|
5152 SHARED_ACTIVE_SCHEDULER |
|
5153 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
5154 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
5155 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket2 |
|
5156 DELAY 1 |
|
5157 COMMAND CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0039-0002command2Accept |
|
5158 COMMAND !Error=-14 CBluetoothSocket1 Accept BT-USER-SOCK-PublicAPI-Passive-0039-0002command3Accept |
|
5159 OUTSTANDING |
|
5160 COMMAND CBluetoothSessionSocket Shutdown BT-USER-SOCK-PublicAPI-Passive-0039-0002command6Shutdown |
|
5161 OUTSTANDING |
|
5162 COMMAND CBluetoothSessionSocket ~ |
|
5163 COMMAND CBluetoothSessionSocket2 ~ |
|
5164 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Passive-0039-0002command11Shutdown |
|
5165 OUTSTANDING |
|
5166 COMMAND CBluetoothSocket1 ~ |
|
5167 COMMAND CBluetoothSocket1 RSocketServerClose |
|
5168 END_TEST_BLOCK |
|
5169 END_SYNCHRONISED_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0039-0002 |
|
5170 |
|
5171 END_TESTCASE BT-USER-SOCK-PublicAPI-Passive-Slave-0039 |