|
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 //! @file |
|
18 //! @SYMTestSuiteName T_BTGavdp |
|
19 //! @SYMScriptTestEnvironment This test script requires a basic ROM with bluetooth dongle. |
|
20 //! @SYMScriptDescription |
|
21 //! @SYMAuthor Niandong Qiao, Jianhui Ren, Kevin Zeng |
|
22 //! @SYMCreationDate 05-06-2008 |
|
23 /////////////////////////////////////////////////////////////////////////////// |
|
24 |
|
25 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\ |
|
26 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\gavdp\ |
|
27 |
|
28 LOAD_SUITE UCCControlTE |
|
29 LOAD_SUITE t_btgavdpapi -SharedData |
|
30 DELAY 2000 |
|
31 |
|
32 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncService |
|
33 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartTDService |
|
34 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini BuildRunGavdpActiveSlave |
|
35 DELAY 5000 |
|
36 |
|
37 // **************************************************************************** |
|
38 // Set up BT Addresses |
|
39 // **************************************************************************** |
|
40 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-SetBTAddresses |
|
41 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
42 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
43 SHARED_ACTIVE_SCHEDULER |
|
44 CREATE_OBJECT CBluetoothSocket bluetoothsocket1 |
|
45 CREATE_OBJECT TRfcommSockAddr rfcommsockaddr1 |
|
46 CREATE_OBJECT TBTDevAddr addrlocal |
|
47 COMMAND bluetoothsocket1 RSocketServerConnect |
|
48 COMMAND bluetoothsocket1 NewL BT-GAVDP-PublishedPartner-Passive-Master-SetBTAddresses-0001-NewL_Command02 |
|
49 COMMAND rfcommsockaddr1 Construct |
|
50 COMMAND rfcommsockaddr1 SetFamily BT-GAVDP-PublishedPartner-Passive-Master-SetBTAddresses-0001-SetFamily_Command04 |
|
51 COMMAND rfcommsockaddr1 SetPort BT-GAVDP-PublishedPartner-Passive-Master-SetBTAddresses-0001-SetPort_Command05 |
|
52 COMMAND bluetoothsocket1 Bind BT-GAVDP-PublishedPartner-Passive-Master-SetBTAddresses-0001-Bind_Command06 |
|
53 COMMAND bluetoothsocket1 Listen BT-GAVDP-PublishedPartner-Passive-Master-SetBTAddresses-0001-Listen_Command07 |
|
54 COMMAND addrlocal Construct |
|
55 COMMAND addrlocal OpenHostResolver BT-GAVDP-PublishedPartner-Passive-Master-SetBTAddresses-0001-OpenHostResolver_Command09 |
|
56 COMMAND addrlocal SetHostNameL BT-GAVDP-PublishedPartner-Passive-Master-SetBTAddresses-0001-SetHostNameL_Command10 |
|
57 COMMAND addrlocal SetDiscoverable |
|
58 STORE_ACTIVE_SCHEDULER |
|
59 END_TEST_BLOCK |
|
60 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
61 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
62 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
63 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-SetBTAddresses |
|
64 |
|
65 // **************************************************************************** |
|
66 // RGavdp Tests |
|
67 // **************************************************************************** |
|
68 |
|
69 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0001 |
|
70 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0001 |
|
71 //! @SYMAPI RGavdp::RGavdp(); |
|
72 //! RGavdp::Open(MGavdpUser {ref}, RSocketServ {ref}) |
|
73 //! RGavdp::Close() |
|
74 //! @SYMAuthor Niandong Qiao |
|
75 //! @SYMCreationDate 05-06-2008 |
|
76 //! @SYMTestCaseDesc Create a RGavdp object by default constructor and then open and close it. |
|
77 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
78 //! 2. Open a GAVDP session. |
|
79 //! 3. Closes the GAVDP session. |
|
80 //! @SYMTestStatus Implemented |
|
81 //! @SYMTestPriority High |
|
82 //! @SYMTestExpectedResults 1. RGavdp object was created without causing panic. |
|
83 //! 2. Method RGavdp::Open() return KErrNone. |
|
84 //! 3. Method RGavdp::Close() called without causing panic. |
|
85 //! @SYMTestType CIT |
|
86 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
87 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
88 SHARED_ACTIVE_SCHEDULER |
|
89 CREATE_OBJECT RSocketServ socketserv |
|
90 CREATE_OBJECT RGavdp gavdp |
|
91 |
|
92 COMMAND socketserv RSocketServ |
|
93 COMMAND socketserv Connect |
|
94 COMMAND gavdp new |
|
95 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0001-0001-Open_Command04 |
|
96 |
|
97 COMMAND gavdp Close |
|
98 COMMAND socketserv Close |
|
99 STORE_ACTIVE_SCHEDULER |
|
100 END_TEST_BLOCK |
|
101 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
102 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0001 |
|
103 |
|
104 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0002 |
|
105 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0002 |
|
106 //! @SYMAPI RGavdp::RegisterSEP(TAvdtpSEPInfo {ref}); |
|
107 //! RGavdp::BeginConfiguringLocalSEP(TSEID); |
|
108 //! RGavdp::AddSEPCapability(const TAvdtpServiceCapability {ref}); |
|
109 //! RGavdp::CommitSEPConfiguration(); |
|
110 //! MGavdpUser::GAVDP_ConfigurationConfirm() |
|
111 //! @SYMAuthor Niandong Qiao |
|
112 //! @SYMCreationDate 05-06-2008 |
|
113 //! @SYMTestCaseDesc Configure a local SEP. |
|
114 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
115 //! 2. Open a GAVDP session. |
|
116 //! 3. Register SEP (sink & audio) |
|
117 //! 4. Begin configuration of this SEP |
|
118 //! 5. Add local SEP capabilities: |
|
119 //! 5.1. TAvdtpMediaTransportCapabilities |
|
120 //! 5.2. TAvdtpReportingCapabilities |
|
121 //! 5.3. TAvdtpRecoveryCapabilities |
|
122 //! 5.4. TAvdtpContentProtectionCapabilities |
|
123 //! 5.5. TNonSBCCodecCapabilities |
|
124 //! 6. Commit the local SEP configuration |
|
125 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
126 //! 8. Closes the GAVDP session. |
|
127 //! @SYMTestStatus Implemented |
|
128 //! @SYMTestPriority High |
|
129 //! @SYMTestExpectedResults 1. Method RGavdp::RegisterSEP() return KErrNone. |
|
130 //! 2. Method RGavdp::BeginConfiguringLocalSEP() return KErrNone. |
|
131 //! 3. Method RGavdp::AddSEPCapability() return KErrNone. |
|
132 //! 4. Method RGavdp::CommitSEPConfiguration() called without causing panic. |
|
133 //! 5. The callback function MGavdpUser::GAVDP_ConfigurationConfirm() is called when locally-initiated configuration procedure successfully completes. |
|
134 //! @SYMTestType CIT |
|
135 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
136 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
137 SHARED_ACTIVE_SCHEDULER |
|
138 CREATE_OBJECT RSocketServ socketserv |
|
139 CREATE_OBJECT RGavdp gavdp |
|
140 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
141 CREATE_OBJECT TSEID localseid1 |
|
142 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
143 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
144 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
145 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
146 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
147 |
|
148 COMMAND socketserv RSocketServ |
|
149 COMMAND socketserv Connect |
|
150 COMMAND gavdp new |
|
151 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-Open_Command04 |
|
152 |
|
153 COMMAND localsepinfo1 new |
|
154 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-SetIsSink_Command06 |
|
155 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-SetMediaType_Command07 |
|
156 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-RegisterSEP_Command08 |
|
157 COMMAND localseid1 new |
|
158 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-SEID_Command10 |
|
159 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-BeginConfiguringLocalSEP_Command11 |
|
160 COMMAND captransport1 new |
|
161 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-AddSEPCapability_Command13 |
|
162 COMMAND capreport1 new |
|
163 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-AddSEPCapability_Command15 |
|
164 COMMAND caprecovery1 new |
|
165 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-SetRecoveryType_Command17 |
|
166 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-SetMaxWindowSize_Command18 |
|
167 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-SetMinWindowSize_Command19 |
|
168 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-AddSEPCapability_Command20 |
|
169 COMMAND capprotect1 new |
|
170 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-SetContentProtectionType_Command22 |
|
171 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-SetContentProtectionData_Command23 |
|
172 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-AddSEPCapability_Command24 |
|
173 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-new_Command25 |
|
174 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-AddSEPCapability_Command26 |
|
175 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0002-0001-CommitSEPConfiguration_Command27 |
|
176 OUTSTANDING |
|
177 |
|
178 COMMAND gavdp Close |
|
179 COMMAND socketserv Close |
|
180 STORE_ACTIVE_SCHEDULER |
|
181 END_TEST_BLOCK |
|
182 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
183 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0002 |
|
184 |
|
185 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0003 |
|
186 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0003 |
|
187 //! @SYMAPI RGavdp::Listen (); |
|
188 //! MGavdpUser::GAVDP_ConnectConfirm(const TBTDevAddr {ref}) |
|
189 //! @SYMAuthor Niandong Qiao |
|
190 //! @SYMCreationDate 05-06-2008 |
|
191 //! @SYMTestCaseDesc Accept a connect from a peer device. |
|
192 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
193 //! 2. Open a GAVDP session. |
|
194 //! 3. Register SEP (sink & audio) |
|
195 //! 4. Begin configuration of this SEP |
|
196 //! 5. Add local SEP capabilities: |
|
197 //! 5.1. TAvdtpMediaTransportCapabilities |
|
198 //! 5.2. TAvdtpReportingCapabilities |
|
199 //! 5.3. TAvdtpRecoveryCapabilities |
|
200 //! 5.4. TAvdtpContentProtectionCapabilities |
|
201 //! 5.5. TNonSBCCodecCapabilities |
|
202 //! 6. Commit the local SEP configuration |
|
203 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
204 //! 8. Begin to listen. |
|
205 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
206 //! 10. Closes the GAVDP session. |
|
207 //! @SYMTestStatus Implemented |
|
208 //! @SYMTestPriority High |
|
209 //! @SYMTestExpectedResults 1. Method Listen() return KErrNone. |
|
210 //! 2. The call back function MGavdpUser::GAVDP_ConnectConfirm() is called when a signalling channel has successfully been created. |
|
211 //! @SYMTestType CIT |
|
212 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
213 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
214 SHARED_ACTIVE_SCHEDULER |
|
215 CREATE_OBJECT RSocketServ socketserv |
|
216 CREATE_OBJECT RGavdp gavdp |
|
217 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
218 CREATE_OBJECT TSEID localseid1 |
|
219 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
220 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
221 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
222 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
223 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
224 |
|
225 COMMAND socketserv RSocketServ |
|
226 COMMAND socketserv Connect |
|
227 COMMAND gavdp new |
|
228 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-Open_Command04 |
|
229 |
|
230 COMMAND localsepinfo1 new |
|
231 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-SetIsSink_Command06 |
|
232 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-SetMediaType_Command07 |
|
233 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-RegisterSEP_Command08 |
|
234 COMMAND localseid1 new |
|
235 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-SEID_Command10 |
|
236 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-BeginConfiguringLocalSEP_Command11 |
|
237 COMMAND captransport1 new |
|
238 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-AddSEPCapability_Command13 |
|
239 COMMAND capreport1 new |
|
240 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-AddSEPCapability_Command15 |
|
241 COMMAND caprecovery1 new |
|
242 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-SetRecoveryType_Command17 |
|
243 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-SetMaxWindowSize_Command18 |
|
244 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-SetMinWindowSize_Command19 |
|
245 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-AddSEPCapability_Command20 |
|
246 COMMAND capprotect1 new |
|
247 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-SetContentProtectionType_Command22 |
|
248 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-SetContentProtectionData_Command23 |
|
249 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-AddSEPCapability_Command24 |
|
250 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-new_Command25 |
|
251 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-AddSEPCapability_Command26 |
|
252 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-CommitSEPConfiguration_Command27 |
|
253 OUTSTANDING |
|
254 |
|
255 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0003-0001-Listen_Command29 |
|
256 OUTSTANDING |
|
257 |
|
258 COMMAND gavdp Close |
|
259 COMMAND socketserv Close |
|
260 STORE_ACTIVE_SCHEDULER |
|
261 END_TEST_BLOCK |
|
262 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
263 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0003 |
|
264 |
|
265 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0004 |
|
266 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0004 |
|
267 //! @SYMAPI RGavdp::DiscoverRemoteSEPs(); |
|
268 //! MGavdpUser::GAVDP_SEPDiscovered(const TAvdtpSEPInfo {ref}); |
|
269 //! MGavdpUser::GAVDP_SEPDiscoveryComplete() |
|
270 //! @SYMAuthor Niandong Qiao |
|
271 //! @SYMCreationDate 05-06-2008 |
|
272 //! @SYMTestCaseDesc Set local SEPs and wait for SEP discovering from remote device. |
|
273 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
274 //! 2. Open a GAVDP session. |
|
275 //! 3. Register SEP (sink & audio) |
|
276 //! 4. Begin configuration of this SEP |
|
277 //! 5. Add local SEP capabilities: |
|
278 //! 5.1. TAvdtpMediaTransportCapabilities |
|
279 //! 5.2. TAvdtpReportingCapabilities |
|
280 //! 5.3. TAvdtpRecoveryCapabilities |
|
281 //! 5.4. TAvdtpContentProtectionCapabilities |
|
282 //! 5.5. TNonSBCCodecCapabilities |
|
283 //! 6. Commit the local SEP configuration |
|
284 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
285 //! 8. Begin to listen. |
|
286 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
287 //! 10. Delay 5 second and wait for SEP discovering from remote device. |
|
288 //! 11. Closes the GAVDP session. |
|
289 //! @SYMTestStatus Implemented |
|
290 //! @SYMTestPriority High |
|
291 //! @SYMTestExpectedResults 1. Number of discovered SEPs is as expected. |
|
292 //! @SYMTestType CIT |
|
293 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
294 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
295 SHARED_ACTIVE_SCHEDULER |
|
296 CREATE_OBJECT RSocketServ socketserv |
|
297 CREATE_OBJECT RGavdp gavdp |
|
298 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
299 CREATE_OBJECT TSEID localseid1 |
|
300 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
301 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
302 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
303 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
304 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
305 |
|
306 COMMAND socketserv RSocketServ |
|
307 COMMAND socketserv Connect |
|
308 COMMAND gavdp new |
|
309 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-Open_Command04 |
|
310 |
|
311 COMMAND localsepinfo1 new |
|
312 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-SetIsSink_Command06 |
|
313 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-SetMediaType_Command07 |
|
314 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-RegisterSEP_Command08 |
|
315 COMMAND localseid1 new |
|
316 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-SEID_Command10 |
|
317 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-BeginConfiguringLocalSEP_Command11 |
|
318 COMMAND captransport1 new |
|
319 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-AddSEPCapability_Command13 |
|
320 COMMAND capreport1 new |
|
321 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-AddSEPCapability_Command15 |
|
322 COMMAND caprecovery1 new |
|
323 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-SetRecoveryType_Command17 |
|
324 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-SetMaxWindowSize_Command18 |
|
325 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-SetMinWindowSize_Command19 |
|
326 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-AddSEPCapability_Command20 |
|
327 COMMAND capprotect1 new |
|
328 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-SetContentProtectionType_Command22 |
|
329 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-SetContentProtectionData_Command23 |
|
330 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-AddSEPCapability_Command24 |
|
331 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-new_Command25 |
|
332 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-AddSEPCapability_Command26 |
|
333 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-CommitSEPConfiguration_Command27 |
|
334 OUTSTANDING |
|
335 |
|
336 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0004-0001-Listen_Command29 |
|
337 OUTSTANDING |
|
338 |
|
339 DELAY 5000000 |
|
340 COMMAND gavdp Close |
|
341 COMMAND socketserv Close |
|
342 STORE_ACTIVE_SCHEDULER |
|
343 END_TEST_BLOCK |
|
344 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
345 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0004 |
|
346 |
|
347 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0005 |
|
348 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0005 |
|
349 //! @SYMAPI RGavdp:: GetRemoteSEPCapabilities(TSEID, const TAvdtpServiceCategories {ref}); |
|
350 //! MGavdpUser::GAVDP_SEPCapability(TAvdtpServiceCapability {ptr}); |
|
351 //! MGavdpUser::GAVDP_SEPCapabilityComplete() |
|
352 //! @SYMAuthor Niandong Qiao |
|
353 //! @SYMCreationDate 05-06-2008 |
|
354 //! @SYMTestCaseDesc Set a local SEP and wait for remote device to get capabilities of this SEP. |
|
355 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
356 //! 2. Open a GAVDP session. |
|
357 //! 3. Register SEP (sink & audio) |
|
358 //! 4. Begin configuration of this SEP |
|
359 //! 5. Add local SEP capabilities: |
|
360 //! 5.1. TAvdtpMediaTransportCapabilities |
|
361 //! 5.2. TAvdtpReportingCapabilities |
|
362 //! 5.3. TAvdtpRecoveryCapabilities |
|
363 //! 5.4. TAvdtpContentProtectionCapabilities |
|
364 //! 5.5. TNonSBCCodecCapabilities |
|
365 //! 6. Commit the local SEP configuration |
|
366 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
367 //! 8. Begin to listen. |
|
368 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
369 //! 10. Delay 5 second and wait for remote device to get capabilities of local SEP. |
|
370 //! 11. Closes the GAVDP session. |
|
371 //! @SYMTestStatus Implemented |
|
372 //! @SYMTestPriority High |
|
373 //! @SYMTestExpectedResults 1. Received capabilities at remote device is same as capabilities of local SEP. |
|
374 //! @SYMTestType CIT |
|
375 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
376 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
377 SHARED_ACTIVE_SCHEDULER |
|
378 CREATE_OBJECT RSocketServ socketserv |
|
379 CREATE_OBJECT RGavdp gavdp |
|
380 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
381 CREATE_OBJECT TSEID localseid1 |
|
382 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
383 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
384 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
385 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
386 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
387 |
|
388 COMMAND socketserv RSocketServ |
|
389 COMMAND socketserv Connect |
|
390 COMMAND gavdp new |
|
391 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-Open_Command04 |
|
392 |
|
393 COMMAND localsepinfo1 new |
|
394 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-SetIsSink_Command06 |
|
395 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-SetMediaType_Command07 |
|
396 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-RegisterSEP_Command08 |
|
397 COMMAND localseid1 new |
|
398 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-SEID_Command10 |
|
399 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-BeginConfiguringLocalSEP_Command11 |
|
400 COMMAND captransport1 new |
|
401 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-AddSEPCapability_Command13 |
|
402 COMMAND capreport1 new |
|
403 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-AddSEPCapability_Command15 |
|
404 COMMAND caprecovery1 new |
|
405 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-SetRecoveryType_Command17 |
|
406 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-SetMaxWindowSize_Command18 |
|
407 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-SetMinWindowSize_Command19 |
|
408 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-AddSEPCapability_Command20 |
|
409 COMMAND capprotect1 new |
|
410 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-SetContentProtectionType_Command22 |
|
411 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-SetContentProtectionData_Command23 |
|
412 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-AddSEPCapability_Command24 |
|
413 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-new_Command25 |
|
414 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-AddSEPCapability_Command26 |
|
415 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-CommitSEPConfiguration_Command27 |
|
416 OUTSTANDING |
|
417 |
|
418 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0005-0001-Listen_Command29 |
|
419 OUTSTANDING |
|
420 |
|
421 DELAY 5000000 |
|
422 COMMAND gavdp Close |
|
423 COMMAND socketserv Close |
|
424 STORE_ACTIVE_SCHEDULER |
|
425 END_TEST_BLOCK |
|
426 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
427 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0005 |
|
428 |
|
429 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0006 |
|
430 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0006 |
|
431 //! @SYMAPI MGavdpUser::GAVDP_ConfigurationStartIndication(TSEID, TSEID); |
|
432 //! MGavdpUser::GAVDP_ConfigurationIndication(TAvdtpServiceCapability {ptr}); |
|
433 //! MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
434 //! @SYMAuthor Niandong Qiao |
|
435 //! @SYMCreationDate 05-06-2008 |
|
436 //! @SYMTestCaseDesc Accept remotely initiated configuration of local SEP. |
|
437 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
438 //! 2. Open a GAVDP session. |
|
439 //! 3. Register SEP (sink & audio) |
|
440 //! 4. Begin configuration of this SEP |
|
441 //! 5. Add local SEP capabilities: |
|
442 //! 5.1. TAvdtpMediaTransportCapabilities |
|
443 //! 5.2. TAvdtpReportingCapabilities |
|
444 //! 5.3. TAvdtpRecoveryCapabilities |
|
445 //! 5.4. TAvdtpContentProtectionCapabilities |
|
446 //! 5.5. TNonSBCCodecCapabilities |
|
447 //! 6. Commit the local SEP configuration |
|
448 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
449 //! 8. Begin to listen. |
|
450 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
451 //! 10. Wait for call back to |
|
452 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
453 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
454 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
455 //! 11. Closes the GAVDP session. |
|
456 //! @SYMTestStatus Implemented |
|
457 //! @SYMTestPriority High |
|
458 //! @SYMTestExpectedResults 1. The call back function GAVDP_ConfigurationStartIndication() is called when remote is beginning to configure a local SEP. |
|
459 //! 2. The call back function GAVDP_ConfigurationIndication() is called when each capability is being proposed by the peer during configuration. |
|
460 //! 3. The call back function GAVDP_ConfigurationEndIndication() is called when remotely initiated configuration of local SEP is completed. |
|
461 //! 4. Number of received capabilities is as expected. |
|
462 //! @SYMTestType CIT |
|
463 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
464 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
465 SHARED_ACTIVE_SCHEDULER |
|
466 CREATE_OBJECT RSocketServ socketserv |
|
467 CREATE_OBJECT RGavdp gavdp |
|
468 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
469 CREATE_OBJECT TSEID localseid1 |
|
470 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
471 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
472 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
473 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
474 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
475 |
|
476 COMMAND socketserv RSocketServ |
|
477 COMMAND socketserv Connect |
|
478 COMMAND gavdp new |
|
479 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-Open_Command04 |
|
480 |
|
481 COMMAND localsepinfo1 new |
|
482 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-SetIsSink_Command06 |
|
483 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-SetMediaType_Command07 |
|
484 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-RegisterSEP_Command08 |
|
485 COMMAND localseid1 new |
|
486 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-SEID_Command10 |
|
487 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-BeginConfiguringLocalSEP_Command11 |
|
488 COMMAND captransport1 new |
|
489 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-AddSEPCapability_Command13 |
|
490 COMMAND capreport1 new |
|
491 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-AddSEPCapability_Command15 |
|
492 COMMAND caprecovery1 new |
|
493 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-SetRecoveryType_Command17 |
|
494 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-SetMaxWindowSize_Command18 |
|
495 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-SetMinWindowSize_Command19 |
|
496 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-AddSEPCapability_Command20 |
|
497 COMMAND capprotect1 new |
|
498 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-SetContentProtectionType_Command22 |
|
499 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-SetContentProtectionData_Command23 |
|
500 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-AddSEPCapability_Command24 |
|
501 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-new_Command25 |
|
502 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-AddSEPCapability_Command26 |
|
503 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-CommitSEPConfiguration_Command27 |
|
504 OUTSTANDING |
|
505 |
|
506 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0006-0001-Listen_Command29 |
|
507 OUTSTANDING |
|
508 |
|
509 DELAY 5000000 |
|
510 COMMAND gavdp Close |
|
511 COMMAND socketserv Close |
|
512 STORE_ACTIVE_SCHEDULER |
|
513 END_TEST_BLOCK |
|
514 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
515 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0006 |
|
516 |
|
517 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0007 |
|
518 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0007 |
|
519 //! @SYMAPI MGavdpUser::GAVDP_BearerReady(RSocket, const TAvdtpSockAddr {ref}) |
|
520 //! @SYMAuthor Niandong Qiao |
|
521 //! @SYMCreationDate 05-06-2008 |
|
522 //! @SYMTestCaseDesc Receive remotely cteated bearers. |
|
523 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
524 //! 2. Open a GAVDP session. |
|
525 //! 3. Register SEP (sink & audio) |
|
526 //! 4. Begin configuration of this SEP |
|
527 //! 5. Add local SEP capabilities: |
|
528 //! 5.1. TAvdtpMediaTransportCapabilities |
|
529 //! 5.2. TAvdtpReportingCapabilities |
|
530 //! 5.3. TAvdtpRecoveryCapabilities |
|
531 //! 5.4. TAvdtpContentProtectionCapabilities |
|
532 //! 5.5. TNonSBCCodecCapabilities |
|
533 //! 6. Commit the local SEP configuration |
|
534 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
535 //! 8. Begin to listen. |
|
536 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
537 //! 10. Wait for call back to |
|
538 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
539 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
540 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
541 //! 11. Wait for call back to MGavdpUser::GAVDP_BearerReady(). |
|
542 //! 12. Wait for call back to MGavdpUser::GAVDP_AbortIndication(). |
|
543 //! 13. Close bearers |
|
544 //! 14. Closes the GAVDP session. |
|
545 //! @SYMTestStatus Implemented |
|
546 //! @SYMTestPriority High |
|
547 //! @SYMTestExpectedResults 1. The call back function GAVDP_BearerReady() is called when a bearer has been created for a session in the stream. |
|
548 //! @SYMTestType CIT |
|
549 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
550 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
551 SHARED_ACTIVE_SCHEDULER |
|
552 CREATE_OBJECT RSocketServ socketserv |
|
553 CREATE_OBJECT RGavdp gavdp |
|
554 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
555 CREATE_OBJECT TSEID localseid1 |
|
556 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
557 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
558 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
559 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
560 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
561 |
|
562 COMMAND socketserv RSocketServ |
|
563 COMMAND socketserv Connect |
|
564 COMMAND gavdp new |
|
565 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-Open_Command04 |
|
566 |
|
567 COMMAND localsepinfo1 new |
|
568 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-SetIsSink_Command06 |
|
569 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-SetMediaType_Command07 |
|
570 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-RegisterSEP_Command08 |
|
571 COMMAND localseid1 new |
|
572 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-SEID_Command10 |
|
573 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-BeginConfiguringLocalSEP_Command11 |
|
574 COMMAND captransport1 new |
|
575 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-AddSEPCapability_Command13 |
|
576 COMMAND capreport1 new |
|
577 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-AddSEPCapability_Command15 |
|
578 COMMAND caprecovery1 new |
|
579 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-SetRecoveryType_Command17 |
|
580 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-SetMaxWindowSize_Command18 |
|
581 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-SetMinWindowSize_Command19 |
|
582 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-AddSEPCapability_Command20 |
|
583 COMMAND capprotect1 new |
|
584 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-SetContentProtectionType_Command22 |
|
585 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-SetContentProtectionData_Command23 |
|
586 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-AddSEPCapability_Command24 |
|
587 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-new_Command25 |
|
588 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-AddSEPCapability_Command26 |
|
589 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-CommitSEPConfiguration_Command27 |
|
590 OUTSTANDING |
|
591 |
|
592 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0007-0001-Listen_Command29 |
|
593 OUTSTANDING |
|
594 |
|
595 COMMAND gavdp CloseBearerSockets |
|
596 |
|
597 COMMAND gavdp Close |
|
598 COMMAND socketserv Close |
|
599 STORE_ACTIVE_SCHEDULER |
|
600 END_TEST_BLOCK |
|
601 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
602 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0007 |
|
603 |
|
604 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0008 |
|
605 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0008 |
|
606 //! @SYMAPI MGavdpUser::GAVDP_StartIndication(TSEID); |
|
607 //! MGavdpUser::GAVDP_AbortIndication(TSEID) |
|
608 //! @SYMAuthor Niandong Qiao |
|
609 //! @SYMCreationDate 05-06-2008 |
|
610 //! @SYMTestCaseDesc Accept start stream and abort stream from remote device. |
|
611 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
612 //! 2. Open a GAVDP session. |
|
613 //! 3. Register SEP (sink & audio) |
|
614 //! 4. Begin configuration of this SEP |
|
615 //! 5. Add local SEP capabilities: |
|
616 //! 5.1. TAvdtpMediaTransportCapabilities |
|
617 //! 5.2. TAvdtpReportingCapabilities |
|
618 //! 5.3. TAvdtpRecoveryCapabilities |
|
619 //! 5.4. TAvdtpContentProtectionCapabilities |
|
620 //! 5.5. TNonSBCCodecCapabilities |
|
621 //! 6. Commit the local SEP configuration |
|
622 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
623 //! 8. Begin to listen. |
|
624 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
625 //! 10. Wait for call back to |
|
626 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
627 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
628 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
629 //! 11. Wait for call back to MGavdpUser::GAVDP_BearerReady(). |
|
630 //! 12. Wait for call back to MGavdpUser::GAVDP_StartIndication(). |
|
631 //! 13. Wait for call back to MGavdpUser::GAVDP_AbortIndication(). |
|
632 //! 14. Close bearers |
|
633 //! 15. Closes the GAVDP session. |
|
634 //! @SYMTestStatus Implemented |
|
635 //! @SYMTestPriority High |
|
636 //! @SYMTestExpectedResults 1. The call back function GAVDP_StartIndication() is called when the remote is trying to Start a stream. |
|
637 //! 2. The call back function GAVDP_AbortIndication() is called when the remote has Aborted the stream. |
|
638 //! @SYMTestType CIT |
|
639 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
640 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
641 SHARED_ACTIVE_SCHEDULER |
|
642 CREATE_OBJECT RSocketServ socketserv |
|
643 CREATE_OBJECT RGavdp gavdp |
|
644 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
645 CREATE_OBJECT TSEID localseid1 |
|
646 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
647 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
648 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
649 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
650 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
651 |
|
652 COMMAND socketserv RSocketServ |
|
653 COMMAND socketserv Connect |
|
654 COMMAND gavdp new |
|
655 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-Open_Command04 |
|
656 |
|
657 COMMAND localsepinfo1 new |
|
658 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-SetIsSink_Command06 |
|
659 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-SetMediaType_Command07 |
|
660 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-RegisterSEP_Command08 |
|
661 COMMAND localseid1 new |
|
662 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-SEID_Command10 |
|
663 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-BeginConfiguringLocalSEP_Command11 |
|
664 COMMAND captransport1 new |
|
665 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-AddSEPCapability_Command13 |
|
666 COMMAND capreport1 new |
|
667 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-AddSEPCapability_Command15 |
|
668 COMMAND caprecovery1 new |
|
669 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-SetRecoveryType_Command17 |
|
670 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-SetMaxWindowSize_Command18 |
|
671 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-SetMinWindowSize_Command19 |
|
672 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-AddSEPCapability_Command20 |
|
673 COMMAND capprotect1 new |
|
674 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-SetContentProtectionType_Command22 |
|
675 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-SetContentProtectionData_Command23 |
|
676 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-AddSEPCapability_Command24 |
|
677 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-new_Command25 |
|
678 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-AddSEPCapability_Command26 |
|
679 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-CommitSEPConfiguration_Command27 |
|
680 OUTSTANDING |
|
681 |
|
682 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0008-0001-Listen_Command29 |
|
683 OUTSTANDING |
|
684 |
|
685 DELAY 5000000 |
|
686 COMMAND gavdp CloseBearerSockets |
|
687 |
|
688 COMMAND gavdp Close |
|
689 COMMAND socketserv Close |
|
690 STORE_ACTIVE_SCHEDULER |
|
691 END_TEST_BLOCK |
|
692 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
693 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0008 |
|
694 |
|
695 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0009 |
|
696 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0009 |
|
697 //! @SYMAPI RGavdp::CreateBearerSockets(TSEID, TBool, TBool) |
|
698 //! @SYMAuthor Niandong Qiao |
|
699 //! @SYMCreationDate 05-06-2008 |
|
700 //! @SYMTestCaseDesc Receive data through created socket. |
|
701 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
702 //! 2. Open a GAVDP session. |
|
703 //! 3. Register SEP (sink & audio) |
|
704 //! 4. Begin configuration of this SEP |
|
705 //! 5. Add local SEP capabilities: |
|
706 //! 5.1. TAvdtpMediaTransportCapabilities |
|
707 //! 5.2. TAvdtpReportingCapabilities |
|
708 //! 5.3. TAvdtpRecoveryCapabilities |
|
709 //! 5.4. TAvdtpContentProtectionCapabilities |
|
710 //! 5.5. TNonSBCCodecCapabilities |
|
711 //! 6. Commit the local SEP configuration |
|
712 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
713 //! 8. Begin to listen. |
|
714 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
715 //! 10. Wait for call back to |
|
716 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
717 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
718 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
719 //! 11. Wait for call back to MGavdpUser::GAVDP_BearerReady(). |
|
720 //! 12. Wait for call back to MGavdpUser::GAVDP_StartIndication(). |
|
721 //! 13. Read data. |
|
722 //! 14. Wait for call back to RunL(). |
|
723 //! 15. Wait for call back to MGavdpUser::GAVDP_AbortIndication(). |
|
724 //! 16. Close bearers. |
|
725 //! 17. Closes the GAVDP session. |
|
726 //! @SYMTestStatus Implemented |
|
727 //! @SYMTestPriority High |
|
728 //! @SYMTestExpectedResults 1. Received data is as expected. |
|
729 //! @SYMTestType CIT |
|
730 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
731 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
732 SHARED_ACTIVE_SCHEDULER |
|
733 CREATE_OBJECT RSocketServ socketserv |
|
734 CREATE_OBJECT RGavdp gavdp |
|
735 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
736 CREATE_OBJECT TSEID localseid1 |
|
737 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
738 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
739 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
740 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
741 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
742 |
|
743 COMMAND socketserv RSocketServ |
|
744 COMMAND socketserv Connect |
|
745 COMMAND gavdp new |
|
746 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-Open_Command04 |
|
747 |
|
748 COMMAND localsepinfo1 new |
|
749 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-SetIsSink_Command06 |
|
750 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-SetMediaType_Command07 |
|
751 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-RegisterSEP_Command08 |
|
752 COMMAND localseid1 new |
|
753 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-SEID_Command10 |
|
754 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-BeginConfiguringLocalSEP_Command11 |
|
755 COMMAND captransport1 new |
|
756 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-AddSEPCapability_Command13 |
|
757 COMMAND capreport1 new |
|
758 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-AddSEPCapability_Command15 |
|
759 COMMAND caprecovery1 new |
|
760 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-SetRecoveryType_Command17 |
|
761 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-SetMaxWindowSize_Command18 |
|
762 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-SetMinWindowSize_Command19 |
|
763 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-AddSEPCapability_Command20 |
|
764 COMMAND capprotect1 new |
|
765 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-SetContentProtectionType_Command22 |
|
766 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-SetContentProtectionData_Command23 |
|
767 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-AddSEPCapability_Command24 |
|
768 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-new_Command25 |
|
769 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-AddSEPCapability_Command26 |
|
770 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-CommitSEPConfiguration_Command27 |
|
771 OUTSTANDING |
|
772 |
|
773 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-Listen_Command29 |
|
774 OUTSTANDING |
|
775 |
|
776 COMMAND gavdp Read BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-Read_Command31 |
|
777 OUTSTANDING |
|
778 |
|
779 COMMAND gavdp IncOutstanding BT-GAVDP-PublishedPartner-Passive-Master-0009-0001-IncOutstanding_Command33 |
|
780 OUTSTANDING |
|
781 |
|
782 COMMAND gavdp CloseBearerSockets |
|
783 |
|
784 COMMAND gavdp Close |
|
785 COMMAND socketserv Close |
|
786 STORE_ACTIVE_SCHEDULER |
|
787 END_TEST_BLOCK |
|
788 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
789 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0009 |
|
790 |
|
791 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0010 |
|
792 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0010 |
|
793 //! @SYMAPI MGavdpUser::GAVDP_SuspendIndication(TSEID) |
|
794 //! @SYMAuthor Niandong Qiao |
|
795 //! @SYMCreationDate 05-06-2008 |
|
796 //! @SYMTestCaseDesc Accept suspend stream and restart stream from remote device. |
|
797 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
798 //! 2. Open a GAVDP session. |
|
799 //! 3. Register SEP (sink & audio) |
|
800 //! 4. Begin configuration of this SEP |
|
801 //! 5. Add local SEP capabilities: |
|
802 //! 5.1. TAvdtpMediaTransportCapabilities |
|
803 //! 5.2. TAvdtpReportingCapabilities |
|
804 //! 5.3. TAvdtpRecoveryCapabilities |
|
805 //! 5.4. TAvdtpContentProtectionCapabilities |
|
806 //! 5.5. TNonSBCCodecCapabilities |
|
807 //! 6. Commit the local SEP configuration |
|
808 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
809 //! 8. Begin to listen. |
|
810 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
811 //! 10. Wait for call back to |
|
812 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
813 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
814 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
815 //! 11. Wait for call back to MGavdpUser::GAVDP_BearerReady(). |
|
816 //! 12. Wait for call back to MGavdpUser::GAVDP_StartIndication(). |
|
817 //! 13. Wait for call back to MGavdpUser::GAVDP_SuspendIndication() |
|
818 //! 14. Wait for call back to MGavdpUser::GAVDP_StartIndication() |
|
819 //! 15. Wait for call back to MGavdpUser::GAVDP_AbortIndication(). |
|
820 //! 16. Close bearers |
|
821 //! 17. Closes the GAVDP session. |
|
822 //! @SYMTestStatus Implemented |
|
823 //! @SYMTestPriority High |
|
824 //! @SYMTestExpectedResults 1. The call back function GAVDP_SuspendIndication() is called when the remote is trying to Suspend a stream. |
|
825 //! 2. The call back function GAVDP_StartIndication() is called when the remote is trying to Start a stream. |
|
826 //! @SYMTestType CIT |
|
827 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
828 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
829 SHARED_ACTIVE_SCHEDULER |
|
830 CREATE_OBJECT RSocketServ socketserv |
|
831 CREATE_OBJECT RGavdp gavdp |
|
832 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
833 CREATE_OBJECT TSEID localseid1 |
|
834 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
835 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
836 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
837 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
838 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
839 |
|
840 COMMAND socketserv RSocketServ |
|
841 COMMAND socketserv Connect |
|
842 COMMAND gavdp new |
|
843 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-Open_Command04 |
|
844 |
|
845 COMMAND localsepinfo1 new |
|
846 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-SetIsSink_Command06 |
|
847 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-SetMediaType_Command07 |
|
848 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-RegisterSEP_Command08 |
|
849 COMMAND localseid1 new |
|
850 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-SEID_Command10 |
|
851 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-BeginConfiguringLocalSEP_Command11 |
|
852 COMMAND captransport1 new |
|
853 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-AddSEPCapability_Command13 |
|
854 COMMAND capreport1 new |
|
855 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-AddSEPCapability_Command15 |
|
856 COMMAND caprecovery1 new |
|
857 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-SetRecoveryType_Command17 |
|
858 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-SetMaxWindowSize_Command18 |
|
859 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-SetMinWindowSize_Command19 |
|
860 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-AddSEPCapability_Command20 |
|
861 COMMAND capprotect1 new |
|
862 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-SetContentProtectionType_Command22 |
|
863 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-SetContentProtectionData_Command23 |
|
864 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-AddSEPCapability_Command24 |
|
865 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-new_Command25 |
|
866 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-AddSEPCapability_Command26 |
|
867 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-CommitSEPConfiguration_Command27 |
|
868 OUTSTANDING |
|
869 |
|
870 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0010-0001-Listen_Command29 |
|
871 OUTSTANDING |
|
872 |
|
873 DELAY 5000000 |
|
874 COMMAND gavdp CloseBearerSockets |
|
875 |
|
876 COMMAND gavdp Close |
|
877 COMMAND socketserv Close |
|
878 STORE_ACTIVE_SCHEDULER |
|
879 END_TEST_BLOCK |
|
880 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
881 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0010 |
|
882 |
|
883 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0011 |
|
884 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0011 |
|
885 //! @SYMAPI MGavdpUser::GAVDP_SecurityControlIndication(TSEID, TDes8 {ref}) |
|
886 //! @SYMAuthor Niandong Qiao |
|
887 //! @SYMCreationDate 05-06-2008 |
|
888 //! @SYMTestCaseDesc Accept security control information from remote device and don not change the security data. |
|
889 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
890 //! 2. Open a GAVDP session. |
|
891 //! 3. Register SEP (sink & audio) |
|
892 //! 4. Begin configuration of this SEP |
|
893 //! 5. Add local SEP capabilities: |
|
894 //! 5.1. TAvdtpMediaTransportCapabilities |
|
895 //! 5.2. TAvdtpReportingCapabilities |
|
896 //! 5.3. TAvdtpRecoveryCapabilities |
|
897 //! 5.4. TAvdtpContentProtectionCapabilities |
|
898 //! 5.5. TNonSBCCodecCapabilities |
|
899 //! 6. Commit the local SEP configuration |
|
900 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
901 //! 8. Begin to listen. |
|
902 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
903 //! 10. Wait for call back to MGavdpUser::GAVDP_SecurityControlIndication() |
|
904 //! 11. Closes the GAVDP session. |
|
905 //! @SYMTestStatus Implemented |
|
906 //! @SYMTestPriority High |
|
907 //! @SYMTestExpectedResults 1. The call back function GAVDP_SecurityControlIndication() is called when the remote is sending Security Control information. |
|
908 //! 2. Received data is as expected. |
|
909 //! @SYMTestType CIT |
|
910 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
911 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
912 SHARED_ACTIVE_SCHEDULER |
|
913 CREATE_OBJECT RSocketServ socketserv |
|
914 CREATE_OBJECT RGavdp gavdp |
|
915 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
916 CREATE_OBJECT TSEID localseid1 |
|
917 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
918 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
919 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
920 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
921 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
922 |
|
923 COMMAND socketserv RSocketServ |
|
924 COMMAND socketserv Connect |
|
925 COMMAND gavdp new |
|
926 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-Open_Command04 |
|
927 |
|
928 COMMAND localsepinfo1 new |
|
929 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-SetIsSink_Command06 |
|
930 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-SetMediaType_Command07 |
|
931 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-RegisterSEP_Command08 |
|
932 COMMAND localseid1 new |
|
933 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-SEID_Command10 |
|
934 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-BeginConfiguringLocalSEP_Command11 |
|
935 COMMAND captransport1 new |
|
936 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-AddSEPCapability_Command13 |
|
937 COMMAND capreport1 new |
|
938 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-AddSEPCapability_Command15 |
|
939 COMMAND caprecovery1 new |
|
940 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-SetRecoveryType_Command17 |
|
941 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-SetMaxWindowSize_Command18 |
|
942 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-SetMinWindowSize_Command19 |
|
943 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-AddSEPCapability_Command20 |
|
944 COMMAND capprotect1 new |
|
945 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-SetContentProtectionType_Command22 |
|
946 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-SetContentProtectionData_Command23 |
|
947 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-AddSEPCapability_Command24 |
|
948 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-new_Command25 |
|
949 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-AddSEPCapability_Command26 |
|
950 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-CommitSEPConfiguration_Command27 |
|
951 OUTSTANDING |
|
952 |
|
953 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0011-0001-Listen_Command29 |
|
954 OUTSTANDING |
|
955 |
|
956 DELAY 5000000 |
|
957 |
|
958 COMMAND gavdp Close |
|
959 COMMAND socketserv Close |
|
960 STORE_ACTIVE_SCHEDULER |
|
961 END_TEST_BLOCK |
|
962 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
963 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0011 |
|
964 |
|
965 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0012 |
|
966 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0012 |
|
967 //! @SYMAPI MGavdpUser::GAVDP_SecurityControlIndication(TSEID, TDes8 {ref}) |
|
968 //! @SYMAuthor Niandong Qiao |
|
969 //! @SYMCreationDate 05-06-2008 |
|
970 //! @SYMTestCaseDesc Accept security control information from remote device and change the security data. |
|
971 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
972 //! 2. Open a GAVDP session. |
|
973 //! 3. Register SEP (sink & audio) |
|
974 //! 4. Begin configuration of this SEP |
|
975 //! 5. Add local SEP capabilities: |
|
976 //! 5.1. TAvdtpMediaTransportCapabilities |
|
977 //! 5.2. TAvdtpReportingCapabilities |
|
978 //! 5.3. TAvdtpRecoveryCapabilities |
|
979 //! 5.4. TAvdtpContentProtectionCapabilities |
|
980 //! 5.5. TNonSBCCodecCapabilities |
|
981 //! 6. Commit the local SEP configuration |
|
982 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
983 //! 8. Begin to listen. |
|
984 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
985 //! 10. Wait for call back to MGavdpUser::GAVDP_SecurityControlIndication() |
|
986 //! 11. Closes the GAVDP session. |
|
987 //! @SYMTestStatus Implemented |
|
988 //! @SYMTestPriority High |
|
989 //! @SYMTestExpectedResults 1. The call back function GAVDP_SecurityControlIndication() is called when the remote is sending Security Control information. |
|
990 //! 2. Received data is as expected. |
|
991 //! @SYMTestType CIT |
|
992 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
993 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
994 SHARED_ACTIVE_SCHEDULER |
|
995 CREATE_OBJECT RSocketServ socketserv |
|
996 CREATE_OBJECT RGavdp gavdp |
|
997 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
998 CREATE_OBJECT TSEID localseid1 |
|
999 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
1000 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
1001 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
1002 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
1003 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
1004 |
|
1005 COMMAND socketserv RSocketServ |
|
1006 COMMAND socketserv Connect |
|
1007 COMMAND gavdp new |
|
1008 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-Open_Command04 |
|
1009 |
|
1010 COMMAND localsepinfo1 new |
|
1011 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-SetIsSink_Command06 |
|
1012 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-SetMediaType_Command07 |
|
1013 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-RegisterSEP_Command08 |
|
1014 COMMAND localseid1 new |
|
1015 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-SEID_Command10 |
|
1016 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-BeginConfiguringLocalSEP_Command11 |
|
1017 COMMAND captransport1 new |
|
1018 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-AddSEPCapability_Command13 |
|
1019 COMMAND capreport1 new |
|
1020 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-AddSEPCapability_Command15 |
|
1021 COMMAND caprecovery1 new |
|
1022 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-SetRecoveryType_Command17 |
|
1023 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-SetMaxWindowSize_Command18 |
|
1024 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-SetMinWindowSize_Command19 |
|
1025 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-AddSEPCapability_Command20 |
|
1026 COMMAND capprotect1 new |
|
1027 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-SetContentProtectionType_Command22 |
|
1028 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-SetContentProtectionData_Command23 |
|
1029 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-AddSEPCapability_Command24 |
|
1030 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-new_Command25 |
|
1031 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-AddSEPCapability_Command26 |
|
1032 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-CommitSEPConfiguration_Command27 |
|
1033 OUTSTANDING |
|
1034 |
|
1035 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0012-0001-Listen_Command29 |
|
1036 OUTSTANDING |
|
1037 |
|
1038 DELAY 5000000 |
|
1039 |
|
1040 COMMAND gavdp Close |
|
1041 COMMAND socketserv Close |
|
1042 STORE_ACTIVE_SCHEDULER |
|
1043 END_TEST_BLOCK |
|
1044 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
1045 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0012 |
|
1046 |
|
1047 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0013 |
|
1048 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0013 |
|
1049 //! @SYMAPI MGavdpUser::GAVDP_ReleaseIndication(TSEID) |
|
1050 //! @SYMAuthor Niandong Qiao |
|
1051 //! @SYMCreationDate 05-06-2008 |
|
1052 //! @SYMTestCaseDesc Callback to MGavdpUser::GAVDP_ReleaseIndication(TSEID) when the remote end has Released a stream. |
|
1053 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
1054 //! 2. Open a GAVDP session. |
|
1055 //! 3. Register SEP (sink & audio) |
|
1056 //! 4. Begin configuration of this SEP |
|
1057 //! 5. Add local SEP capabilities: |
|
1058 //! 5.1. TAvdtpMediaTransportCapabilities |
|
1059 //! 5.2. TAvdtpReportingCapabilities |
|
1060 //! 5.3. TAvdtpRecoveryCapabilities |
|
1061 //! 5.4. TAvdtpContentProtectionCapabilities |
|
1062 //! 5.5. TNonSBCCodecCapabilities |
|
1063 //! 6. Commit the local SEP configuration |
|
1064 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
1065 //! 8. Begin to listen. |
|
1066 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
1067 //! 10. Wait for call back to |
|
1068 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
1069 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
1070 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
1071 //! 11. Wait for call back to MGavdpUser::GAVDP_BearerReady(). |
|
1072 //! 12. Wait for call back to MGavdpUser::GAVDP_StartIndication(). |
|
1073 //! 13. Read data. |
|
1074 //! 14. Wait for call back to RunL(). |
|
1075 //! 15. Wait for call back to MGavdpUser::GAVDP_ReleaseIndication(). |
|
1076 //! 16. Closes the GAVDP session. |
|
1077 //! @SYMTestStatus Implemented |
|
1078 //! @SYMTestPriority High |
|
1079 //! @SYMTestExpectedResults 1. The call back function MGavdpUser::GAVDP_ReleaseIndication() is called when the remote end has Released a stream. |
|
1080 //! @SYMTestType CIT |
|
1081 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
1082 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
1083 SHARED_ACTIVE_SCHEDULER |
|
1084 CREATE_OBJECT RSocketServ socketserv |
|
1085 CREATE_OBJECT RGavdp gavdp |
|
1086 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
1087 CREATE_OBJECT TSEID localseid1 |
|
1088 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
1089 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
1090 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
1091 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
1092 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
1093 |
|
1094 COMMAND socketserv RSocketServ |
|
1095 COMMAND socketserv Connect |
|
1096 COMMAND gavdp new |
|
1097 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-Open_Command04 |
|
1098 |
|
1099 COMMAND localsepinfo1 new |
|
1100 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-SetIsSink_Command06 |
|
1101 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-SetMediaType_Command07 |
|
1102 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-RegisterSEP_Command08 |
|
1103 COMMAND localseid1 new |
|
1104 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-SEID_Command10 |
|
1105 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-BeginConfiguringLocalSEP_Command11 |
|
1106 COMMAND captransport1 new |
|
1107 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-AddSEPCapability_Command13 |
|
1108 COMMAND capreport1 new |
|
1109 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-AddSEPCapability_Command15 |
|
1110 COMMAND caprecovery1 new |
|
1111 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-SetRecoveryType_Command17 |
|
1112 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-SetMaxWindowSize_Command18 |
|
1113 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-SetMinWindowSize_Command19 |
|
1114 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-AddSEPCapability_Command20 |
|
1115 COMMAND capprotect1 new |
|
1116 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-SetContentProtectionType_Command22 |
|
1117 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-SetContentProtectionData_Command23 |
|
1118 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-AddSEPCapability_Command24 |
|
1119 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-new_Command25 |
|
1120 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-AddSEPCapability_Command26 |
|
1121 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-CommitSEPConfiguration_Command27 |
|
1122 OUTSTANDING |
|
1123 |
|
1124 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-Listen_Command29 |
|
1125 OUTSTANDING |
|
1126 |
|
1127 COMMAND gavdp Read BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-Read_Command31 |
|
1128 OUTSTANDING |
|
1129 |
|
1130 COMMAND gavdp IncOutstanding BT-GAVDP-PublishedPartner-Passive-Master-0013-0001-IncOutstanding_Command33 |
|
1131 OUTSTANDING |
|
1132 |
|
1133 COMMAND gavdp Close |
|
1134 COMMAND socketserv Close |
|
1135 STORE_ACTIVE_SCHEDULER |
|
1136 END_TEST_BLOCK |
|
1137 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
1138 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0013 |
|
1139 |
|
1140 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0014 |
|
1141 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0014 |
|
1142 //! @SYMAPI RGavdp::Cancel() |
|
1143 //! @SYMAuthor Niandong Qiao |
|
1144 //! @SYMCreationDate 05-06-2008 |
|
1145 //! @SYMTestCaseDesc Cancel a command of start stream. |
|
1146 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
1147 //! 2. Open a GAVDP session. |
|
1148 //! 3. Register SEP (sink & audio) |
|
1149 //! 4. Begin configuration of this SEP |
|
1150 //! 5. Add local SEP capabilities: |
|
1151 //! 5.1. TAvdtpMediaTransportCapabilities |
|
1152 //! 5.2. TAvdtpReportingCapabilities |
|
1153 //! 5.3. TAvdtpRecoveryCapabilities |
|
1154 //! 5.4. TAvdtpContentProtectionCapabilities |
|
1155 //! 5.5. TNonSBCCodecCapabilities |
|
1156 //! 6. Commit the local SEP configuration |
|
1157 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
1158 //! 8. Begin to listen. |
|
1159 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
1160 //! 10. Wait for call back to |
|
1161 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
1162 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
1163 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
1164 //! 11. Wait for call back to MGavdpUser::GAVDP_BearerReady(). |
|
1165 //! 12. Wait for call back to MGavdpUser::GAVDP_StartIndication(). |
|
1166 //! 13. Wait for call back to MGavdpUser::GAVDP_AbortIndication(). |
|
1167 //! 14. Close bearers |
|
1168 //! 15. Closes the GAVDP session. |
|
1169 //! @SYMTestStatus Implemented |
|
1170 //! @SYMTestPriority High |
|
1171 //! @SYMTestExpectedResults 1. The call back function GAVDP_StartIndication() is called when the remote end has canceled a start stream command. |
|
1172 //! @SYMTestType CIT |
|
1173 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
1174 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
1175 SHARED_ACTIVE_SCHEDULER |
|
1176 CREATE_OBJECT RSocketServ socketserv |
|
1177 CREATE_OBJECT RGavdp gavdp |
|
1178 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
1179 CREATE_OBJECT TSEID localseid1 |
|
1180 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
1181 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
1182 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
1183 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
1184 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
1185 |
|
1186 COMMAND socketserv RSocketServ |
|
1187 COMMAND socketserv Connect |
|
1188 COMMAND gavdp new |
|
1189 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-Open_Command04 |
|
1190 |
|
1191 COMMAND localsepinfo1 new |
|
1192 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-SetIsSink_Command06 |
|
1193 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-SetMediaType_Command07 |
|
1194 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-RegisterSEP_Command08 |
|
1195 COMMAND localseid1 new |
|
1196 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-SEID_Command10 |
|
1197 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-BeginConfiguringLocalSEP_Command11 |
|
1198 COMMAND captransport1 new |
|
1199 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-AddSEPCapability_Command13 |
|
1200 COMMAND capreport1 new |
|
1201 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-AddSEPCapability_Command15 |
|
1202 COMMAND caprecovery1 new |
|
1203 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-SetRecoveryType_Command17 |
|
1204 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-SetMaxWindowSize_Command18 |
|
1205 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-SetMinWindowSize_Command19 |
|
1206 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-AddSEPCapability_Command20 |
|
1207 COMMAND capprotect1 new |
|
1208 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-SetContentProtectionType_Command22 |
|
1209 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-SetContentProtectionData_Command23 |
|
1210 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-AddSEPCapability_Command24 |
|
1211 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-new_Command25 |
|
1212 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-AddSEPCapability_Command26 |
|
1213 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-CommitSEPConfiguration_Command27 |
|
1214 OUTSTANDING |
|
1215 |
|
1216 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0014-0001-Listen_Command29 |
|
1217 OUTSTANDING |
|
1218 |
|
1219 DELAY 5000000 |
|
1220 COMMAND gavdp CloseBearerSockets |
|
1221 |
|
1222 COMMAND gavdp Close |
|
1223 COMMAND socketserv Close |
|
1224 STORE_ACTIVE_SCHEDULER |
|
1225 END_TEST_BLOCK |
|
1226 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
1227 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0014 |
|
1228 |
|
1229 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0016 |
|
1230 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0016 |
|
1231 //! @SYMAPI MGavdpUser::GAVDP_Error(TInt, const TDesC8 {ref}) |
|
1232 //! @SYMAuthor Niandong Qiao |
|
1233 //! @SYMCreationDate 05-06-2008 |
|
1234 //! @SYMTestCaseDesc GAVDP error occurs. |
|
1235 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
1236 //! 2. Open a GAVDP session. |
|
1237 //! 3. Register SEP (sink & audio) |
|
1238 //! 4. Begin configuration of this SEP |
|
1239 //! 5. Add local SEP capabilities: |
|
1240 //! 5.1. TAvdtpMediaTransportCapabilities |
|
1241 //! 5.2. TAvdtpReportingCapabilities |
|
1242 //! 5.3. TAvdtpRecoveryCapabilities |
|
1243 //! 5.4. TAvdtpContentProtectionCapabilities |
|
1244 //! 5.5. TNonSBCCodecCapabilities |
|
1245 //! 6. Commit the local SEP configuration |
|
1246 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
1247 //! 8. Begin to listen. |
|
1248 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
1249 //! 10. Wait for call back to |
|
1250 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
1251 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
1252 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
1253 //! 11. Wait for call back to MGavdpUser::GAVDP_BearerReady(). |
|
1254 //! 12. Wait for call back to MGavdpUser::GAVDP_AbortIndication(). |
|
1255 //! 13. Close bearers |
|
1256 //! 14. Closes the GAVDP session. |
|
1257 //! @SYMTestStatus Implemented |
|
1258 //! @SYMTestPriority High |
|
1259 //! @SYMTestExpectedResults 1. The call back function GAVDP_Error() is called when a GAVDP error occurs. |
|
1260 //! @SYMTestType CIT |
|
1261 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
1262 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
1263 SHARED_ACTIVE_SCHEDULER |
|
1264 CREATE_OBJECT RSocketServ socketserv |
|
1265 CREATE_OBJECT RGavdp gavdp |
|
1266 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
1267 CREATE_OBJECT TSEID localseid1 |
|
1268 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
1269 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
1270 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
1271 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
1272 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
1273 |
|
1274 COMMAND socketserv RSocketServ |
|
1275 COMMAND socketserv Connect |
|
1276 COMMAND gavdp new |
|
1277 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-Open_Command04 |
|
1278 |
|
1279 COMMAND localsepinfo1 new |
|
1280 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-SetIsSink_Command06 |
|
1281 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-SetMediaType_Command07 |
|
1282 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-RegisterSEP_Command08 |
|
1283 COMMAND localseid1 new |
|
1284 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-SEID_Command10 |
|
1285 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-BeginConfiguringLocalSEP_Command11 |
|
1286 COMMAND captransport1 new |
|
1287 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-AddSEPCapability_Command13 |
|
1288 COMMAND capreport1 new |
|
1289 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-AddSEPCapability_Command15 |
|
1290 COMMAND caprecovery1 new |
|
1291 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-SetRecoveryType_Command17 |
|
1292 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-SetMaxWindowSize_Command18 |
|
1293 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-SetMinWindowSize_Command19 |
|
1294 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-AddSEPCapability_Command20 |
|
1295 COMMAND capprotect1 new |
|
1296 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-SetContentProtectionType_Command22 |
|
1297 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-SetContentProtectionData_Command23 |
|
1298 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-AddSEPCapability_Command24 |
|
1299 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-new_Command25 |
|
1300 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-AddSEPCapability_Command26 |
|
1301 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-CommitSEPConfiguration_Command27 |
|
1302 OUTSTANDING |
|
1303 |
|
1304 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0016-0001-Listen_Command29 |
|
1305 OUTSTANDING |
|
1306 |
|
1307 DELAY 5000000 |
|
1308 COMMAND gavdp CloseBearerSockets |
|
1309 |
|
1310 COMMAND gavdp Close |
|
1311 COMMAND socketserv Close |
|
1312 STORE_ACTIVE_SCHEDULER |
|
1313 END_TEST_BLOCK |
|
1314 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
1315 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0016 |
|
1316 |
|
1317 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0017 |
|
1318 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0017 |
|
1319 //! @SYMAPI RGavdp::Connect(const TBTDevAddr {ref}) |
|
1320 //! @SYMAuthor Niandong Qiao |
|
1321 //! @SYMCreationDate 05-06-2008 |
|
1322 //! @SYMTestCaseDesc Negative test, connect to a not ready remote device. |
|
1323 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
1324 //! 2. Open a GAVDP session. |
|
1325 //! 3. Register SEP (sink & audio) |
|
1326 //! 4. Begin configuration of this SEP |
|
1327 //! 5. Add local SEP capabilities: |
|
1328 //! 5.1. TAvdtpMediaTransportCapabilities |
|
1329 //! 5.2. TAvdtpReportingCapabilities |
|
1330 //! 5.3. TAvdtpRecoveryCapabilities |
|
1331 //! 5.4. TAvdtpContentProtectionCapabilities |
|
1332 //! 5.5. TNonSBCCodecCapabilities |
|
1333 //! 6. Commit the local SEP configuration |
|
1334 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
1335 //! 8. Closes the GAVDP session. |
|
1336 //! @SYMTestStatus Implemented |
|
1337 //! @SYMTestPriority High |
|
1338 //! @SYMTestExpectedResults 1. The call back function MGavdpUser::GAVDP_ConnectConfirm() is not called. |
|
1339 //! @SYMTestType CIT |
|
1340 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
1341 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
1342 SHARED_ACTIVE_SCHEDULER |
|
1343 CREATE_OBJECT RSocketServ socketserv |
|
1344 CREATE_OBJECT RGavdp gavdp |
|
1345 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
1346 CREATE_OBJECT TSEID localseid1 |
|
1347 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
1348 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
1349 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
1350 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
1351 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
1352 |
|
1353 COMMAND socketserv RSocketServ |
|
1354 COMMAND socketserv Connect |
|
1355 COMMAND gavdp new |
|
1356 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-Open_Command04 |
|
1357 |
|
1358 COMMAND localsepinfo1 new |
|
1359 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-SetIsSink_Command06 |
|
1360 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-SetMediaType_Command07 |
|
1361 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-RegisterSEP_Command08 |
|
1362 COMMAND localseid1 new |
|
1363 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-SEID_Command10 |
|
1364 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-BeginConfiguringLocalSEP_Command11 |
|
1365 COMMAND captransport1 new |
|
1366 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-AddSEPCapability_Command13 |
|
1367 COMMAND capreport1 new |
|
1368 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-AddSEPCapability_Command15 |
|
1369 COMMAND caprecovery1 new |
|
1370 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-SetRecoveryType_Command17 |
|
1371 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-SetMaxWindowSize_Command18 |
|
1372 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-SetMinWindowSize_Command19 |
|
1373 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-AddSEPCapability_Command20 |
|
1374 COMMAND capprotect1 new |
|
1375 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-SetContentProtectionType_Command22 |
|
1376 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-SetContentProtectionData_Command23 |
|
1377 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-AddSEPCapability_Command24 |
|
1378 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-new_Command25 |
|
1379 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-AddSEPCapability_Command26 |
|
1380 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0017-0001-CommitSEPConfiguration_Command27 |
|
1381 OUTSTANDING |
|
1382 |
|
1383 DELAY 5000000 |
|
1384 |
|
1385 COMMAND gavdp Close |
|
1386 COMMAND socketserv Close |
|
1387 STORE_ACTIVE_SCHEDULER |
|
1388 END_TEST_BLOCK |
|
1389 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
1390 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0017 |
|
1391 |
|
1392 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0018 |
|
1393 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0018 |
|
1394 //! @SYMAPI RGavdp::CommitSEPConfiguration() |
|
1395 //! @SYMAuthor Niandong Qiao |
|
1396 //! @SYMCreationDate 05-06-2008 |
|
1397 //! @SYMTestCaseDesc Reject remotely initiated configuration of local SEP. |
|
1398 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
1399 //! 2. Open a GAVDP session. |
|
1400 //! 3. Register SEP (sink & audio) |
|
1401 //! 4. Begin configuration of this SEP |
|
1402 //! 5. Add local SEP capabilities: |
|
1403 //! 5.1. TAvdtpMediaTransportCapabilities |
|
1404 //! 5.2. TAvdtpReportingCapabilities |
|
1405 //! 5.3. TAvdtpRecoveryCapabilities |
|
1406 //! 5.4. TAvdtpContentProtectionCapabilities |
|
1407 //! 5.5. TNonSBCCodecCapabilities |
|
1408 //! 6. Commit the local SEP configuration |
|
1409 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
1410 //! 8. Begin to listen. |
|
1411 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
1412 //! 10. Wait for call back to |
|
1413 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
1414 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
1415 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication(), at here reject it with -2. |
|
1416 //! 11. Closes the GAVDP session. |
|
1417 //! @SYMTestStatus Implemented |
|
1418 //! @SYMTestPriority High |
|
1419 //! @SYMTestExpectedResults 1. The call back function GAVDP_ConfigurationEndIndication() is called when remotely initiated configuration of local SEP is completed. |
|
1420 //! @SYMTestType CIT |
|
1421 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
1422 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
1423 SHARED_ACTIVE_SCHEDULER |
|
1424 CREATE_OBJECT RSocketServ socketserv |
|
1425 CREATE_OBJECT RGavdp gavdp |
|
1426 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
1427 CREATE_OBJECT TSEID localseid1 |
|
1428 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
1429 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
1430 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
1431 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
1432 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
1433 |
|
1434 COMMAND socketserv RSocketServ |
|
1435 COMMAND socketserv Connect |
|
1436 COMMAND gavdp new |
|
1437 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-Open_Command04 |
|
1438 |
|
1439 COMMAND localsepinfo1 new |
|
1440 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-SetIsSink_Command06 |
|
1441 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-SetMediaType_Command07 |
|
1442 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-RegisterSEP_Command08 |
|
1443 COMMAND localseid1 new |
|
1444 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-SEID_Command10 |
|
1445 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-BeginConfiguringLocalSEP_Command11 |
|
1446 COMMAND captransport1 new |
|
1447 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-AddSEPCapability_Command13 |
|
1448 COMMAND capreport1 new |
|
1449 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-AddSEPCapability_Command15 |
|
1450 COMMAND caprecovery1 new |
|
1451 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-SetRecoveryType_Command17 |
|
1452 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-SetMaxWindowSize_Command18 |
|
1453 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-SetMinWindowSize_Command19 |
|
1454 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-AddSEPCapability_Command20 |
|
1455 COMMAND capprotect1 new |
|
1456 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-SetContentProtectionType_Command22 |
|
1457 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-SetContentProtectionData_Command23 |
|
1458 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-AddSEPCapability_Command24 |
|
1459 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-new_Command25 |
|
1460 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-AddSEPCapability_Command26 |
|
1461 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-CommitSEPConfiguration_Command27 |
|
1462 OUTSTANDING |
|
1463 |
|
1464 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0018-0001-Listen_Command29 |
|
1465 OUTSTANDING |
|
1466 |
|
1467 DELAY 5000000 |
|
1468 COMMAND gavdp Close |
|
1469 COMMAND socketserv Close |
|
1470 STORE_ACTIVE_SCHEDULER |
|
1471 END_TEST_BLOCK |
|
1472 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
1473 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0018 |
|
1474 |
|
1475 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0019 |
|
1476 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0019 |
|
1477 //! @SYMAPI RGavdp::Listen() |
|
1478 //! @SYMAuthor Niandong Qiao |
|
1479 //! @SYMCreationDate 05-06-2008 |
|
1480 //! @SYMTestCaseDesc Negative test, call listen() again after local SEP has been connected. |
|
1481 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
1482 //! 2. Open a GAVDP session. |
|
1483 //! 3. Register SEP (sink & audio) |
|
1484 //! 4. Begin configuration of this SEP |
|
1485 //! 5. Add local SEP capabilities: |
|
1486 //! 5.1. TAvdtpMediaTransportCapabilities |
|
1487 //! 5.2. TAvdtpReportingCapabilities |
|
1488 //! 5.3. TAvdtpRecoveryCapabilities |
|
1489 //! 5.4. TAvdtpContentProtectionCapabilities |
|
1490 //! 5.5. TNonSBCCodecCapabilities |
|
1491 //! 6. Commit the local SEP configuration |
|
1492 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
1493 //! 8. Begin to listen. |
|
1494 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
1495 //! 10. Call listen() again. |
|
1496 //! 11. Closes the GAVDP session. |
|
1497 //! @SYMTestStatus Implemented |
|
1498 //! @SYMTestPriority High |
|
1499 //! @SYMTestExpectedResults 1. Method Listen() return -14 when call it again. |
|
1500 //! @SYMTestType CIT |
|
1501 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
1502 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
1503 SHARED_ACTIVE_SCHEDULER |
|
1504 CREATE_OBJECT RSocketServ socketserv |
|
1505 CREATE_OBJECT RGavdp gavdp |
|
1506 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
1507 CREATE_OBJECT TSEID localseid1 |
|
1508 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
1509 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
1510 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
1511 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
1512 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
1513 |
|
1514 COMMAND socketserv RSocketServ |
|
1515 COMMAND socketserv Connect |
|
1516 COMMAND gavdp new |
|
1517 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-Open_Command04 |
|
1518 |
|
1519 COMMAND localsepinfo1 new |
|
1520 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-SetIsSink_Command06 |
|
1521 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-SetMediaType_Command07 |
|
1522 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-RegisterSEP_Command08 |
|
1523 COMMAND localseid1 new |
|
1524 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-SEID_Command10 |
|
1525 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-BeginConfiguringLocalSEP_Command11 |
|
1526 COMMAND captransport1 new |
|
1527 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-AddSEPCapability_Command13 |
|
1528 COMMAND capreport1 new |
|
1529 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-AddSEPCapability_Command15 |
|
1530 COMMAND caprecovery1 new |
|
1531 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-SetRecoveryType_Command17 |
|
1532 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-SetMaxWindowSize_Command18 |
|
1533 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-SetMinWindowSize_Command19 |
|
1534 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-AddSEPCapability_Command20 |
|
1535 COMMAND capprotect1 new |
|
1536 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-SetContentProtectionType_Command22 |
|
1537 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-SetContentProtectionData_Command23 |
|
1538 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-AddSEPCapability_Command24 |
|
1539 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-new_Command25 |
|
1540 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-AddSEPCapability_Command26 |
|
1541 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-CommitSEPConfiguration_Command27 |
|
1542 OUTSTANDING |
|
1543 |
|
1544 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0019-0001-Listen_Command29 |
|
1545 OUTSTANDING |
|
1546 COMMAND !Error=-14 gavdp Listen |
|
1547 |
|
1548 COMMAND gavdp Close |
|
1549 COMMAND socketserv Close |
|
1550 STORE_ACTIVE_SCHEDULER |
|
1551 END_TEST_BLOCK |
|
1552 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
1553 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0019 |
|
1554 |
|
1555 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0020 |
|
1556 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0020 |
|
1557 //! @SYMAPI MGavdpUser::GAVDP_ConfigurationStartIndication(TSEID, TSEID); |
|
1558 //! MGavdpUser::GAVDP_ConfigurationIndication(TAvdtpServiceCapability {ptr}); |
|
1559 //! MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
1560 //! @SYMAuthor Niandong Qiao |
|
1561 //! @SYMCreationDate 05-06-2008 |
|
1562 //! @SYMTestCaseDesc Accept remotely initiated reconfiguration of local SEP. |
|
1563 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
1564 //! 2. Open a GAVDP session. |
|
1565 //! 3. Register SEP (sink & audio) |
|
1566 //! 4. Begin configuration of this SEP |
|
1567 //! 5. Add local SEP capabilities: |
|
1568 //! 5.1. TAvdtpMediaTransportCapabilities |
|
1569 //! 5.2. TAvdtpReportingCapabilities |
|
1570 //! 5.3. TAvdtpRecoveryCapabilities |
|
1571 //! 5.4. TAvdtpContentProtectionCapabilities |
|
1572 //! 5.5. TNonSBCCodecCapabilities |
|
1573 //! 6. Commit the local SEP configuration |
|
1574 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
1575 //! 8. Begin to listen. |
|
1576 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
1577 //! 10. Wait for call back to |
|
1578 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
1579 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
1580 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
1581 //! 11. Wait for call back to MGavdpUser::GAVDP_AbortIndication(). |
|
1582 //! 12. Wait for call back to |
|
1583 //! 12.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
1584 //! 12.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
1585 //! 12.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
1586 //! 13. Closes the GAVDP session. |
|
1587 //! @SYMTestStatus Implemented |
|
1588 //! @SYMTestPriority High |
|
1589 //! @SYMTestExpectedResults 1. The call back function GAVDP_ConfigurationStartIndication() is called when remote is beginning to configure/reconfigure a local SEP. |
|
1590 //! 2. The call back function GAVDP_ConfigurationIndication() is called when each capability is being proposed by the peer during configuration/reconfiguration. |
|
1591 //! 3. The call back function GAVDP_ConfigurationEndIndication() is called when remotely initiated configuration/reconfiguration of local SEP is completed. |
|
1592 //! 4. Number of received capabilities is as expected. |
|
1593 //! @SYMTestType CIT |
|
1594 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
1595 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
1596 SHARED_ACTIVE_SCHEDULER |
|
1597 CREATE_OBJECT RSocketServ socketserv |
|
1598 CREATE_OBJECT RGavdp gavdp |
|
1599 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
1600 CREATE_OBJECT TSEID localseid1 |
|
1601 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
1602 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
1603 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
1604 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
1605 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
1606 |
|
1607 COMMAND socketserv RSocketServ |
|
1608 COMMAND socketserv Connect |
|
1609 COMMAND gavdp new |
|
1610 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-Open_Command04 |
|
1611 |
|
1612 COMMAND localsepinfo1 new |
|
1613 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-SetIsSink_Command06 |
|
1614 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-SetMediaType_Command07 |
|
1615 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-RegisterSEP_Command08 |
|
1616 COMMAND localseid1 new |
|
1617 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-SEID_Command10 |
|
1618 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-BeginConfiguringLocalSEP_Command11 |
|
1619 COMMAND captransport1 new |
|
1620 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-AddSEPCapability_Command13 |
|
1621 COMMAND capreport1 new |
|
1622 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-AddSEPCapability_Command15 |
|
1623 COMMAND caprecovery1 new |
|
1624 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-SetRecoveryType_Command17 |
|
1625 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-SetMaxWindowSize_Command18 |
|
1626 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-SetMinWindowSize_Command19 |
|
1627 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-AddSEPCapability_Command20 |
|
1628 COMMAND capprotect1 new |
|
1629 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-SetContentProtectionType_Command22 |
|
1630 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-SetContentProtectionData_Command23 |
|
1631 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-AddSEPCapability_Command24 |
|
1632 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-new_Command25 |
|
1633 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-AddSEPCapability_Command26 |
|
1634 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-CommitSEPConfiguration_Command27 |
|
1635 OUTSTANDING |
|
1636 |
|
1637 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0020-0001-Listen_Command29 |
|
1638 OUTSTANDING |
|
1639 |
|
1640 DELAY 5000000 |
|
1641 COMMAND gavdp Close |
|
1642 COMMAND socketserv Close |
|
1643 STORE_ACTIVE_SCHEDULER |
|
1644 END_TEST_BLOCK |
|
1645 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
1646 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0020 |
|
1647 |
|
1648 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0021 |
|
1649 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0021 |
|
1650 //! @SYMAPI MGavdpUser::GAVDP_BearerReady(RSocket, const TAvdtpSockAddr {ref}) |
|
1651 //! @SYMAuthor Niandong Qiao |
|
1652 //! @SYMCreationDate 05-06-2008 |
|
1653 //! @SYMTestCaseDesc Receive remotely cteated transport bearer. |
|
1654 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
1655 //! 2. Open a GAVDP session. |
|
1656 //! 3. Register SEP (sink & audio). |
|
1657 //! 4. Begin configuration of this SEP. |
|
1658 //! 5. Add local SEP capabilities: |
|
1659 //! 5.1. TAvdtpMediaTransportCapabilities |
|
1660 //! 5.2. TAvdtpReportingCapabilities |
|
1661 //! 5.3. TAvdtpRecoveryCapabilities |
|
1662 //! 5.4. TAvdtpContentProtectionCapabilities |
|
1663 //! 5.5. TNonSBCCodecCapabilities |
|
1664 //! 6. Commit the local SEP configuration. |
|
1665 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm(). |
|
1666 //! 8. Begin to listen. |
|
1667 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
1668 //! 10. Wait for call back to |
|
1669 //! 10.1. MGavdpUser::GAVDP_ConfigurationStartIndication() |
|
1670 //! 10.2. MGavdpUser::GAVDP_ConfigurationIndication() |
|
1671 //! 10.3. MGavdpUser::GAVDP_ConfigurationEndIndication() |
|
1672 //! 11. Wait for call back to MGavdpUser::GAVDP_BearerReady(). |
|
1673 //! 12. Wait for call back to MGavdpUser::GAVDP_AbortIndication(). |
|
1674 //! 13. Close bearer. |
|
1675 //! 14. Closes the GAVDP session. |
|
1676 //! @SYMTestStatus Implemented |
|
1677 //! @SYMTestPriority High |
|
1678 //! @SYMTestExpectedResults 1. The call back function GAVDP_BearerReady() is called when the transport bearer has been created for a session in the stream. |
|
1679 //! @SYMTestType CIT |
|
1680 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
1681 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
1682 SHARED_ACTIVE_SCHEDULER |
|
1683 CREATE_OBJECT RSocketServ socketserv |
|
1684 CREATE_OBJECT RGavdp gavdp |
|
1685 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
1686 CREATE_OBJECT TSEID localseid1 |
|
1687 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
1688 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
1689 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
1690 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
1691 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
1692 |
|
1693 COMMAND socketserv RSocketServ |
|
1694 COMMAND socketserv Connect |
|
1695 COMMAND gavdp new |
|
1696 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-Open_Command04 |
|
1697 |
|
1698 COMMAND localsepinfo1 new |
|
1699 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-SetIsSink_Command06 |
|
1700 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-SetMediaType_Command07 |
|
1701 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-RegisterSEP_Command08 |
|
1702 COMMAND localseid1 new |
|
1703 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-SEID_Command10 |
|
1704 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-BeginConfiguringLocalSEP_Command11 |
|
1705 COMMAND captransport1 new |
|
1706 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-AddSEPCapability_Command13 |
|
1707 COMMAND capreport1 new |
|
1708 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-AddSEPCapability_Command15 |
|
1709 COMMAND caprecovery1 new |
|
1710 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-SetRecoveryType_Command17 |
|
1711 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-SetMaxWindowSize_Command18 |
|
1712 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-SetMinWindowSize_Command19 |
|
1713 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-AddSEPCapability_Command20 |
|
1714 COMMAND capprotect1 new |
|
1715 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-SetContentProtectionType_Command22 |
|
1716 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-SetContentProtectionData_Command23 |
|
1717 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-AddSEPCapability_Command24 |
|
1718 COMMAND capnonsbc1 new BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-new_Command25 |
|
1719 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-AddSEPCapability_Command26 |
|
1720 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-CommitSEPConfiguration_Command27 |
|
1721 OUTSTANDING |
|
1722 |
|
1723 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0021-0001-Listen_Command29 |
|
1724 OUTSTANDING |
|
1725 |
|
1726 COMMAND gavdp CloseBearerSockets |
|
1727 |
|
1728 COMMAND gavdp Close |
|
1729 COMMAND socketserv Close |
|
1730 STORE_ACTIVE_SCHEDULER |
|
1731 END_TEST_BLOCK |
|
1732 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
1733 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0021 |
|
1734 |
|
1735 START_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0022 |
|
1736 //! @SYMTestCaseID BT-GAVDP-PublishedPartner-Passive-Master-0022 |
|
1737 //! @SYMAPI RGavdp:: GetRemoteSEPCapabilities(TSEID, const TAvdtpServiceCategories {ref}); |
|
1738 //! MGavdpUser::GAVDP_SEPCapability(TAvdtpServiceCapability {ptr}); |
|
1739 //! MGavdpUser::GAVDP_SEPCapabilityComplete() |
|
1740 //! @SYMAuthor Niandong Qiao |
|
1741 //! @SYMCreationDate 05-06-2008 |
|
1742 //! @SYMTestCaseDesc Set a local SEP and wait for remote device to get capabilities of this SEP. |
|
1743 //! @SYMTestActions 1. Create a RGavdp object by default constructor. |
|
1744 //! 2. Open a GAVDP session. |
|
1745 //! 3. Register SEP (sink & audio) |
|
1746 //! 4. Begin configuration of this SEP |
|
1747 //! 5. Add local SEP capabilities: |
|
1748 //! 5.1. TAvdtpMediaTransportCapabilities |
|
1749 //! 5.2. TAvdtpReportingCapabilities |
|
1750 //! 5.3. TAvdtpRecoveryCapabilities |
|
1751 //! 5.4. TAvdtpContentProtectionCapabilities |
|
1752 //! 5.5. TNonSBCCodecCapabilities |
|
1753 //! 6. Commit the local SEP configuration |
|
1754 //! 7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm() |
|
1755 //! 8. Begin to listen. |
|
1756 //! 9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm(). |
|
1757 //! 10. Delay 5 second and wait for remote device to get capabilities of local SEP. |
|
1758 //! 11. Closes the GAVDP session. |
|
1759 //! @SYMTestStatus Implemented |
|
1760 //! @SYMTestPriority High |
|
1761 //! @SYMTestExpectedResults 1. Received capabilities at remote device is same as capabilities of local SEP. |
|
1762 //! @SYMTestType CIT |
|
1763 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase |
|
1764 START_TEST_BLOCK 100 t_btgavdpapi \bluetooth\gavdp\bt-gavdp-publishedpartner-passive-master.ini |
|
1765 SHARED_ACTIVE_SCHEDULER |
|
1766 CREATE_OBJECT RSocketServ socketserv |
|
1767 CREATE_OBJECT RGavdp gavdp |
|
1768 CREATE_OBJECT TAvdtpSEPInfo localsepinfo1 |
|
1769 CREATE_OBJECT TSEID localseid1 |
|
1770 CREATE_OBJECT TAvdtpMediaTransportCapabilities captransport1 |
|
1771 CREATE_OBJECT TAvdtpReportingCapabilities capreport1 |
|
1772 CREATE_OBJECT TAvdtpRecoveryCapabilities caprecovery1 |
|
1773 CREATE_OBJECT TAvdtpContentProtectionCapabilities capprotect1 |
|
1774 CREATE_OBJECT TNonSBCCodecCapabilities capnonsbc1 |
|
1775 |
|
1776 COMMAND socketserv RSocketServ |
|
1777 COMMAND socketserv Connect |
|
1778 COMMAND gavdp new |
|
1779 COMMAND gavdp Open BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-Open_Command04 |
|
1780 |
|
1781 COMMAND localsepinfo1 new |
|
1782 COMMAND localsepinfo1 SetIsSink BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-SetIsSink_Command06 |
|
1783 COMMAND localsepinfo1 SetMediaType BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-SetMediaType_Command07 |
|
1784 COMMAND gavdp RegisterSEP BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-RegisterSEP_Command08 |
|
1785 COMMAND localseid1 new |
|
1786 COMMAND localsepinfo1 SEID BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-SEID_Command10 |
|
1787 COMMAND gavdp BeginConfiguringLocalSEP BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-BeginConfiguringLocalSEP_Command11 |
|
1788 COMMAND captransport1 new |
|
1789 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-AddSEPCapability_Command13 |
|
1790 COMMAND capreport1 new |
|
1791 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-AddSEPCapability_Command15 |
|
1792 COMMAND caprecovery1 new |
|
1793 COMMAND caprecovery1 SetRecoveryType BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-SetRecoveryType_Command17 |
|
1794 COMMAND caprecovery1 SetMaxWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-SetMaxWindowSize_Command18 |
|
1795 COMMAND caprecovery1 SetMinWindowSize BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-SetMinWindowSize_Command19 |
|
1796 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-AddSEPCapability_Command20 |
|
1797 COMMAND capprotect1 new |
|
1798 COMMAND capprotect1 SetContentProtectionType BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-SetContentProtectionType_Command22 |
|
1799 COMMAND capprotect1 SetContentProtectionData BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-SetContentProtectionData_Command23 |
|
1800 COMMAND gavdp AddSEPCapability BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-AddSEPCapability_Command24 |
|
1801 COMMAND gavdp CommitSEPConfiguration BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-CommitSEPConfiguration_Command25 |
|
1802 OUTSTANDING |
|
1803 |
|
1804 COMMAND gavdp Listen BT-GAVDP-PublishedPartner-Passive-Master-0022-0001-Listen_Command27 |
|
1805 OUTSTANDING |
|
1806 |
|
1807 DELAY 5000000 |
|
1808 COMMAND gavdp Close |
|
1809 COMMAND socketserv Close |
|
1810 STORE_ACTIVE_SCHEDULER |
|
1811 END_TEST_BLOCK |
|
1812 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult |
|
1813 END_TESTCASE BT-GAVDP-PublishedPartner-Passive-Master-0022 |
|
1814 |
|
1815 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveExecutionResultSamplesDatabaseActiveSlave |
|
1816 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StopTDService |
|
1817 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StopSyncService |