bluetoothapitest/bluetoothsvs/T_BTSdpAPI/scripts/BTSDP-Lists-PublicApi-Active-Slave.script
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     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_BTSdpAPI
       
    19 //! @SYMScriptTestEnvironment	This test script requires a basic ROM with bluetooth dongle.
       
    20 //! @SYMScriptDescription		Tests all public elements of the RSdpDatabase class
       
    21 //! 							as a means of confidence that the API works as expected. 
       
    22 //!								The purpose is to provide a regression test suite of PublishedAll APIs for 
       
    23 //!								BT SDP related classes.
       
    24 //! 							Negative testing is performed to confirm that correct errors are returned 
       
    25 //!								when incorrect parameters are given. The tests are fully automated.
       
    26 //! @SYMAuthor					Symbio
       
    27 //! @SYMCreationDate			16/01/2006
       
    28 ///////////////////////////////////////////////////////////////////////////////
       
    29 
       
    30 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\
       
    31 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\
       
    32 
       
    33 LOAD_SUITE	T_BTSdpAPI	-SharedData
       
    34 DELAY		500
       
    35 
       
    36 // ****************************************************************************
       
    37 // Set up BT Addresses
       
    38 // ****************************************************************************
       
    39 
       
    40 START_TESTCASE	BTSDP-Lists-PublicApi-Passive-SetBTAddresses
       
    41 
       
    42 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0001
       
    43 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
    44 			SHARED_ACTIVE_SCHEDULER
       
    45 			CREATE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    46 			CREATE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
    47 			COMMAND		CBluetoothSocket1	RSocketServerConnect
       
    48 			COMMAND		CBluetoothSocket1	NewL		BTSDP-Lists-PublicApi-Active-SetBTAddresses-0001command2NewL
       
    49 			COMMAND		TBTServiceSecurity1	Construct
       
    50 			STORE	CBluetoothSocket1	
       
    51 			STORE	TBTServiceSecurity1	
       
    52 			STORE_ACTIVE_SCHEDULER
       
    53 	END_TEST_BLOCK
       
    54 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0001
       
    55 	START_SYNCHRONISED_TESTCASE BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0002		
       
    56 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
    57 			SHARED_ACTIVE_SCHEDULER
       
    58 			CREATE_OBJECT	TRfcommSockAddr	TRfcommSockAddr1	
       
    59 			CREATE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
    60 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    61 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
    62 			COMMAND		TBTDevAddrRemote	Construct
       
    63 			COMMAND		TBTDevAddrRemote	OpenHostResolver		BTSDP-Lists-PublicApi-Active-SetBTAddresses-0002command3OpenHostResolver
       
    64 			COMMAND		TBTDevAddrRemote	SetHostNameL		BTSDP-Lists-PublicApi-Active-SetBTAddresses-0002command4SetHostNameL
       
    65 			COMMAND		TBTDevAddrRemote	GetDeviceAddress		BTSDP-Lists-PublicApi-Active-SetBTAddresses-0002command5GetDeviceAddress
       
    66 			OUTSTANDING
       
    67 			COMMAND		TRfcommSockAddr1	Construct
       
    68 			COMMAND		TRfcommSockAddr1	SetSecurity		BTSDP-Lists-PublicApi-Active-SetBTAddresses-0002command8SetSecurity
       
    69 			COMMAND		TRfcommSockAddr1	SetBTAddr		BTSDP-Lists-PublicApi-Active-SetBTAddresses-0002command9SetBTAddr
       
    70 			COMMAND		TRfcommSockAddr1	BTAddr		BTSDP-Lists-PublicApi-Active-SetBTAddresses-0002command10BTAddr
       
    71 			COMMAND		TRfcommSockAddr1	SetPort		BTSDP-Lists-PublicApi-Active-SetBTAddresses-0002command11SetPort
       
    72 			STORE	CBluetoothSocket1	
       
    73 			STORE	TBTServiceSecurity1	
       
    74 			STORE	TBTDevAddrRemote	
       
    75 	END_TEST_BLOCK
       
    76 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Passive-SetBTAddresses-0002
       
    77 END_TESTCASE	BTSDP-Lists-PublicApi-Passive-SetBTAddresses
       
    78 
       
    79 
       
    80 // ****************************************************************************
       
    81 // Agent Side - CSdpAttrVAlueString API tests
       
    82 // ****************************************************************************	
       
    83 
       
    84 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1001
       
    85 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1001
       
    86 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
    87 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
    88 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
    89 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
    90 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
    91 //!													NewDEAL(), Type(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
    92 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
    93 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
    94 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
    95 //!								2. Add some attribute ids into the idmatchlist
       
    96 //!								3. Construct a CSdpSearchPattern object
       
    97 //!								4. Add service UUID into searchpattern
       
    98 //!								5. Create a CSdpAttrValueDEA object and verify object type itself
       
    99 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   100 //!								   Verify the resulting err code is KErrNone.
       
   101 //!								7. Set the service record filter with the serchpattern
       
   102 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   103 //!								   Verify the resulting err code is KErrNone.
       
   104 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   105 //!								   Verify the number of service records being found.
       
   106 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   107 //!								    Verify the resulting err code is KErrNone.
       
   108 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   109 //!									the result of attribute request comes back in the form of a list. 
       
   110 //!								12. Switch to CSdpAttrValueDEA data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   111 //!									Verify the resulting err code is KErrNone.
       
   112 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   113 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   114 //!
       
   115 //! @SYMTestStatus				Implemented
       
   116 //! @SYMTestPriority			Low
       
   117 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   118 //! @SYMTestType				CIT
       
   119 
       
   120 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1001-0001
       
   121 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   122 			SHARED_ACTIVE_SCHEDULER
       
   123 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   124 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   125 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   126 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   127 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   128 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   129 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   130 			COMMAND		TBTAttridmatchlist1	NewL
       
   131 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1001-0001command3AddL
       
   132 			COMMAND		TBTSearchpattern1	NewL
       
   133 			COMMAND		TBTSearchpattern1	ConstructL
       
   134 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1001-0001command7AddL
       
   135 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   136 			COMMAND		TBTAttrValueDEA1	Type		BTSDP-Lists-PublicApi-Active-1001-0001command10Type
       
   137 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1001-0001command12NewL
       
   138 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1001-0001command13SetRecordFilterL
       
   139 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1001-0001command14NextRecordRequestL
       
   140 			OUTSTANDING	1000000
       
   141 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1001-0001command16AttributeRequestL
       
   142 			OUTSTANDING	1000000
       
   143 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1001-0001command19AppendValueL
       
   144 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1001-0001command20AcceptVisitorL
       
   145 			STORE	CBluetoothSocket1	
       
   146 			STORE	TBTServiceSecurity1	
       
   147 			STORE	TBTDevAddrRemote	
       
   148 			STORE_ACTIVE_SCHEDULER
       
   149 	END_TEST_BLOCK
       
   150 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1001-0001
       
   151 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1001-0002
       
   152 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1001-0002
       
   153 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1001
       
   154 
       
   155 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1002
       
   156 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1002
       
   157 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
   158 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   159 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   160 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   161 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   162 //!													NewDEAL(), StartListL(), EndListL(), BuildBooleanL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   163 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   164 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   165 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   166 //!								2. Add some attribute ids into the idmatchlist
       
   167 //!								3. Construct a CSdpSearchPattern object
       
   168 //!								4. Add service UUID into searchpattern
       
   169 //!								5. Create a CSdpAttrValueDEA object and add some boolean values to the object
       
   170 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   171 //!								   Verify the resulting err code is KErrNone.
       
   172 //!								7. Set the service record filter with the serchpattern
       
   173 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   174 //!								   Verify the resulting err code is KErrNone.
       
   175 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   176 //!								   Verify the number of service records being found.
       
   177 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   178 //!								    Verify the resulting err code is KErrNone.
       
   179 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   180 //!									the result of attribute request comes back in the form of a list. 
       
   181 //!								12. Switch to CSdpAttrValueDEA data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   182 //!									Verify the resulting err code is KErrNone.
       
   183 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   184 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   185 //!
       
   186 //! @SYMTestStatus				Implemented
       
   187 //! @SYMTestPriority			Low
       
   188 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   189 //! @SYMTestType				CIT
       
   190 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1002-0001	
       
   191 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   192 			SHARED_ACTIVE_SCHEDULER
       
   193 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   194 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   195 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   196 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   197 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   198 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   199 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   200 			COMMAND		TBTAttridmatchlist1	NewL
       
   201 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1002-0001command3AddL
       
   202 			COMMAND		TBTSearchpattern1	NewL
       
   203 			COMMAND		TBTSearchpattern1	ConstructL
       
   204 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1002-0001command7AddL
       
   205 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   206 			COMMAND		TBTAttrValueDEA1	StartListL
       
   207 			COMMAND		TBTAttrValueDEA1	BuildBooleanL		BTSDP-Lists-PublicApi-Active-1002-0001command11BuildBooleanL
       
   208 			COMMAND		TBTAttrValueDEA1	BuildBooleanL		BTSDP-Lists-PublicApi-Active-1002-0001command12BuildBooleanL
       
   209 			COMMAND		TBTAttrValueDEA1	EndListL
       
   210 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1002-0001command15NewL
       
   211 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1002-0001command16SetRecordFilterL
       
   212 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1002-0001command17NextRecordRequestL
       
   213 			OUTSTANDING	1000000
       
   214 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1002-0001command19AttributeRequestL
       
   215 			OUTSTANDING	1000000
       
   216 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1002-0001command22AppendValueL
       
   217 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1002-0001command23AcceptVisitorL
       
   218 			STORE	CBluetoothSocket1	
       
   219 			STORE	TBTServiceSecurity1	
       
   220 			STORE	TBTDevAddrRemote	
       
   221 			STORE_ACTIVE_SCHEDULER
       
   222 	END_TEST_BLOCK
       
   223 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1002-0001
       
   224 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1002-0002
       
   225 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1002-0002
       
   226 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1002
       
   227 
       
   228 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1003
       
   229 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1003
       
   230 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
   231 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   232 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   233 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   234 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   235 //!													NewDEAL(), BuildDEAL(), StartListL(), EndListL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   236 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   237 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   238 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   239 //!								2. Add some attribute ids into the idmatchlist
       
   240 //!								3. Construct a CSdpSearchPattern object
       
   241 //!								4. Add service UUID into searchpattern
       
   242 //!								5. Create a CSdpAttrValueDEA object
       
   243 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   244 //!								   Verify the resulting err code is KErrNone.
       
   245 //!								7. Set the service record filter with the serchpattern
       
   246 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   247 //!								   Verify the resulting err code is KErrNone.
       
   248 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   249 //!								   Verify the number of service records being found.
       
   250 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   251 //!								   Verify the resulting err code is KErrNone.
       
   252 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   253 //!									the result of attribute request comes back in the form of a list. 
       
   254 //!								12. Switch to CSdpAttrValueDEA data wrapper. Add a DEA element to the list. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   255 //!									Verify the resulting err code is KErrNone.
       
   256 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   257 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   258 //!
       
   259 //! @SYMTestStatus				Implemented
       
   260 //! @SYMTestPriority			Low
       
   261 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   262 //! @SYMTestType				CIT
       
   263 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1003-0001	
       
   264 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   265 			SHARED_ACTIVE_SCHEDULER
       
   266 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   267 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   268 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   269 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   270 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   271 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   272 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   273 			COMMAND		TBTAttridmatchlist1	NewL
       
   274 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1003-0001command3AddL
       
   275 			COMMAND		TBTSearchpattern1	NewL
       
   276 			COMMAND		TBTSearchpattern1	ConstructL
       
   277 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1003-0001command7AddL
       
   278 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   279 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1003-0001command11NewL
       
   280 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1003-0001command12SetRecordFilterL
       
   281 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1003-0001command13NextRecordRequestL
       
   282 			OUTSTANDING	1000000
       
   283 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1003-0001command15AttributeRequestL
       
   284 			OUTSTANDING	1000000
       
   285 			COMMAND		TBTAttrValueDEA1	StartListL
       
   286 			COMMAND		TBTAttrValueDEA1	BuildDEAL
       
   287 			COMMAND		TBTAttrValueDEA1	EndListL
       
   288 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1003-0001command21AppendValueL
       
   289 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1003-0001command22AcceptVisitorL
       
   290 			STORE	CBluetoothSocket1	
       
   291 			STORE	TBTServiceSecurity1	
       
   292 			STORE	TBTDevAddrRemote	
       
   293 			STORE_ACTIVE_SCHEDULER
       
   294 	END_TEST_BLOCK
       
   295 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1003-0001
       
   296 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1003-0002
       
   297 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1003-0002
       
   298 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1003
       
   299 
       
   300 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1004
       
   301 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1004
       
   302 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA
       
   303 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   304 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   305 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   306 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   307 //!													NewDEAL(), StartListL(), EndListL(), BuildDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   308 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   309 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   310 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   311 //!								2. Add some attribute ids into the idmatchlist
       
   312 //!								3. Construct a CSdpSearchPattern object
       
   313 //!								4. Add service UUID into searchpattern
       
   314 //!								5. Create a CSdpAttrValueDEA object
       
   315 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   316 //!								   Verify the resulting err code is KErrNone.
       
   317 //!								7. Set the service record filter with the serchpattern
       
   318 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   319 //!								   Verify the resulting err code is KErrNone.
       
   320 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   321 //!								   Verify the number of service records being found.
       
   322 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   323 //!								   Verify the resulting err code is KErrNone.
       
   324 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   325 //!									the result of attribute request comes back in the form of a list. 
       
   326 //!								12. Switch to CSdpAttrValueDEA data wrapper. Add a DES element to the list. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   327 //!									Verify the resulting err code is KErrNone.
       
   328 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   329 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   330 //!
       
   331 //! @SYMTestStatus				Implemented
       
   332 //! @SYMTestPriority			Low
       
   333 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   334 //! @SYMTestType				CIT
       
   335 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1004-0001	
       
   336 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   337 			SHARED_ACTIVE_SCHEDULER
       
   338 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   339 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   340 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   341 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   342 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   343 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   344 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   345 			COMMAND		TBTAttridmatchlist1	NewL
       
   346 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1004-0001command3AddL
       
   347 			COMMAND		TBTSearchpattern1	NewL
       
   348 			COMMAND		TBTSearchpattern1	ConstructL
       
   349 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1004-0001command7AddL
       
   350 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   351 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1004-0001command11NewL
       
   352 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1004-0001command12SetRecordFilterL
       
   353 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1004-0001command13NextRecordRequestL
       
   354 			OUTSTANDING	1000000
       
   355 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1004-0001command15AttributeRequestL
       
   356 			OUTSTANDING	1000000
       
   357 			COMMAND		TBTAttrValueDEA1	StartListL
       
   358 			COMMAND		TBTAttrValueDEA1	BuildDESL
       
   359 			COMMAND		TBTAttrValueDEA1	EndListL
       
   360 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1004-0001command21AppendValueL
       
   361 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1004-0001command22AcceptVisitorL
       
   362 			STORE	CBluetoothSocket1	
       
   363 			STORE	TBTServiceSecurity1	
       
   364 			STORE	TBTDevAddrRemote	
       
   365 			STORE_ACTIVE_SCHEDULER
       
   366 	END_TEST_BLOCK
       
   367 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1004-0001
       
   368 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1004-0002
       
   369 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1004-0002
       
   370 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1004
       
   371 
       
   372 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1005
       
   373 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1005
       
   374 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA
       
   375 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   376 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   377 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   378 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   379 //!													NewDEAL(), BuildEncodedL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   380 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   381 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   382 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   383 //!								2. Add some attribute ids into the idmatchlist
       
   384 //!								3. Construct a CSdpSearchPattern object
       
   385 //!								4. Add service UUID into searchpattern
       
   386 //!								5. Create a CSdpAttrValueDEA object
       
   387 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   388 //!								   Verify the resulting err code is KErrNone.
       
   389 //!								7. Set the service record filter with the serchpattern
       
   390 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   391 //!								   Verify the resulting err code is KErrNone.
       
   392 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   393 //!								   Verify the number of service records being found.
       
   394 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   395 //!								    Verify the resulting err code is KErrNone.
       
   396 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   397 //!									the result of attribute request comes back in the form of a list. 
       
   398 //!								12. Switch to CSdpAttrValueDEA data wrapper. Encode the list with unicode value. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   399 //!									Verify the resulting err code is KErrNone.
       
   400 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   401 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   402 //!
       
   403 //! @SYMTestStatus				Implemented
       
   404 //! @SYMTestPriority			Low
       
   405 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   406 //! @SYMTestType				CIT
       
   407 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1005-0001	
       
   408 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   409 			SHARED_ACTIVE_SCHEDULER
       
   410 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   411 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   412 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   413 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   414 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   415 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   416 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   417 			COMMAND		TBTAttridmatchlist1	NewL
       
   418 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1005-0001command3AddL
       
   419 			COMMAND		TBTSearchpattern1	NewL
       
   420 			COMMAND		TBTSearchpattern1	ConstructL
       
   421 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1005-0001command7AddL
       
   422 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   423 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1005-0001command11NewL
       
   424 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1005-0001command12SetRecordFilterL
       
   425 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1005-0001command13NextRecordRequestL
       
   426 			OUTSTANDING	1000000
       
   427 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1005-0001command15AttributeRequestL
       
   428 			OUTSTANDING	1000000
       
   429 			COMMAND		TBTAttrValueDEA1	BuildEncodedL		BTSDP-Lists-PublicApi-Active-1005-0001command18BuildEncodedL
       
   430 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1005-0001command19AppendValueL
       
   431 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1005-0001command20AcceptVisitorL
       
   432 			STORE	CBluetoothSocket1	
       
   433 			STORE	TBTServiceSecurity1	
       
   434 			STORE	TBTDevAddrRemote	
       
   435 			STORE_ACTIVE_SCHEDULER
       
   436 	END_TEST_BLOCK
       
   437 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1005-0001
       
   438 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1005-0002
       
   439 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1005-0002
       
   440 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1005
       
   441 
       
   442 // ****************************************************************************
       
   443 // Agent Side - CSdpAttrValueDES API tests
       
   444 // ****************************************************************************
       
   445 
       
   446 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1006
       
   447 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1006
       
   448 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
   449 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   450 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   451 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   452 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   453 //!													NewDEAL(), BuildIntL(), StartListL(), EndListL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   454 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   455 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   456 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   457 //!								2. Add some attribute ids into the idmatchlist
       
   458 //!								3. Construct a CSdpSearchPattern object
       
   459 //!								4. Add service UUID into searchpattern
       
   460 //!								5. Create a CSdpAttrValueDEA object and add a signed value to the list
       
   461 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   462 //!								   Verify the resulting err code is KErrNone.
       
   463 //!								7. Set the service record filter with the serchpattern
       
   464 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   465 //!								   Verify the resulting err code is KErrNone.
       
   466 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   467 //!								   Verify the number of service records being found.
       
   468 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   469 //!								    Verify the resulting err code is KErrNone.
       
   470 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   471 //!									the result of attribute request comes back in the form of a list. 
       
   472 //!								12. Switch to CSdpAttrValueDEA data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   473 //!									Verify the resulting err code is KErrNone.
       
   474 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   475 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   476 //!
       
   477 //! @SYMTestStatus				Implemented
       
   478 //! @SYMTestPriority			Low
       
   479 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   480 //! @SYMTestType				CIT
       
   481 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1006-0001	
       
   482 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   483 			SHARED_ACTIVE_SCHEDULER
       
   484 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   485 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   486 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   487 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   488 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   489 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   490 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   491 			COMMAND		TBTAttridmatchlist1	NewL
       
   492 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1006-0001command3AddL
       
   493 			COMMAND		TBTSearchpattern1	NewL
       
   494 			COMMAND		TBTSearchpattern1	ConstructL
       
   495 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1006-0001command7AddL
       
   496 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   497 			COMMAND		TBTAttrValueDEA1	StartListL
       
   498 			COMMAND		TBTAttrValueDEA1	BuildIntL		BTSDP-Lists-PublicApi-Active-1006-0001command11BuildIntL
       
   499 			COMMAND		TBTAttrValueDEA1	EndListL
       
   500 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1006-0001command14NewL
       
   501 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1006-0001command15SetRecordFilterL
       
   502 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1006-0001command16NextRecordRequestL
       
   503 			OUTSTANDING	1000000
       
   504 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1006-0001command18AttributeRequestL
       
   505 			OUTSTANDING	1000000
       
   506 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1006-0001command21AppendValueL
       
   507 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1006-0001command22AcceptVisitorL
       
   508 			STORE	CBluetoothSocket1	
       
   509 			STORE	TBTServiceSecurity1	
       
   510 			STORE	TBTDevAddrRemote	
       
   511 			STORE_ACTIVE_SCHEDULER
       
   512 	END_TEST_BLOCK
       
   513 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1006-0001	
       
   514 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1006-0002
       
   515 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1006-0002
       
   516 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1006
       
   517 
       
   518 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1007
       
   519 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1007
       
   520 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
   521 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   522 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   523 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   524 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   525 //!													NewDEAL(), StartListL(), EndListL(), BuildNilL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   526 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   527 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   528 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   529 //!								2. Add some attribute ids into the idmatchlist
       
   530 //!								3. Construct a CSdpSearchPattern object
       
   531 //!								4. Add service UUID into searchpattern
       
   532 //!								5. Create a CSdpAttrValueDEA object
       
   533 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   534 //!								   Verify the resulting err code is KErrNone.
       
   535 //!								7. Set the service record filter with the serchpattern
       
   536 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   537 //!								   Verify the resulting err code is KErrNone.
       
   538 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   539 //!								   Verify the number of service records being found.
       
   540 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   541 //!								    Verify the resulting err code is KErrNone.
       
   542 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   543 //!									the result of attribute request comes back in the form of a list. 
       
   544 //!								12. Switch to CSdpAttrValueDEA data wrapper. Add a NILL type of element to the list. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   545 //!									Verify the resulting err code is KErrNone.
       
   546 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   547 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   548 //!
       
   549 //! @SYMTestStatus				Implemented
       
   550 //! @SYMTestPriority			Low
       
   551 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   552 //! @SYMTestType				CIT
       
   553 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1007-0001		
       
   554 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   555 			SHARED_ACTIVE_SCHEDULER
       
   556 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   557 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   558 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   559 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   560 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   561 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   562 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   563 			COMMAND		TBTAttridmatchlist1	NewL
       
   564 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1007-0001command3AddL
       
   565 			COMMAND		TBTSearchpattern1	NewL
       
   566 			COMMAND		TBTSearchpattern1	ConstructL
       
   567 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1007-0001command7AddL
       
   568 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   569 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1007-0001command11NewL
       
   570 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1007-0001command12SetRecordFilterL
       
   571 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1007-0001command13NextRecordRequestL
       
   572 			OUTSTANDING	1000000
       
   573 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1007-0001command15AttributeRequestL
       
   574 			OUTSTANDING	1000000
       
   575 			COMMAND		TBTAttrValueDEA1	StartListL
       
   576 			COMMAND		TBTAttrValueDEA1	BuildNilL
       
   577 			COMMAND		TBTAttrValueDEA1	EndListL
       
   578 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1007-0001command21AppendValueL
       
   579 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1007-0001command22AcceptVisitorL
       
   580 			STORE	CBluetoothSocket1	
       
   581 			STORE	TBTServiceSecurity1	
       
   582 			STORE	TBTDevAddrRemote	
       
   583 			STORE_ACTIVE_SCHEDULER
       
   584 	END_TEST_BLOCK
       
   585 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1007-0001		
       
   586 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1007-0002
       
   587 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1007-0002
       
   588 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1007
       
   589 
       
   590 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1008
       
   591 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1008
       
   592 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
   593 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   594 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   595 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   596 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   597 //!													NewDEAL(), StartListL(), EndListL(), BuildStringL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   598 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   599 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   600 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   601 //!								2. Add some attribute ids into the idmatchlist
       
   602 //!								3. Construct a CSdpSearchPattern object
       
   603 //!								4. Add service UUID into searchpattern
       
   604 //!								5. Create a CSdpAttrValueDEA object
       
   605 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   606 //!								   Verify the resulting err code is KErrNone.
       
   607 //!								7. Set the service record filter with the serchpattern
       
   608 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   609 //!								   Verify the resulting err code is KErrNone.
       
   610 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   611 //!								   Verify the number of service records being found.
       
   612 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   613 //!								    Verify the resulting err code is KErrNone.
       
   614 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   615 //!									the result of attribute request comes back in the form of a list. 
       
   616 //!								12. Switch to CSdpAttrValueDEA data wrapper. Add a string type of element to the list. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   617 //!									Verify the resulting err code is KErrNone.
       
   618 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   619 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   620 //!
       
   621 //! @SYMTestStatus				Implemented
       
   622 //! @SYMTestPriority			Low
       
   623 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   624 //! @SYMTestType				CIT
       
   625 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1008-0001	
       
   626 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   627 			SHARED_ACTIVE_SCHEDULER
       
   628 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   629 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   630 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   631 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   632 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   633 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   634 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   635 			COMMAND		TBTAttridmatchlist1	NewL
       
   636 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1008-0001command3AddL
       
   637 			COMMAND		TBTSearchpattern1	NewL
       
   638 			COMMAND		TBTSearchpattern1	ConstructL
       
   639 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1008-0001command7AddL
       
   640 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   641 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1008-0001command11NewL
       
   642 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1008-0001command12SetRecordFilterL
       
   643 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1008-0001command13NextRecordRequestL
       
   644 			OUTSTANDING	1000000
       
   645 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1008-0001command15AttributeRequestL
       
   646 			OUTSTANDING	1000000
       
   647 			COMMAND		TBTAttrValueDEA1	StartListL
       
   648 			COMMAND		TBTAttrValueDEA1	BuildStringL		BTSDP-Lists-PublicApi-Active-1008-0001command19BuildStringL
       
   649 			COMMAND		TBTAttrValueDEA1	EndListL
       
   650 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1008-0001command21AppendValueL
       
   651 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1008-0001command22AcceptVisitorL
       
   652 			STORE	CBluetoothSocket1	
       
   653 			STORE	TBTServiceSecurity1	
       
   654 			STORE	TBTDevAddrRemote	
       
   655 			STORE_ACTIVE_SCHEDULER
       
   656 	END_TEST_BLOCK
       
   657 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1008-0001		
       
   658 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1008-0002
       
   659 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1008-0002
       
   660 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1008
       
   661 
       
   662 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1009
       
   663 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1009
       
   664 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
   665 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   666 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   667 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   668 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   669 //!													NewDEAL(), StartListL(), EndListL(), BuildURLL(), , DataSize(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   670 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   671 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   672 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   673 //!								2. Add some attribute ids into the idmatchlist
       
   674 //!								3. Construct a CSdpSearchPattern object
       
   675 //!								4. Add service UUID into searchpattern
       
   676 //!								5. Create a CSdpAttrValueDEA object and add an URL type of element to the list.
       
   677 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   678 //!								   Verify the resulting err code is KErrNone.
       
   679 //!								7. Set the service record filter with the serchpattern
       
   680 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   681 //!								   Verify the resulting err code is KErrNone.
       
   682 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   683 //!								   Verify the number of service records being found.
       
   684 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   685 //!								   Verify the resulting err code is KErrNone.
       
   686 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   687 //!									the result of attribute request comes back in the form of a list. 
       
   688 //!								12. Switch to CSdpAttrValueDEA data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   689 //!									Verify the resulting err code is KErrNone.
       
   690 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   691 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   692 //!								15. Verify the list size as expected.
       
   693 //!
       
   694 //! @SYMTestStatus				Implemented
       
   695 //! @SYMTestPriority			Low
       
   696 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   697 //! @SYMTestType				CIT
       
   698 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1009-0001	
       
   699 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   700 			SHARED_ACTIVE_SCHEDULER
       
   701 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   702 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   703 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   704 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   705 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   706 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   707 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   708 			COMMAND		TBTAttridmatchlist1	NewL
       
   709 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1009-0001command3AddL
       
   710 			COMMAND		TBTSearchpattern1	NewL
       
   711 			COMMAND		TBTSearchpattern1	ConstructL
       
   712 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1009-0001command7AddL
       
   713 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   714 			COMMAND		TBTAttrValueDEA1	StartListL
       
   715 			COMMAND		TBTAttrValueDEA1	BuildURLL		BTSDP-Lists-PublicApi-Active-1009-0001command11BuildURLL
       
   716 			COMMAND		TBTAttrValueDEA1	EndListL
       
   717 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1009-0001command14NewL
       
   718 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1009-0001command15SetRecordFilterL
       
   719 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1009-0001command16NextRecordRequestL
       
   720 			OUTSTANDING	1000000
       
   721 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1009-0001command18AttributeRequestL
       
   722 			OUTSTANDING	1000000
       
   723 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1009-0001command21AppendValueL
       
   724 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1009-0001command22AcceptVisitorL
       
   725 			COMMAND		TBTAttrValueDEA1	DataSize		BTSDP-Lists-PublicApi-Active-1009-0001command23DataSize
       
   726 			STORE	CBluetoothSocket1	
       
   727 			STORE	TBTServiceSecurity1	
       
   728 			STORE	TBTDevAddrRemote	
       
   729 			STORE_ACTIVE_SCHEDULER
       
   730 	END_TEST_BLOCK
       
   731 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1009-0001		
       
   732 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1009-0002
       
   733 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1009-0002
       
   734 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1009
       
   735 
       
   736 
       
   737 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1010
       
   738 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1010
       
   739 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
   740 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   741 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   742 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   743 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   744 //!													NewDEAL(), StartListL(), EndListL(), BuildUUIDL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   745 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   746 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   747 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   748 //!								2. Add some attribute ids into the idmatchlist
       
   749 //!								3. Construct a CSdpSearchPattern object
       
   750 //!								4. Add service UUID into searchpattern
       
   751 //!								5. Create a CSdpAttrValueDEA object and add a UUID type of element to the list.
       
   752 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   753 //!								   Verify the resulting err code is KErrNone.
       
   754 //!								7. Set the service record filter with the serchpattern
       
   755 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   756 //!								   Verify the resulting err code is KErrNone.
       
   757 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   758 //!								   Verify the number of service records being found.
       
   759 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   760 //!								    Verify the resulting err code is KErrNone.
       
   761 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   762 //!									the result of attribute request comes back in the form of a list. 
       
   763 //!								12. Switch to CSdpAttrValueDEA data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   764 //!									Verify the resulting err code is KErrNone.
       
   765 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   766 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   767 //!
       
   768 //! @SYMTestStatus				Implemented
       
   769 //! @SYMTestPriority			Low
       
   770 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   771 //! @SYMTestType				CIT
       
   772 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1010-0001		
       
   773 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   774 			SHARED_ACTIVE_SCHEDULER
       
   775 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   776 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   777 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   778 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   779 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   780 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   781 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   782 			COMMAND		TBTAttridmatchlist1	NewL
       
   783 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1010-0001command3AddL
       
   784 			COMMAND		TBTSearchpattern1	NewL
       
   785 			COMMAND		TBTSearchpattern1	ConstructL
       
   786 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1010-0001command7AddL
       
   787 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   788 			COMMAND		TBTAttrValueDEA1	StartListL
       
   789 			COMMAND		TBTAttrValueDEA1	BuildUUIDL		BTSDP-Lists-PublicApi-Active-1010-0001command11BuildUUIDL
       
   790 			COMMAND		TBTAttrValueDEA1	EndListL
       
   791 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1010-0001command14NewL
       
   792 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1010-0001command15SetRecordFilterL
       
   793 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1010-0001command16NextRecordRequestL
       
   794 			OUTSTANDING	1000000
       
   795 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1010-0001command18AttributeRequestL
       
   796 			OUTSTANDING	1000000
       
   797 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1010-0001command21AppendValueL
       
   798 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1010-0001command22AcceptVisitorL
       
   799 			STORE	CBluetoothSocket1	
       
   800 			STORE	TBTServiceSecurity1	
       
   801 			STORE	TBTDevAddrRemote	
       
   802 			STORE_ACTIVE_SCHEDULER
       
   803 	END_TEST_BLOCK
       
   804 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1010-0001	
       
   805 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1010-0002
       
   806 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1010-0002
       
   807 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1010
       
   808 
       
   809 
       
   810 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1011
       
   811 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1011
       
   812 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
   813 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   814 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   815 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   816 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   817 //!													NewDEAL(), StartListL(), EndListL(), BuildUintL() AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   818 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   819 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   820 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   821 //!								2. Add some attribute ids into the idmatchlist
       
   822 //!								3. Construct a CSdpSearchPattern object
       
   823 //!								4. Add service UUID into searchpattern
       
   824 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   825 //!								   Verify the resulting err code is KErrNone.
       
   826 //!								6. Set the service record filter with the serchpattern
       
   827 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   828 //!								   Verify the resulting err code is KErrNone.
       
   829 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   830 //!								   Verify the number of service records being found.
       
   831 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
   832 //!								   Verify the resulting err code is KErrNone.
       
   833 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   834 //!									the result of attribute request comes back in the form of a list. 
       
   835 //!								11. Switch to CSdpAttrValueDEA data wrapper. Add an unsigned integer type of element to the list. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   836 //!									Verify the resulting err code is KErrNone.
       
   837 //!								12. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   838 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   839 //!
       
   840 //! @SYMTestStatus				Implemented
       
   841 //! @SYMTestPriority			Low
       
   842 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   843 //! @SYMTestType				CIT
       
   844 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1011-0001		
       
   845 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   846 			SHARED_ACTIVE_SCHEDULER
       
   847 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   848 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   849 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   850 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   851 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   852 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   853 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   854 			COMMAND		TBTAttridmatchlist1	NewL
       
   855 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1011-0001command3AddL
       
   856 			COMMAND		TBTSearchpattern1	NewL
       
   857 			COMMAND		TBTSearchpattern1	ConstructL
       
   858 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1011-0001command7AddL
       
   859 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   860 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1011-0001command11NewL
       
   861 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1011-0001command12SetRecordFilterL
       
   862 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1011-0001command13NextRecordRequestL
       
   863 			OUTSTANDING	1000000
       
   864 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1011-0001command15AttributeRequestL
       
   865 			OUTSTANDING	1000000
       
   866 			COMMAND		TBTAttrValueDEA1	StartListL
       
   867 			COMMAND		TBTAttrValueDEA1	BuildUintL		BTSDP-Lists-PublicApi-Active-1011-0001command19BuildUintL
       
   868 			COMMAND		TBTAttrValueDEA1	EndListL
       
   869 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1011-0001command21AppendValueL
       
   870 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1011-0001command22AcceptVisitorL
       
   871 			STORE	CBluetoothSocket1	
       
   872 			STORE	TBTServiceSecurity1	
       
   873 			STORE	TBTDevAddrRemote	
       
   874 			STORE_ACTIVE_SCHEDULER
       
   875 	END_TEST_BLOCK
       
   876 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1011-0001		
       
   877 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1011-0002
       
   878 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1011-0002
       
   879 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1011
       
   880 
       
   881 
       
   882 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1012
       
   883 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1012
       
   884 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
   885 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   886 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   887 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   888 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   889 //!													NewDEAL(), StartListL(), EndListL(), BuildUnknownL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   890 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   891 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   892 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   893 //!								2. Add some attribute ids into the idmatchlist
       
   894 //!								3. Construct a CSdpSearchPattern object
       
   895 //!								4. Add service UUID into searchpattern
       
   896 //!								5. Create a CSdpAttrValueDEA object
       
   897 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   898 //!								   Verify the resulting err code is KErrNone.
       
   899 //!								7. Set the service record filter with the serchpattern
       
   900 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   901 //!								   Verify the resulting err code is KErrNone.
       
   902 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   903 //!								   Verify the number of service records being found.
       
   904 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   905 //!								    Verify the resulting err code is KErrNone.
       
   906 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   907 //!									the result of attribute request comes back in the form of a list. 
       
   908 //!								12. Switch to CSdpAttrValueDEA data wrapper. Add a user-defined type of element to the list. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   909 //!									Verify the resulting err code is KErrNone.
       
   910 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   911 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   912 //!
       
   913 //! @SYMTestStatus				Implemented
       
   914 //! @SYMTestPriority			Low
       
   915 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   916 //! @SYMTestType				CIT
       
   917 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1012-0001		
       
   918 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   919 			SHARED_ACTIVE_SCHEDULER
       
   920 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   921 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   922 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   923 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   924 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   925 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   926 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   927 			COMMAND		TBTAttridmatchlist1	NewL
       
   928 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1012-0001command3AddL
       
   929 			COMMAND		TBTSearchpattern1	NewL
       
   930 			COMMAND		TBTSearchpattern1	ConstructL
       
   931 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1012-0001command7AddL
       
   932 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
   933 			COMMAND		TBTAttrValueDEA1	StartListL
       
   934 			COMMAND		TBTAttrValueDEA1	BuildUnknownL		BTSDP-Lists-PublicApi-Active-1012-0001command11BuildUnknownL
       
   935 			COMMAND		TBTAttrValueDEA1	EndListL
       
   936 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1012-0001command14NewL
       
   937 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1012-0001command15SetRecordFilterL
       
   938 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1012-0001command16NextRecordRequestL
       
   939 			OUTSTANDING	1000000
       
   940 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1012-0001command18AttributeRequestL
       
   941 			OUTSTANDING	1000000
       
   942 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1012-0001command21AppendValueL
       
   943 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1012-0001command22AcceptVisitorL
       
   944 			STORE	CBluetoothSocket1	
       
   945 			STORE	TBTServiceSecurity1	
       
   946 			STORE	TBTDevAddrRemote	
       
   947 			STORE_ACTIVE_SCHEDULER
       
   948 	END_TEST_BLOCK
       
   949 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1012-0001		
       
   950 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1012-0002
       
   951 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1012-0002
       
   952 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1012
       
   953 
       
   954 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1013
       
   955 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1013
       
   956 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
   957 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   958 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   959 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   960 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   961 //!													NewDEAL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
   962 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   963 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   964 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   965 //!								2. Add some attribute ids into the idmatchlist
       
   966 //!								3. Construct a CSdpSearchPattern object
       
   967 //!								4. Add service UUID into searchpattern
       
   968 //!								5. Create a CSdpAttrValueDE object and create another CSdpAttrValueDEA object. Add the first object as an element to the second CSdpAttrValueDEA object
       
   969 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   970 //!								   Verify the resulting err code is KErrNone.
       
   971 //!								7. Set the service record filter with the serchpattern
       
   972 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   973 //!								   Verify the resulting err code is KErrNone.
       
   974 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   975 //!								   Verify the number of service records being found.
       
   976 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   977 //!								    Verify the resulting err code is KErrNone.
       
   978 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   979 //!									the result of attribute request comes back in the form of a list. 
       
   980 //!								12. Switch to CSdpAttrValueDEA data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
   981 //!									Verify the resulting err code is KErrNone.
       
   982 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   983 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   984 //!
       
   985 //! @SYMTestStatus				Implemented
       
   986 //! @SYMTestPriority			Low
       
   987 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   988 //! @SYMTestType				CIT
       
   989 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1013-0001	
       
   990 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
   991 			SHARED_ACTIVE_SCHEDULER
       
   992 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   993 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   994 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   995 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   996 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   997 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   998 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
   999 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA2	
       
  1000 			COMMAND		TBTAttridmatchlist1	NewL
       
  1001 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1013-0001command3AddL
       
  1002 			COMMAND		TBTSearchpattern1	NewL
       
  1003 			COMMAND		TBTSearchpattern1	ConstructL
       
  1004 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1013-0001command7AddL
       
  1005 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
  1006 			COMMAND		TBTAttrValueDEA2	NewDEAL		BTSDP-Lists-PublicApi-Active-1013-0001command11NewDEAL
       
  1007 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1013-0001command13NewL
       
  1008 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1013-0001command14SetRecordFilterL
       
  1009 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1013-0001command15NextRecordRequestL
       
  1010 			OUTSTANDING	1000000
       
  1011 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1013-0001command17AttributeRequestL
       
  1012 			OUTSTANDING	1000000
       
  1013 			COMMAND		TBTAttrValueDEA2	AppendValueL		BTSDP-Lists-PublicApi-Active-1013-0001command20AppendValueL
       
  1014 			COMMAND		TBTAttrValueDEA2	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1013-0001command21AcceptVisitorL
       
  1015 			STORE	CBluetoothSocket1	
       
  1016 			STORE	TBTServiceSecurity1	
       
  1017 			STORE	TBTDevAddrRemote	
       
  1018 			STORE_ACTIVE_SCHEDULER
       
  1019 	END_TEST_BLOCK
       
  1020 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1013-0001		
       
  1021 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1013-0002
       
  1022 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1013-0002
       
  1023 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1013
       
  1024 
       
  1025 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1014
       
  1026 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1014
       
  1027 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1028 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1029 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1030 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1031 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1032 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1033 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1034 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1035 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1036 //!								2. Add some attribute ids into the idmatchlist
       
  1037 //!								3. Construct a CSdpSearchPattern object
       
  1038 //!								4. Add service UUID into searchpattern
       
  1039 //!								5. Create two CSdpAttrValueDES objects and add the first object as an element to the second object.
       
  1040 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1041 //!								   Verify the resulting err code is KErrNone.
       
  1042 //!								7. Set the service record filter with the serchpattern
       
  1043 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1044 //!								   Verify the resulting err code is KErrNone.
       
  1045 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1046 //!								   Verify the number of service records being found.
       
  1047 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1048 //!								   Verify the resulting err code is KErrNone.
       
  1049 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1050 //!									the result of attribute request comes back in the form of a list. 
       
  1051 //!								12. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1052 //!									Verify the resulting err code is KErrNone.
       
  1053 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1054 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1055 //!
       
  1056 //! @SYMTestStatus				Implemented
       
  1057 //! @SYMTestPriority			Low
       
  1058 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1059 //! @SYMTestType				CIT
       
  1060 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1014-0001	
       
  1061 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1062 			SHARED_ACTIVE_SCHEDULER
       
  1063 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1064 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1065 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1066 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1067 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1068 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1069 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1070 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES2	
       
  1071 			COMMAND		TBTAttridmatchlist1	NewL
       
  1072 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1014-0001command3AddL
       
  1073 			COMMAND		TBTSearchpattern1	NewL
       
  1074 			COMMAND		TBTSearchpattern1	ConstructL
       
  1075 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1014-0001command7AddL
       
  1076 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1077 			COMMAND		TBTAttrValueDES2	NewDESL		BTSDP-Lists-PublicApi-Active-1014-0001command11NewDESL
       
  1078 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1014-0001command13NewL
       
  1079 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1014-0001command14SetRecordFilterL
       
  1080 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1014-0001command15NextRecordRequestL
       
  1081 			OUTSTANDING	1000000
       
  1082 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1014-0001command17AttributeRequestL
       
  1083 			OUTSTANDING	1000000
       
  1084 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1014-0001command20AppendValueL
       
  1085 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1014-0001command21AcceptVisitorL
       
  1086 			STORE	CBluetoothSocket1	
       
  1087 			STORE	TBTServiceSecurity1	
       
  1088 			STORE	TBTDevAddrRemote	
       
  1089 			STORE_ACTIVE_SCHEDULER
       
  1090 	END_TEST_BLOCK
       
  1091 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1014-0001		
       
  1092 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1014-0002
       
  1093 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1014-0002
       
  1094 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1014
       
  1095 
       
  1096 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1015
       
  1097 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1015
       
  1098 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1099 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1100 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1101 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1102 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1103 //!													NewDESL(), DataSize(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1104 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1105 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1106 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1107 //!								2. Add some attribute ids into the idmatchlist
       
  1108 //!								3. Construct a CSdpSearchPattern object
       
  1109 //!								4. Add service UUID into searchpattern
       
  1110 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1111 //!								   Verify the resulting err code is KErrNone.
       
  1112 //!								6. Set the service record filter with the serchpattern
       
  1113 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1114 //!								   Verify the resulting err code is KErrNone.
       
  1115 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1116 //!								   Verify the number of service records being found.
       
  1117 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1118 //!								   Verify the resulting err code is KErrNone.
       
  1119 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1120 //!									the result of attribute request comes back in the form of a list. 
       
  1121 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1122 //!									Verify the resulting err code is KErrNone.
       
  1123 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1124 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1125 //!								14. Verify the CSdpAttrValueDES data size if it's as expected
       
  1126 //!
       
  1127 //! @SYMTestStatus				Implemented
       
  1128 //! @SYMTestPriority			Low
       
  1129 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1130 //! @SYMTestType				CIT
       
  1131 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1015-0001	
       
  1132 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1133 			SHARED_ACTIVE_SCHEDULER
       
  1134 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1135 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1136 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1137 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1138 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1139 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1140 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1141 			COMMAND		TBTAttridmatchlist1	NewL
       
  1142 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1015-0001command3AddL
       
  1143 			COMMAND		TBTSearchpattern1	NewL
       
  1144 			COMMAND		TBTSearchpattern1	ConstructL
       
  1145 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1015-0001command7AddL
       
  1146 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1147 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1015-0001command11NewL
       
  1148 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1015-0001command12SetRecordFilterL
       
  1149 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1015-0001command13NextRecordRequestL
       
  1150 			OUTSTANDING	1000000
       
  1151 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1015-0001command15AttributeRequestL
       
  1152 			OUTSTANDING	1000000
       
  1153 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1015-0001command18AppendValueL
       
  1154 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1015-0001command19AcceptVisitorL
       
  1155 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-Lists-PublicApi-Active-1015-0001command20DataSize
       
  1156 			STORE	CBluetoothSocket1	
       
  1157 			STORE	TBTServiceSecurity1	
       
  1158 			STORE	TBTDevAddrRemote	
       
  1159 			STORE_ACTIVE_SCHEDULER
       
  1160 	END_TEST_BLOCK
       
  1161 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1015-0001		
       
  1162 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1015-0002
       
  1163 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1015-0002
       
  1164 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1015
       
  1165 
       
  1166 
       
  1167 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1016
       
  1168 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1016
       
  1169 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1170 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1171 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1172 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1173 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1174 //!													NewDESL(), AppendValueL(), StartListL(), EndListL(), BuildUnknownL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1175 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1176 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1177 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1178 //!								2. Add some attribute ids into the idmatchlist
       
  1179 //!								3. Construct a CSdpSearchPattern object
       
  1180 //!								4. Add service UUID into searchpattern
       
  1181 //!								5. Create a CSdpAttrValueDES object and add a user defined type of element to the list.
       
  1182 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1183 //!								   Verify the resulting err code is KErrNone.
       
  1184 //!								7. Set the service record filter with the serchpattern
       
  1185 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1186 //!								   Verify the resulting err code is KErrNone.
       
  1187 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1188 //!								   Verify the number of service records being found.
       
  1189 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1190 //!								   Verify the resulting err code is KErrNone.
       
  1191 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1192 //!									the result of attribute request comes back in the form of a list. 
       
  1193 //!								12. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1194 //!									Verify the resulting err code is KErrNone.
       
  1195 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1196 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1197 //!
       
  1198 //! @SYMTestStatus				Implemented
       
  1199 //! @SYMTestPriority			Low
       
  1200 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1201 //! @SYMTestType				CIT
       
  1202 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1016-0001	
       
  1203 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1204 			SHARED_ACTIVE_SCHEDULER
       
  1205 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1206 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1207 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1208 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1209 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1210 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1211 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1212 			COMMAND		TBTAttridmatchlist1	NewL
       
  1213 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1016-0001command3AddL
       
  1214 			COMMAND		TBTSearchpattern1	NewL
       
  1215 			COMMAND		TBTSearchpattern1	ConstructL
       
  1216 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1016-0001command7AddL
       
  1217 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1218 			COMMAND		TBTAttrValueDES1	StartListL
       
  1219 			COMMAND		TBTAttrValueDES1	BuildUnknownL		BTSDP-Lists-PublicApi-Active-1016-0001command11BuildUnknownL
       
  1220 			COMMAND		TBTAttrValueDES1	EndListL
       
  1221 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1016-0001command14NewL
       
  1222 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1016-0001command15SetRecordFilterL
       
  1223 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1016-0001command16NextRecordRequestL
       
  1224 			OUTSTANDING	1000000
       
  1225 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1016-0001command18AttributeRequestL
       
  1226 			OUTSTANDING	1000000
       
  1227 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1016-0001command21AppendValueL
       
  1228 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1016-0001command22AcceptVisitorL
       
  1229 			STORE	CBluetoothSocket1	
       
  1230 			STORE	TBTServiceSecurity1	
       
  1231 			STORE	TBTDevAddrRemote	
       
  1232 			STORE_ACTIVE_SCHEDULER
       
  1233 	END_TEST_BLOCK
       
  1234 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1016-0001		
       
  1235 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1016-0002
       
  1236 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1016-0002
       
  1237 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1016
       
  1238 
       
  1239 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1017
       
  1240 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1017
       
  1241 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1242 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1243 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1244 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1245 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1246 //!													NewDESL(), AppendValueL(), StartListL(), EndListL(), BuildUintL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1247 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1248 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1249 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1250 //!								2. Add some attribute ids into the idmatchlist
       
  1251 //!								3. Construct a CSdpSearchPattern object
       
  1252 //!								4. Add service UUID into searchpattern
       
  1253 //!								5. Create a CSdpAttrValueDES object
       
  1254 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1255 //!								   Verify the resulting err code is KErrNone.
       
  1256 //!								7. Set the service record filter with the serchpattern
       
  1257 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1258 //!								   Verify the resulting err code is KErrNone.
       
  1259 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1260 //!								   Verify the number of service records being found.
       
  1261 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1262 //!								   Verify the resulting err code is KErrNone.
       
  1263 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1264 //!									the result of attribute request comes back in the form of a list. 
       
  1265 //!								12. Switch to CSdpAttrValueDES data wrapper. Add an unsigned integer type of element to the list. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1266 //!									Verify the resulting err code is KErrNone.
       
  1267 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1268 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1269 //!
       
  1270 //! @SYMTestStatus				Implemented
       
  1271 //! @SYMTestPriority			Low
       
  1272 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1273 //! @SYMTestType				CIT
       
  1274 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1017-0001	
       
  1275 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1276 			SHARED_ACTIVE_SCHEDULER
       
  1277 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1278 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1279 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1280 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1281 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1282 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1283 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1284 			COMMAND		TBTAttridmatchlist1	NewL
       
  1285 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1017-0001command3AddL
       
  1286 			COMMAND		TBTSearchpattern1	NewL
       
  1287 			COMMAND		TBTSearchpattern1	ConstructL
       
  1288 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1017-0001command7AddL
       
  1289 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1290 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1017-0001command11NewL
       
  1291 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1017-0001command12SetRecordFilterL
       
  1292 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1017-0001command13NextRecordRequestL
       
  1293 			OUTSTANDING	1000000
       
  1294 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1017-0001command15AttributeRequestL
       
  1295 			OUTSTANDING	1000000
       
  1296 			COMMAND		TBTAttrValueDES1	StartListL
       
  1297 			COMMAND		TBTAttrValueDES1	BuildUintL		BTSDP-Lists-PublicApi-Active-1017-0001command19BuildUintL
       
  1298 			COMMAND		TBTAttrValueDES1	EndListL
       
  1299 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1017-0001command21AppendValueL
       
  1300 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1017-0001command22AcceptVisitorL
       
  1301 			STORE	CBluetoothSocket1	
       
  1302 			STORE	TBTServiceSecurity1	
       
  1303 			STORE	TBTDevAddrRemote	
       
  1304 			STORE_ACTIVE_SCHEDULER
       
  1305 	END_TEST_BLOCK
       
  1306 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1017-0001	
       
  1307 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1017-0002
       
  1308 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1017-0002
       
  1309 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1017
       
  1310 
       
  1311 
       
  1312 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1018
       
  1313 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1018
       
  1314 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1315 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1316 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1317 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1318 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1319 //!													NewDESL(), StartListL(), EndListL(), BuildUUIDL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1320 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1321 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1322 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1323 //!								2. Add some attribute ids into the idmatchlist
       
  1324 //!								3. Construct a CSdpSearchPattern object
       
  1325 //!								4. Add service UUID into searchpattern
       
  1326 //!								5. Create a CSdpAttrValueDES object and add an UUID type of element to the list.
       
  1327 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1328 //!								   Verify the resulting err code is KErrNone.
       
  1329 //!								7. Set the service record filter with the serchpattern
       
  1330 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1331 //!								   Verify the resulting err code is KErrNone.
       
  1332 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1333 //!								   Verify the number of service records being found.
       
  1334 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1335 //!								   Verify the resulting err code is KErrNone.
       
  1336 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1337 //!									the result of attribute request comes back in the form of a list. 
       
  1338 //!								12. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1339 //!									Verify the resulting err code is KErrNone.
       
  1340 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1341 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1342 //!
       
  1343 //! @SYMTestStatus				Implemented
       
  1344 //! @SYMTestPriority			Low
       
  1345 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1346 //! @SYMTestType				CIT
       
  1347 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1018-0001	
       
  1348 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1349 			SHARED_ACTIVE_SCHEDULER
       
  1350 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1351 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1352 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1353 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1354 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1355 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1356 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1357 			COMMAND		TBTAttridmatchlist1	NewL
       
  1358 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1018-0001command3AddL
       
  1359 			COMMAND		TBTSearchpattern1	NewL
       
  1360 			COMMAND		TBTSearchpattern1	ConstructL
       
  1361 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1018-0001command7AddL
       
  1362 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1363 			COMMAND		TBTAttrValueDES1	StartListL
       
  1364 			COMMAND		TBTAttrValueDES1	BuildUUIDL		BTSDP-Lists-PublicApi-Active-1018-0001command11BuildUUIDL
       
  1365 			COMMAND		TBTAttrValueDES1	EndListL
       
  1366 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1018-0001command14NewL
       
  1367 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1018-0001command15SetRecordFilterL
       
  1368 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1018-0001command16NextRecordRequestL
       
  1369 			OUTSTANDING	1000000
       
  1370 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1018-0001command18AttributeRequestL
       
  1371 			OUTSTANDING	1000000
       
  1372 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1018-0001command21AppendValueL
       
  1373 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1018-0001command22AcceptVisitorL
       
  1374 			STORE	CBluetoothSocket1	
       
  1375 			STORE	TBTServiceSecurity1	
       
  1376 			STORE	TBTDevAddrRemote	
       
  1377 			STORE_ACTIVE_SCHEDULER
       
  1378 	END_TEST_BLOCK
       
  1379 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1018-0001		
       
  1380 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1018-0002
       
  1381 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1018-0002
       
  1382 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1018
       
  1383 
       
  1384 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1019
       
  1385 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1019
       
  1386 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1387 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1388 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1389 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1390 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1391 //!													NewDESL(), StartListL(), EndListL(), BuildURLL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1392 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1393 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1394 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1395 //!								2. Add some attribute ids into the idmatchlist
       
  1396 //!								3. Construct a CSdpSearchPattern object
       
  1397 //!								4. Add service UUID into searchpattern
       
  1398 //!								5. Create a CSdpAttrValueDES object
       
  1399 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1400 //!								   Verify the resulting err code is KErrNone.
       
  1401 //!								7. Set the service record filter with the serchpattern
       
  1402 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1403 //!								   Verify the resulting err code is KErrNone.
       
  1404 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1405 //!								   Verify the number of service records being found.
       
  1406 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1407 //!								    Verify the resulting err code is KErrNone.
       
  1408 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1409 //!									the result of attribute request comes back in the form of a list. 
       
  1410 //!								12. Switch to CSdpAttrValueDES data wrapper. Add a URL type of element to the list. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1411 //!									Verify the resulting err code is KErrNone.
       
  1412 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1413 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1414 //!
       
  1415 //! @SYMTestStatus				Implemented
       
  1416 //! @SYMTestPriority			Low
       
  1417 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1418 //! @SYMTestType				CIT
       
  1419 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1019-0001	
       
  1420 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1421 			SHARED_ACTIVE_SCHEDULER
       
  1422 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1423 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1424 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1425 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1426 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1427 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1428 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1429 			COMMAND		TBTAttridmatchlist1	NewL
       
  1430 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1019-0001command3AddL
       
  1431 			COMMAND		TBTSearchpattern1	NewL
       
  1432 			COMMAND		TBTSearchpattern1	ConstructL
       
  1433 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1019-0001command7AddL
       
  1434 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1435 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1019-0001command11NewL
       
  1436 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1019-0001command12SetRecordFilterL
       
  1437 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1019-0001command13NextRecordRequestL
       
  1438 			OUTSTANDING	1000000
       
  1439 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1019-0001command15AttributeRequestL
       
  1440 			OUTSTANDING	1000000
       
  1441 			COMMAND		TBTAttrValueDES1	StartListL
       
  1442 			COMMAND		TBTAttrValueDES1	BuildURLL		BTSDP-Lists-PublicApi-Active-1019-0001command19BuildURLL
       
  1443 			COMMAND		TBTAttrValueDES1	EndListL
       
  1444 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1019-0001command21AppendValueL
       
  1445 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1019-0001command22AcceptVisitorL
       
  1446 			STORE	CBluetoothSocket1	
       
  1447 			STORE	TBTServiceSecurity1	
       
  1448 			STORE	TBTDevAddrRemote	
       
  1449 			STORE_ACTIVE_SCHEDULER
       
  1450 	END_TEST_BLOCK
       
  1451 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1019-0001	
       
  1452 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1019-0002
       
  1453 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1019-0002
       
  1454 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1019
       
  1455 
       
  1456 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1020
       
  1457 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1020
       
  1458 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1459 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1460 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1461 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1462 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1463 //!													NewDESL(), StartListL(), EndListL(), BuildIntL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1464 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1465 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1466 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1467 //!								2. Add some attribute ids into the idmatchlist
       
  1468 //!								3. Construct a CSdpSearchPattern object
       
  1469 //!								4. Add service UUID into searchpattern
       
  1470 //!								5. Create a CSdpAttrValueDES object.
       
  1471 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1472 //!								   Verify the resulting err code is KErrNone.
       
  1473 //!								7. Set the service record filter with the serchpattern
       
  1474 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1475 //!								   Verify the resulting err code is KErrNone.
       
  1476 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1477 //!								   Verify the number of service records being found.
       
  1478 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1479 //!								   Verify the resulting err code is KErrNone.
       
  1480 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1481 //!									the result of attribute request comes back in the form of a list. 
       
  1482 //!								12. Switch to CSdpAttrValueDES data wrapper. Add a signed integer value to the list. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1483 //!									Verify the resulting err code is KErrNone.
       
  1484 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1485 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1486 //!
       
  1487 //! @SYMTestStatus				Implemented
       
  1488 //! @SYMTestPriority			Low
       
  1489 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1490 //! @SYMTestType				CIT
       
  1491 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1020-0001		
       
  1492 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1493 			SHARED_ACTIVE_SCHEDULER
       
  1494 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1495 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1496 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1497 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1498 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1499 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1500 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1501 			COMMAND		TBTAttridmatchlist1	NewL
       
  1502 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1020-0001command3AddL
       
  1503 			COMMAND		TBTSearchpattern1	NewL
       
  1504 			COMMAND		TBTSearchpattern1	ConstructL
       
  1505 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1020-0001command7AddL
       
  1506 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1507 			COMMAND		TBTAttrValueDES1	StartListL
       
  1508 			COMMAND		TBTAttrValueDES1	BuildIntL		BTSDP-Lists-PublicApi-Active-1020-0001command11BuildIntL
       
  1509 			COMMAND		TBTAttrValueDES1	EndListL
       
  1510 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1020-0001command14NewL
       
  1511 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1020-0001command15SetRecordFilterL
       
  1512 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1020-0001command16NextRecordRequestL
       
  1513 			OUTSTANDING	1000000
       
  1514 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1020-0001command18AttributeRequestL
       
  1515 			OUTSTANDING	1000000
       
  1516 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1020-0001command21AppendValueL
       
  1517 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1020-0001command22AcceptVisitorL
       
  1518 			STORE	CBluetoothSocket1	
       
  1519 			STORE	TBTServiceSecurity1	
       
  1520 			STORE	TBTDevAddrRemote	
       
  1521 			STORE_ACTIVE_SCHEDULER
       
  1522 	END_TEST_BLOCK
       
  1523 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1020-0001		
       
  1524 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1020-0002
       
  1525 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1020-0002
       
  1526 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1020
       
  1527 
       
  1528 
       
  1529 // ****************************************************************************
       
  1530 // Agent Side - CSdpAttrValueDEA API tests
       
  1531 // ****************************************************************************
       
  1532 
       
  1533 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1021
       
  1534 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-10021
       
  1535 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1536 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1537 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1538 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1539 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1540 //!													NewDESL(), StartListL(), EndListL(), BuildNilL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1541 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1542 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1543 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1544 //!								2. Add some attribute ids into the idmatchlist
       
  1545 //!								3. Construct a CSdpSearchPattern object
       
  1546 //!								4. Add service UUID into searchpattern
       
  1547 //!								5. Create a CSdpAttrValueDES object
       
  1548 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1549 //!								   Verify the resulting err code is KErrNone.
       
  1550 //!								7. Set the service record filter with the serchpattern
       
  1551 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1552 //!								   Verify the resulting err code is KErrNone.
       
  1553 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1554 //!								   Verify the number of service records being found.
       
  1555 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1556 //!								   Verify the resulting err code is KErrNone.
       
  1557 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1558 //!									the result of attribute request comes back in the form of a list. 
       
  1559 //!								12. Switch to CSdpAttrValueDES data wrapper. Add a NILL type of element to the list. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1560 //!									Verify the resulting err code is KErrNone.
       
  1561 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1562 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1563 //!
       
  1564 //! @SYMTestStatus				Implemented
       
  1565 //! @SYMTestPriority			Low
       
  1566 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1567 //! @SYMTestType				CIT
       
  1568 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1021-0001	
       
  1569 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1570 			SHARED_ACTIVE_SCHEDULER
       
  1571 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1572 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1573 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1574 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1575 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1576 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1577 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1578 			COMMAND		TBTAttridmatchlist1	NewL
       
  1579 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1021-0001command3AddL
       
  1580 			COMMAND		TBTSearchpattern1	NewL
       
  1581 			COMMAND		TBTSearchpattern1	ConstructL
       
  1582 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1021-0001command7AddL
       
  1583 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1584 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1021-0001command11NewL
       
  1585 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1021-0001command12SetRecordFilterL
       
  1586 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1021-0001command13NextRecordRequestL
       
  1587 			OUTSTANDING	1000000
       
  1588 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1021-0001command15AttributeRequestL
       
  1589 			OUTSTANDING	1000000
       
  1590 			COMMAND		TBTAttrValueDES1	StartListL
       
  1591 			COMMAND		TBTAttrValueDES1	BuildNilL
       
  1592 			COMMAND		TBTAttrValueDES1	EndListL
       
  1593 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1021-0001command21AppendValueL
       
  1594 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1021-0001command22AcceptVisitorL
       
  1595 			STORE	CBluetoothSocket1	
       
  1596 			STORE	TBTServiceSecurity1	
       
  1597 			STORE	TBTDevAddrRemote	
       
  1598 			STORE_ACTIVE_SCHEDULER
       
  1599 	END_TEST_BLOCK
       
  1600 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1021-0001	
       
  1601 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1021-0002
       
  1602 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1021-0002
       
  1603 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1021
       
  1604 
       
  1605 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1022
       
  1606 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1022
       
  1607 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1608 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1609 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1610 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1611 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1612 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1613 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1614 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1615 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1616 //!								2. Add some attribute ids into the idmatchlist
       
  1617 //!								3. Construct a CSdpSearchPattern object
       
  1618 //!								4. Add service UUID into searchpattern
       
  1619 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1620 //!								   Verify the resulting err code is KErrNone.
       
  1621 //!								6. Set the service record filter with the serchpattern
       
  1622 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1623 //!								   Verify the resulting err code is KErrNone.
       
  1624 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1625 //!								   Verify the number of service records being found.
       
  1626 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1627 //!								   Verify the resulting err code is KErrNone.
       
  1628 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1629 //!									the result of attribute request comes back in the form of a list. 
       
  1630 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1631 //!									Verify the resulting err code is KErrNone.
       
  1632 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1633 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1634 //!
       
  1635 //! @SYMTestStatus				Implemented
       
  1636 //! @SYMTestPriority			Low
       
  1637 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1638 //! @SYMTestType				CIT
       
  1639 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1022-0001	
       
  1640 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1641 			SHARED_ACTIVE_SCHEDULER
       
  1642 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1643 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1644 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1645 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1646 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1647 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1648 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1649 			COMMAND		TBTAttridmatchlist1	NewL
       
  1650 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1022-0001command3AddL
       
  1651 			COMMAND		TBTSearchpattern1	NewL
       
  1652 			COMMAND		TBTSearchpattern1	ConstructL
       
  1653 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1022-0001command7AddL
       
  1654 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1655 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1022-0001command11NewL
       
  1656 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1022-0001command12SetRecordFilterL
       
  1657 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1022-0001command13NextRecordRequestL
       
  1658 			OUTSTANDING	1000000
       
  1659 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1022-0001command15AttributeRequestL
       
  1660 			OUTSTANDING	1000000
       
  1661 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1022-0001command18AppendValueL
       
  1662 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1022-0001command19AcceptVisitorL
       
  1663 			STORE	CBluetoothSocket1	
       
  1664 			STORE	TBTServiceSecurity1	
       
  1665 			STORE	TBTDevAddrRemote	
       
  1666 			STORE_ACTIVE_SCHEDULER
       
  1667 	END_TEST_BLOCK
       
  1668 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1022-0001	
       
  1669 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1022-0002
       
  1670 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1022-0002
       
  1671 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1022
       
  1672 
       
  1673 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1023
       
  1674 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1023
       
  1675 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1676 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1677 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1678 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1679 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1680 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1681 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1682 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1683 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1684 //!								2. Add some attribute ids into the idmatchlist
       
  1685 //!								3. Construct a CSdpSearchPattern object
       
  1686 //!								4. Add service UUID into searchpattern
       
  1687 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1688 //!								   Verify the resulting err code is KErrNone.
       
  1689 //!								6. Set the service record filter with the serchpattern
       
  1690 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1691 //!								   Verify the resulting err code is KErrNone.
       
  1692 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1693 //!								   Verify the number of service records being found.
       
  1694 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1695 //!								   Verify the resulting err code is KErrNone.
       
  1696 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1697 //!									the result of attribute request comes back in the form of a list. 
       
  1698 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1699 //!									Verify the resulting err code is KErrNone.
       
  1700 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1701 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1702 //!
       
  1703 //! @SYMTestStatus				Implemented
       
  1704 //! @SYMTestPriority			Low
       
  1705 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1706 //! @SYMTestType				CIT
       
  1707 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1023-0001	
       
  1708 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1709 			SHARED_ACTIVE_SCHEDULER
       
  1710 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1711 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1712 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1713 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1714 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1715 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1716 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1717 			COMMAND		TBTAttridmatchlist1	NewL
       
  1718 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1023-0001command3AddL
       
  1719 			COMMAND		TBTSearchpattern1	NewL
       
  1720 			COMMAND		TBTSearchpattern1	ConstructL
       
  1721 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1023-0001command7AddL
       
  1722 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1723 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1023-0001command11NewL
       
  1724 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1023-0001command12SetRecordFilterL
       
  1725 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1023-0001command13NextRecordRequestL
       
  1726 			OUTSTANDING	1000000
       
  1727 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1023-0001command15AttributeRequestL
       
  1728 			OUTSTANDING	1000000
       
  1729 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1023-0001command18AppendValueL
       
  1730 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1023-0001command19AcceptVisitorL
       
  1731 			STORE	CBluetoothSocket1	
       
  1732 			STORE	TBTServiceSecurity1	
       
  1733 			STORE	TBTDevAddrRemote	
       
  1734 			STORE_ACTIVE_SCHEDULER
       
  1735 	END_TEST_BLOCK
       
  1736 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1023-0001	
       
  1737 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1023-0002
       
  1738 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1023-0002
       
  1739 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1023
       
  1740 
       
  1741 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1024
       
  1742 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1024
       
  1743 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1744 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1745 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1746 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1747 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1748 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1749 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1750 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1751 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1752 //!								2. Add some attribute ids into the idmatchlist
       
  1753 //!								3. Construct a CSdpSearchPattern object
       
  1754 //!								4. Add service UUID into searchpattern
       
  1755 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1756 //!								   Verify the resulting err code is KErrNone.
       
  1757 //!								6. Set the service record filter with the serchpattern
       
  1758 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1759 //!								   Verify the resulting err code is KErrNone.
       
  1760 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1761 //!								   Verify the number of service records being found.
       
  1762 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1763 //!								   Verify the resulting err code is KErrNone.
       
  1764 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1765 //!									the result of attribute request comes back in the form of a list. 
       
  1766 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1767 //!									Verify the resulting err code is KErrNone.
       
  1768 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1769 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1770 //!
       
  1771 //! @SYMTestStatus				Implemented
       
  1772 //! @SYMTestPriority			Low
       
  1773 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1774 //! @SYMTestType				CIT
       
  1775 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1024-0001	
       
  1776 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1777 			SHARED_ACTIVE_SCHEDULER
       
  1778 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1779 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1780 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1781 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1782 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1783 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1784 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1785 			COMMAND		TBTAttridmatchlist1	NewL
       
  1786 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1024-0001command3AddL
       
  1787 			COMMAND		TBTSearchpattern1	NewL
       
  1788 			COMMAND		TBTSearchpattern1	ConstructL
       
  1789 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1024-0001command7AddL
       
  1790 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1791 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1024-0001command11NewL
       
  1792 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1024-0001command12SetRecordFilterL
       
  1793 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1024-0001command13NextRecordRequestL
       
  1794 			OUTSTANDING	1000000
       
  1795 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1024-0001command15AttributeRequestL
       
  1796 			OUTSTANDING	1000000
       
  1797 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1024-0001command18AppendValueL
       
  1798 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1024-0001command19AcceptVisitorL
       
  1799 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-Lists-PublicApi-Active-1024-0001command20DataSize
       
  1800 			STORE	CBluetoothSocket1	
       
  1801 			STORE	TBTServiceSecurity1	
       
  1802 			STORE	TBTDevAddrRemote	
       
  1803 			STORE_ACTIVE_SCHEDULER
       
  1804 	END_TEST_BLOCK
       
  1805 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1024-0001	
       
  1806 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1024-0002
       
  1807 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1024-0002
       
  1808 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1024
       
  1809 
       
  1810 
       
  1811 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1025
       
  1812 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1025
       
  1813 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1814 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1815 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1816 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1817 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1818 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1819 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1820 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1821 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1822 //!								2. Add some attribute ids into the idmatchlist
       
  1823 //!								3. Construct a CSdpSearchPattern object
       
  1824 //!								4. Add service UUID into searchpattern
       
  1825 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1826 //!								   Verify the resulting err code is KErrNone.
       
  1827 //!								6. Set the service record filter with the serchpattern
       
  1828 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1829 //!								   Verify the resulting err code is KErrNone.
       
  1830 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1831 //!								   Verify the number of service records being found.
       
  1832 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1833 //!								   Verify the resulting err code is KErrNone.
       
  1834 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1835 //!									the result of attribute request comes back in the form of a list. 
       
  1836 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1837 //!									Verify the resulting err code is KErrNone.
       
  1838 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1839 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1840 //!
       
  1841 //! @SYMTestStatus				Implemented
       
  1842 //! @SYMTestPriority			Low
       
  1843 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1844 //! @SYMTestType				CIT
       
  1845 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1025-0001	
       
  1846 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1847 			SHARED_ACTIVE_SCHEDULER
       
  1848 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1849 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1850 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1851 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1852 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1853 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1854 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1855 			COMMAND		TBTAttridmatchlist1	NewL
       
  1856 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1025-0001command3AddL
       
  1857 			COMMAND		TBTSearchpattern1	NewL
       
  1858 			COMMAND		TBTSearchpattern1	ConstructL
       
  1859 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1025-0001command7AddL
       
  1860 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1861 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1025-0001command11NewL
       
  1862 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1025-0001command12SetRecordFilterL
       
  1863 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1025-0001command13NextRecordRequestL
       
  1864 			OUTSTANDING	1000000
       
  1865 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1025-0001command15AttributeRequestL
       
  1866 			OUTSTANDING	1000000
       
  1867 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1025-0001command18AppendValueL
       
  1868 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1025-0001command19AcceptVisitorL
       
  1869 			STORE	CBluetoothSocket1	
       
  1870 			STORE	TBTServiceSecurity1	
       
  1871 			STORE	TBTDevAddrRemote	
       
  1872 			STORE_ACTIVE_SCHEDULER
       
  1873 	END_TEST_BLOCK
       
  1874 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1025-0001	
       
  1875 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1025-0002
       
  1876 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1025-0002
       
  1877 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1025
       
  1878 
       
  1879 
       
  1880 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1026
       
  1881 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1026
       
  1882 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1883 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1884 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1885 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1886 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1887 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1888 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1889 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1890 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1891 //!								2. Add some attribute ids into the idmatchlist
       
  1892 //!								3. Construct a CSdpSearchPattern object
       
  1893 //!								4. Add service UUID into searchpattern
       
  1894 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1895 //!								   Verify the resulting err code is KErrNone.
       
  1896 //!								6. Set the service record filter with the serchpattern
       
  1897 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1898 //!								   Verify the resulting err code is KErrNone.
       
  1899 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1900 //!								   Verify the number of service records being found.
       
  1901 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1902 //!								   Verify the resulting err code is KErrNone.
       
  1903 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1904 //!									the result of attribute request comes back in the form of a list. 
       
  1905 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1906 //!									Verify the resulting err code is KErrNone.
       
  1907 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1908 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1909 //!
       
  1910 //! @SYMTestStatus				Implemented
       
  1911 //! @SYMTestPriority			Low
       
  1912 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1913 //! @SYMTestType				CIT
       
  1914 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1026-0001	
       
  1915 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1916 			SHARED_ACTIVE_SCHEDULER
       
  1917 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1918 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1919 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1920 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1921 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1922 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1923 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1924 			COMMAND		TBTAttridmatchlist1	NewL
       
  1925 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1026-0001command3AddL
       
  1926 			COMMAND		TBTSearchpattern1	NewL
       
  1927 			COMMAND		TBTSearchpattern1	ConstructL
       
  1928 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1026-0001command7AddL
       
  1929 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1930 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1026-0001command11NewL
       
  1931 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1026-0001command12SetRecordFilterL
       
  1932 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1026-0001command13NextRecordRequestL
       
  1933 			OUTSTANDING	1000000
       
  1934 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1026-0001command15AttributeRequestL
       
  1935 			OUTSTANDING	1000000
       
  1936 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1026-0001command18AppendValueL
       
  1937 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1026-0001command19AcceptVisitorL
       
  1938 			STORE	CBluetoothSocket1	
       
  1939 			STORE	TBTServiceSecurity1	
       
  1940 			STORE	TBTDevAddrRemote	
       
  1941 			STORE_ACTIVE_SCHEDULER
       
  1942 	END_TEST_BLOCK
       
  1943 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1026-0001	
       
  1944 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1026-0002
       
  1945 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1026-0002
       
  1946 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1026
       
  1947 
       
  1948 
       
  1949 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1027
       
  1950 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1027
       
  1951 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1952 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1953 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1954 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  1955 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1956 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1957 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1958 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1959 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1960 //!								2. Add some attribute ids into the idmatchlist
       
  1961 //!								3. Construct a CSdpSearchPattern object
       
  1962 //!								4. Add service UUID into searchpattern
       
  1963 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1964 //!								   Verify the resulting err code is KErrNone.
       
  1965 //!								6. Set the service record filter with the serchpattern
       
  1966 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1967 //!								   Verify the resulting err code is KErrNone.
       
  1968 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1969 //!								   Verify the number of service records being found.
       
  1970 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1971 //!								   Verify the resulting err code is KErrNone.
       
  1972 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1973 //!									the result of attribute request comes back in the form of a list. 
       
  1974 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1975 //!									Verify the resulting err code is KErrNone.
       
  1976 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1977 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1978 //!
       
  1979 //! @SYMTestStatus				Implemented
       
  1980 //! @SYMTestPriority			Low
       
  1981 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1982 //! @SYMTestType				CIT
       
  1983 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1027-0001	
       
  1984 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  1985 			SHARED_ACTIVE_SCHEDULER
       
  1986 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1987 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1988 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1989 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1990 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1991 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1992 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1993 			COMMAND		TBTAttridmatchlist1	NewL
       
  1994 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1027-0001command3AddL
       
  1995 			COMMAND		TBTSearchpattern1	NewL
       
  1996 			COMMAND		TBTSearchpattern1	ConstructL
       
  1997 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1027-0001command7AddL
       
  1998 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1999 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1027-0001command11NewL
       
  2000 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1027-0001command12SetRecordFilterL
       
  2001 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1027-0001command13NextRecordRequestL
       
  2002 			OUTSTANDING	1000000
       
  2003 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1027-0001command15AttributeRequestL
       
  2004 			OUTSTANDING	1000000
       
  2005 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1027-0001command18AppendValueL
       
  2006 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1027-0001command19AcceptVisitorL
       
  2007 			STORE	CBluetoothSocket1	
       
  2008 			STORE	TBTServiceSecurity1	
       
  2009 			STORE	TBTDevAddrRemote	
       
  2010 			STORE_ACTIVE_SCHEDULER
       
  2011 	END_TEST_BLOCK
       
  2012 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1027-0001	
       
  2013 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1027-0002
       
  2014 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1027-0002
       
  2015 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1027
       
  2016 
       
  2017 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1028
       
  2018 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1028
       
  2019 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2020 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2021 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2022 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2023 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2024 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2025 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2026 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2027 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2028 //!								2. Add some attribute ids into the idmatchlist
       
  2029 //!								3. Construct a CSdpSearchPattern object
       
  2030 //!								4. Add service UUID into searchpattern
       
  2031 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  2032 //!								   Verify the resulting err code is KErrNone.
       
  2033 //!								6. Set the service record filter with the serchpattern
       
  2034 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  2035 //!								   Verify the resulting err code is KErrNone.
       
  2036 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2037 //!								   Verify the number of service records being found.
       
  2038 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  2039 //!								   Verify the resulting err code is KErrNone.
       
  2040 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2041 //!									the result of attribute request comes back in the form of a list. 
       
  2042 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2043 //!									Verify the resulting err code is KErrNone.
       
  2044 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2045 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2046 //!
       
  2047 //! @SYMTestStatus				Implemented
       
  2048 //! @SYMTestPriority			Low
       
  2049 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2050 //! @SYMTestType				CIT
       
  2051 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1028-0001	
       
  2052 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2053 			SHARED_ACTIVE_SCHEDULER
       
  2054 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2055 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2056 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2057 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2058 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2059 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2060 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2061 			COMMAND		TBTAttridmatchlist1	NewL
       
  2062 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1028-0001command3AddL
       
  2063 			COMMAND		TBTSearchpattern1	NewL
       
  2064 			COMMAND		TBTSearchpattern1	ConstructL
       
  2065 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1028-0001command7AddL
       
  2066 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2067 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1028-0001command11NewL
       
  2068 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1028-0001command12SetRecordFilterL
       
  2069 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1028-0001command13NextRecordRequestL
       
  2070 			OUTSTANDING	1000000
       
  2071 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1028-0001command15AttributeRequestL
       
  2072 			OUTSTANDING	1000000
       
  2073 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1028-0001command18AppendValueL
       
  2074 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1028-0001command19AcceptVisitorL
       
  2075 			STORE	CBluetoothSocket1	
       
  2076 			STORE	TBTServiceSecurity1	
       
  2077 			STORE	TBTDevAddrRemote	
       
  2078 			STORE_ACTIVE_SCHEDULER
       
  2079 	END_TEST_BLOCK
       
  2080 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1028-0001	
       
  2081 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1028-0002
       
  2082 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1028-0002
       
  2083 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1028
       
  2084 
       
  2085 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1029
       
  2086 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1029
       
  2087 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2088 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2089 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2090 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2091 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2092 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2093 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2094 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2095 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2096 //!								2. Add some attribute ids into the idmatchlist
       
  2097 //!								3. Construct a CSdpSearchPattern object
       
  2098 //!								4. Add service UUID into searchpattern
       
  2099 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  2100 //!								   Verify the resulting err code is KErrNone.
       
  2101 //!								6. Set the service record filter with the serchpattern
       
  2102 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  2103 //!								   Verify the resulting err code is KErrNone.
       
  2104 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2105 //!								   Verify the number of service records being found.
       
  2106 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  2107 //!								   Verify the resulting err code is KErrNone.
       
  2108 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2109 //!									the result of attribute request comes back in the form of a list. 
       
  2110 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2111 //!									Verify the resulting err code is KErrNone.
       
  2112 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2113 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2114 //!
       
  2115 //! @SYMTestStatus				Implemented
       
  2116 //! @SYMTestPriority			Low
       
  2117 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2118 //! @SYMTestType				CIT
       
  2119 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1029-0001	
       
  2120 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2121 			SHARED_ACTIVE_SCHEDULER
       
  2122 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2123 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2124 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2125 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2126 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2127 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2128 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2129 			COMMAND		TBTAttridmatchlist1	NewL
       
  2130 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1029-0001command3AddL
       
  2131 			COMMAND		TBTSearchpattern1	NewL
       
  2132 			COMMAND		TBTSearchpattern1	ConstructL
       
  2133 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1029-0001command7AddL
       
  2134 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2135 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1029-0001command11NewL
       
  2136 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1029-0001command12SetRecordFilterL
       
  2137 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1029-0001command13NextRecordRequestL
       
  2138 			OUTSTANDING	1000000
       
  2139 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1029-0001command15AttributeRequestL
       
  2140 			OUTSTANDING	1000000
       
  2141 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1029-0001command18AppendValueL
       
  2142 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1029-0001command19AcceptVisitorL
       
  2143 			STORE	CBluetoothSocket1	
       
  2144 			STORE	TBTServiceSecurity1	
       
  2145 			STORE	TBTDevAddrRemote	
       
  2146 			STORE_ACTIVE_SCHEDULER
       
  2147 	END_TEST_BLOCK
       
  2148 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1029-0001	
       
  2149 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1029-0002
       
  2150 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1029-0002
       
  2151 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1029
       
  2152 
       
  2153 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1030
       
  2154 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1030
       
  2155 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2156 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2157 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2158 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2159 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2160 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2161 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2162 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2163 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2164 //!								2. Add some attribute ids into the idmatchlist
       
  2165 //!								3. Construct a CSdpSearchPattern object
       
  2166 //!								4. Add service UUID into searchpattern
       
  2167 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  2168 //!								   Verify the resulting err code is KErrNone.
       
  2169 //!								6. Set the service record filter with the serchpattern
       
  2170 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  2171 //!								   Verify the resulting err code is KErrNone.
       
  2172 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2173 //!								   Verify the number of service records being found.
       
  2174 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  2175 //!								   Verify the resulting err code is KErrNone.
       
  2176 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2177 //!									the result of attribute request comes back in the form of a list. 
       
  2178 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2179 //!									Verify the resulting err code is KErrNone.
       
  2180 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2181 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2182 //!
       
  2183 //! @SYMTestStatus				Implemented
       
  2184 //! @SYMTestPriority			Low
       
  2185 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2186 //! @SYMTestType				CIT
       
  2187 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1030-0001	
       
  2188 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2189 			SHARED_ACTIVE_SCHEDULER
       
  2190 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2191 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2192 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2193 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2194 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2195 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2196 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2197 			COMMAND		TBTAttridmatchlist1	NewL
       
  2198 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1030-0001command3AddL
       
  2199 			COMMAND		TBTSearchpattern1	NewL
       
  2200 			COMMAND		TBTSearchpattern1	ConstructL
       
  2201 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1030-0001command7AddL
       
  2202 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2203 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1030-0001command11NewL
       
  2204 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1030-0001command12SetRecordFilterL
       
  2205 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1030-0001command13NextRecordRequestL
       
  2206 			OUTSTANDING	1000000
       
  2207 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1030-0001command15AttributeRequestL
       
  2208 			OUTSTANDING	1000000
       
  2209 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1030-0001command18AppendValueL
       
  2210 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1030-0001command19AcceptVisitorL
       
  2211 			STORE	CBluetoothSocket1	
       
  2212 			STORE	TBTServiceSecurity1	
       
  2213 			STORE	TBTDevAddrRemote	
       
  2214 			STORE_ACTIVE_SCHEDULER
       
  2215 	END_TEST_BLOCK
       
  2216 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1030-0001	
       
  2217 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1030-0002
       
  2218 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1030-0002
       
  2219 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1030
       
  2220 
       
  2221 
       
  2222 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1031
       
  2223 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1031
       
  2224 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2225 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2226 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2227 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2228 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2229 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2230 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2231 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2232 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2233 //!								2. Add some attribute ids into the idmatchlist
       
  2234 //!								3. Construct a CSdpSearchPattern object
       
  2235 //!								4. Add service UUID into searchpattern
       
  2236 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  2237 //!								   Verify the resulting err code is KErrNone.
       
  2238 //!								6. Set the service record filter with the serchpattern
       
  2239 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  2240 //!								   Verify the resulting err code is KErrNone.
       
  2241 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2242 //!								   Verify the number of service records being found.
       
  2243 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  2244 //!								   Verify the resulting err code is KErrNone.
       
  2245 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2246 //!									the result of attribute request comes back in the form of a list. 
       
  2247 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2248 //!									Verify the resulting err code is KErrNone.
       
  2249 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2250 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2251 //!
       
  2252 //! @SYMTestStatus				Implemented
       
  2253 //! @SYMTestPriority			Low
       
  2254 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2255 //! @SYMTestType				CIT
       
  2256 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1031-0001	
       
  2257 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2258 			SHARED_ACTIVE_SCHEDULER
       
  2259 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2260 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2261 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2262 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2263 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2264 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2265 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2266 			COMMAND		TBTAttridmatchlist1	NewL
       
  2267 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1031-0001command3AddL
       
  2268 			COMMAND		TBTSearchpattern1	NewL
       
  2269 			COMMAND		TBTSearchpattern1	ConstructL
       
  2270 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1031-0001command7AddL
       
  2271 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2272 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1031-0001command11NewL
       
  2273 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1031-0001command12SetRecordFilterL
       
  2274 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1031-0001command13NextRecordRequestL
       
  2275 			OUTSTANDING	1000000
       
  2276 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1031-0001command15AttributeRequestL
       
  2277 			OUTSTANDING	1000000
       
  2278 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1031-0001command18AppendValueL
       
  2279 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1031-0001command19AcceptVisitorL
       
  2280 			STORE	CBluetoothSocket1	
       
  2281 			STORE	TBTServiceSecurity1	
       
  2282 			STORE	TBTDevAddrRemote	
       
  2283 			STORE_ACTIVE_SCHEDULER
       
  2284 	END_TEST_BLOCK
       
  2285 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1031-0001	
       
  2286 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1031-0002
       
  2287 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1031-0002
       
  2288 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1031
       
  2289 
       
  2290 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1032
       
  2291 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Master-1032
       
  2292 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2293 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2294 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2295 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2296 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2297 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2298 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2299 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2300 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2301 //!								2. Add some attribute ids into the idmatchlist
       
  2302 //!								3. Construct a CSdpSearchPattern object
       
  2303 //!								4. Add service UUID into searchpattern
       
  2304 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  2305 //!								   Verify the resulting err code is KErrNone.
       
  2306 //!								6. Set the service record filter with the serchpattern
       
  2307 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  2308 //!								   Verify the resulting err code is KErrNone.
       
  2309 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2310 //!								   Verify the number of service records being found.
       
  2311 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  2312 //!								   Verify the resulting err code is KErrNone.
       
  2313 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2314 //!									the result of attribute request comes back in the form of a list. 
       
  2315 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2316 //!									Verify the resulting err code is KErrNone.
       
  2317 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2318 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2319 //!
       
  2320 //! @SYMTestStatus				Implemented
       
  2321 //! @SYMTestPriority			Low
       
  2322 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2323 //! @SYMTestType				CIT
       
  2324 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1032-0001	
       
  2325 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2326 			SHARED_ACTIVE_SCHEDULER
       
  2327 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2328 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2329 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2330 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2331 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2332 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2333 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2334 			COMMAND		TBTAttridmatchlist1	NewL
       
  2335 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1032-0001command3AddL
       
  2336 			COMMAND		TBTSearchpattern1	NewL
       
  2337 			COMMAND		TBTSearchpattern1	ConstructL
       
  2338 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1032-0001command7AddL
       
  2339 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2340 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1032-0001command11NewL
       
  2341 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1032-0001command12SetRecordFilterL
       
  2342 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1032-0001command13NextRecordRequestL
       
  2343 			OUTSTANDING	1000000
       
  2344 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1032-0001command15AttributeRequestL
       
  2345 			OUTSTANDING	1000000
       
  2346 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1032-0001command18AppendValueL
       
  2347 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1032-0001command19AcceptVisitorL
       
  2348 			STORE	CBluetoothSocket1	
       
  2349 			STORE	TBTServiceSecurity1	
       
  2350 			STORE	TBTDevAddrRemote	
       
  2351 			STORE_ACTIVE_SCHEDULER
       
  2352 	END_TEST_BLOCK
       
  2353 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1032-0001	
       
  2354 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1032-0002
       
  2355 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1032-0002
       
  2356 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1032
       
  2357 
       
  2358 
       
  2359 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1033
       
  2360 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1033
       
  2361 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2362 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2363 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2364 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2365 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2366 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2367 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2368 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2369 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2370 //!								2. Add some attribute ids into the idmatchlist
       
  2371 //!								3. Construct a CSdpSearchPattern object
       
  2372 //!								4. Add service UUID into searchpattern
       
  2373 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  2374 //!								   Verify the resulting err code is KErrNone.
       
  2375 //!								6. Set the service record filter with the serchpattern
       
  2376 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  2377 //!								   Verify the resulting err code is KErrNone.
       
  2378 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2379 //!								   Verify the number of service records being found.
       
  2380 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  2381 //!								   Verify the resulting err code is KErrNone.
       
  2382 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2383 //!									the result of attribute request comes back in the form of a list. 
       
  2384 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2385 //!									Verify the resulting err code is KErrNone.
       
  2386 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2387 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2388 //!
       
  2389 //! @SYMTestStatus				Implemented
       
  2390 //! @SYMTestPriority			Low
       
  2391 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2392 //! @SYMTestType				CIT
       
  2393 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1033-0001	
       
  2394 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2395 			SHARED_ACTIVE_SCHEDULER
       
  2396 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2397 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2398 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2399 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2400 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2401 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2402 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2403 			COMMAND		TBTAttridmatchlist1	NewL
       
  2404 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1033-0001command3AddL
       
  2405 			COMMAND		TBTSearchpattern1	NewL
       
  2406 			COMMAND		TBTSearchpattern1	ConstructL
       
  2407 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1033-0001command7AddL
       
  2408 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2409 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1033-0001command11NewL
       
  2410 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1033-0001command12SetRecordFilterL
       
  2411 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1033-0001command13NextRecordRequestL
       
  2412 			OUTSTANDING	1000000
       
  2413 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1033-0001command15AttributeRequestL
       
  2414 			OUTSTANDING	1000000
       
  2415 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1033-0001command18AppendValueL
       
  2416 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1033-0001command19AcceptVisitorL
       
  2417 			STORE	CBluetoothSocket1	
       
  2418 			STORE	TBTServiceSecurity1	
       
  2419 			STORE	TBTDevAddrRemote	
       
  2420 			STORE_ACTIVE_SCHEDULER
       
  2421 	END_TEST_BLOCK
       
  2422 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1033-0001	
       
  2423 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1033-0002
       
  2424 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1033-0002
       
  2425 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1033
       
  2426 
       
  2427 
       
  2428 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1034
       
  2429 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1034
       
  2430 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2431 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2432 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2433 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2434 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2435 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2436 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2437 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2438 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2439 //!								2. Add some attribute ids into the idmatchlist
       
  2440 //!								3. Construct a CSdpSearchPattern object
       
  2441 //!								4. Add service UUID into searchpattern
       
  2442 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  2443 //!								   Verify the resulting err code is KErrNone.
       
  2444 //!								6. Set the service record filter with the serchpattern
       
  2445 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  2446 //!								   Verify the resulting err code is KErrNone.
       
  2447 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2448 //!								   Verify the number of service records being found.
       
  2449 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  2450 //!								   Verify the resulting err code is KErrNone.
       
  2451 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2452 //!									the result of attribute request comes back in the form of a list. 
       
  2453 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2454 //!									Verify the resulting err code is KErrNone.
       
  2455 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2456 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2457 //!
       
  2458 //! @SYMTestStatus				Implemented
       
  2459 //! @SYMTestPriority			Low
       
  2460 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2461 //! @SYMTestType				CIT
       
  2462 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1034-0001	
       
  2463 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2464 			SHARED_ACTIVE_SCHEDULER
       
  2465 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2466 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2467 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2468 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2469 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2470 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2471 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2472 			COMMAND		TBTAttridmatchlist1	NewL
       
  2473 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1034-0001command3AddL
       
  2474 			COMMAND		TBTSearchpattern1	NewL
       
  2475 			COMMAND		TBTSearchpattern1	ConstructL
       
  2476 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1034-0001command7AddL
       
  2477 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2478 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1034-0001command11NewL
       
  2479 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1034-0001command12SetRecordFilterL
       
  2480 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1034-0001command13NextRecordRequestL
       
  2481 			OUTSTANDING	1000000
       
  2482 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1034-0001command15AttributeRequestL
       
  2483 			OUTSTANDING	1000000
       
  2484 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1034-0001command18AppendValueL
       
  2485 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1034-0001command19AcceptVisitorL
       
  2486 			STORE	CBluetoothSocket1	
       
  2487 			STORE	TBTServiceSecurity1	
       
  2488 			STORE	TBTDevAddrRemote	
       
  2489 			STORE_ACTIVE_SCHEDULER
       
  2490 	END_TEST_BLOCK
       
  2491 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1034-0001	
       
  2492 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1034-0002
       
  2493 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1034-0002
       
  2494 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1034
       
  2495 
       
  2496 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1035
       
  2497 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1035
       
  2498 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2499 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2500 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2501 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2502 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2503 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2504 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2505 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2506 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2507 //!								2. Add some attribute ids into the idmatchlist
       
  2508 //!								3. Construct a CSdpSearchPattern object
       
  2509 //!								4. Add service UUID into searchpattern
       
  2510 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  2511 //!								   Verify the resulting err code is KErrNone.
       
  2512 //!								6. Set the service record filter with the serchpattern
       
  2513 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  2514 //!								   Verify the resulting err code is KErrNone.
       
  2515 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2516 //!								   Verify the number of service records being found.
       
  2517 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  2518 //!								   Verify the resulting err code is KErrNone.
       
  2519 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2520 //!									the result of attribute request comes back in the form of a list. 
       
  2521 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2522 //!									Verify the resulting err code is KErrNone.
       
  2523 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2524 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2525 //!
       
  2526 //! @SYMTestStatus				Implemented
       
  2527 //! @SYMTestPriority			Low
       
  2528 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2529 //! @SYMTestType				CIT
       
  2530 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1035-0001	
       
  2531 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2532 			SHARED_ACTIVE_SCHEDULER
       
  2533 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2534 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2535 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2536 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2537 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2538 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2539 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2540 			COMMAND		TBTAttridmatchlist1	NewL
       
  2541 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1035-0001command3AddL
       
  2542 			COMMAND		TBTSearchpattern1	NewL
       
  2543 			COMMAND		TBTSearchpattern1	ConstructL
       
  2544 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1035-0001command7AddL
       
  2545 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2546 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1035-0001command11NewL
       
  2547 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1035-0001command12SetRecordFilterL
       
  2548 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1035-0001command13NextRecordRequestL
       
  2549 			OUTSTANDING	1000000
       
  2550 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1035-0001command15AttributeRequestL
       
  2551 			OUTSTANDING	1000000
       
  2552 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1035-0001command18AppendValueL
       
  2553 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1035-0001command19AcceptVisitorL
       
  2554 			STORE	CBluetoothSocket1	
       
  2555 			STORE	TBTServiceSecurity1	
       
  2556 			STORE	TBTDevAddrRemote	
       
  2557 			STORE_ACTIVE_SCHEDULER
       
  2558 	END_TEST_BLOCK
       
  2559 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1035-0001	
       
  2560 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1035-0002
       
  2561 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1035-0002
       
  2562 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1035
       
  2563 
       
  2564 // ****************************************************************************
       
  2565 // Agent Side - CSdpAttrValueUUID API Test
       
  2566 // ****************************************************************************
       
  2567 
       
  2568 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1036
       
  2569 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1036
       
  2570 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2571 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2572 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2573 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2574 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2575 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2576 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2577 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2578 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2579 //!								2. Add some attribute ids into the idmatchlist
       
  2580 //!								3. Construct a CSdpSearchPattern object
       
  2581 //!								4. Add service UUID into searchpattern
       
  2582 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  2583 //!								   Verify the resulting err code is KErrNone.
       
  2584 //!								6. Set the service record filter with the serchpattern
       
  2585 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  2586 //!								   Verify the resulting err code is KErrNone.
       
  2587 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2588 //!								   Verify the number of service records being found.
       
  2589 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  2590 //!								   Verify the resulting err code is KErrNone.
       
  2591 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2592 //!									the result of attribute request comes back in the form of a list. 
       
  2593 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2594 //!									Verify the resulting err code is KErrNone.
       
  2595 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2596 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2597 //!
       
  2598 //! @SYMTestStatus				Implemented
       
  2599 //! @SYMTestPriority			Low
       
  2600 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2601 //! @SYMTestType				CIT
       
  2602 
       
  2603 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1036-0001	
       
  2604 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2605 			SHARED_ACTIVE_SCHEDULER
       
  2606 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2607 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2608 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2609 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2610 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2611 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2612 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2613 			COMMAND		TBTAttridmatchlist1	NewL
       
  2614 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1036-0001command3AddL
       
  2615 			COMMAND		TBTSearchpattern1	NewL
       
  2616 			COMMAND		TBTSearchpattern1	ConstructL
       
  2617 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1036-0001command7AddL
       
  2618 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2619 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1036-0001command11NewL
       
  2620 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1036-0001command12SetRecordFilterL
       
  2621 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1036-0001command13NextRecordRequestL
       
  2622 			OUTSTANDING	1000000
       
  2623 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1036-0001command15AttributeRequestL
       
  2624 			OUTSTANDING	1000000
       
  2625 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1036-0001command18AppendValueL
       
  2626 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1036-0001command19AcceptVisitorL
       
  2627 			STORE	CBluetoothSocket1	
       
  2628 			STORE	TBTServiceSecurity1	
       
  2629 			STORE	TBTDevAddrRemote	
       
  2630 			STORE_ACTIVE_SCHEDULER
       
  2631 	END_TEST_BLOCK
       
  2632 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1036-0001	
       
  2633 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1036-0002
       
  2634 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1036-0002
       
  2635 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1036
       
  2636 
       
  2637 
       
  2638 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1037
       
  2639 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1037
       
  2640 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  2641 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2642 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2643 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2644 //!													NewDESL() from CSdpAttrValueDES
       
  2645 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2646 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2647 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2648 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2649 //!								2. Add some attribute ids into the idmatchlist
       
  2650 //!								3. Construct a CSdpSearchPattern object
       
  2651 //!								4. Add service UUID into searchpattern
       
  2652 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  2653 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  2654 //!								   Verify the resulting err code is KErrNone.
       
  2655 //!								7. Set the service record filter with the serchpattern
       
  2656 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  2657 //!								   Verify the resulting err code is KErrNone.
       
  2658 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2659 //!								   Verify that the service record has been retrieved.
       
  2660 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  2661 //!									Verify the resulting err code is KErrNone.
       
  2662 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  2663 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  2664 //!								12. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  2665 //!									Verify the resulting err code is KErrNone.
       
  2666 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2667 //!
       
  2668 //! @SYMTestStatus				Implemented
       
  2669 //! @SYMTestPriority			Critical
       
  2670 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  2671 //! @SYMTestType				CIT
       
  2672 
       
  2673 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1037-0001	
       
  2674 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2675 			SHARED_ACTIVE_SCHEDULER
       
  2676 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2677 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2678 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2679 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2680 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2681 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2682 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2683 			COMMAND		TBTAttridmatchlist1	NewL
       
  2684 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1037-0001command3AddL
       
  2685 			COMMAND		TBTSearchpattern1	NewL
       
  2686 			COMMAND		TBTSearchpattern1	ConstructL
       
  2687 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1037-0001command7AddL
       
  2688 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2689 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1037-0001command11NewL
       
  2690 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1037-0001command12SetRecordFilterL
       
  2691 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1037-0001command13NextRecordRequestL
       
  2692 			OUTSTANDING	1000000
       
  2693 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1037-0001command15AttributeRequestL
       
  2694 			OUTSTANDING	1000000
       
  2695 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1037-0001command18AppendValueL
       
  2696 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1037-0001command19AcceptVisitorL
       
  2697 			STORE	CBluetoothSocket1	
       
  2698 			STORE	TBTServiceSecurity1	
       
  2699 			STORE	TBTDevAddrRemote	
       
  2700 			STORE_ACTIVE_SCHEDULER
       
  2701 	END_TEST_BLOCK
       
  2702 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1037-0001	
       
  2703 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1037-0002
       
  2704 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1037-0002
       
  2705 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1037
       
  2706 
       
  2707 
       
  2708 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1038
       
  2709 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1038
       
  2710 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2711 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2712 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2713 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2714 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2715 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2716 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2717 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2718 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2719 //!								2. Add some attribute ids into the idmatchlist
       
  2720 //!								3. Construct a CSdpSearchPattern object
       
  2721 //!								4. Add service UUID into searchpattern
       
  2722 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  2723 //!								   Verify the resulting err code is KErrNone.
       
  2724 //!								6. Set the service record filter with the serchpattern
       
  2725 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  2726 //!								   Verify the resulting err code is KErrNone.
       
  2727 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2728 //!								   Verify the number of service records being found.
       
  2729 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  2730 //!								   Verify the resulting err code is KErrNone.
       
  2731 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2732 //!									the result of attribute request comes back in the form of a list. 
       
  2733 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2734 //!									Verify the resulting err code is KErrNone.
       
  2735 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2736 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2737 //!
       
  2738 //! @SYMTestStatus				Implemented
       
  2739 //! @SYMTestPriority			Low
       
  2740 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2741 //! @SYMTestType				CIT
       
  2742 
       
  2743 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1038-0001	
       
  2744 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2745 			SHARED_ACTIVE_SCHEDULER
       
  2746 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2747 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2748 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2749 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2750 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2751 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2752 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2753 			COMMAND		TBTAttridmatchlist1	NewL
       
  2754 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1038-0001command3AddL
       
  2755 			COMMAND		TBTSearchpattern1	NewL
       
  2756 			COMMAND		TBTSearchpattern1	ConstructL
       
  2757 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1038-0001command7AddL
       
  2758 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2759 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1038-0001command11NewL
       
  2760 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1038-0001command12SetRecordFilterL
       
  2761 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1038-0001command13NextRecordRequestL
       
  2762 			OUTSTANDING	1000000
       
  2763 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1038-0001command15AttributeRequestL
       
  2764 			OUTSTANDING	1000000
       
  2765 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1038-0001command18AppendValueL
       
  2766 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1038-0001command19AcceptVisitorL
       
  2767 			STORE	CBluetoothSocket1	
       
  2768 			STORE	TBTServiceSecurity1	
       
  2769 			STORE	TBTDevAddrRemote	
       
  2770 			STORE_ACTIVE_SCHEDULER
       
  2771 	END_TEST_BLOCK
       
  2772 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1038-0001	
       
  2773 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1038-0002
       
  2774 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1038-0002
       
  2775 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1038
       
  2776 
       
  2777 
       
  2778 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1039
       
  2779 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1039
       
  2780 //! @SYMAPI						CSdpAgent, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  2781 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2782 //!								Uses API elements: 	NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2783 //!													NewDESL() from CSdpAttrValueDES
       
  2784 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2785 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2786 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2787 //! @SYMTestActions				1. Construct a CSdpSearchPattern object
       
  2788 //!								2. Add service UUID into searchpattern
       
  2789 //!								3. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  2790 //!								   Verify the resulting err code is KErrNone.
       
  2791 //!								4. Set the service record filter with the serchpattern
       
  2792 //!								5. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  2793 //!								   Verify the resulting err code is KErrNone.
       
  2794 //!								6. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2795 //!								   Verify that the service record has been retrieved.
       
  2796 //!								7. Search for a particular service attribute of the service
       
  2797 //!								8. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2798 //!								   the result of attribute request comes back in the form of a list.
       
  2799 //!								9. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2800 //!								   Verify the resulting err code is KErrNone.
       
  2801 //!								10. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2802 //!								11. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2803 //!								12. Make another service attribute request
       
  2804 //!								13. Cancel the request 
       
  2805 //!
       
  2806 //! @SYMTestStatus				Implemented
       
  2807 //! @SYMTestPriority			Critical
       
  2808 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2809 //! @SYMTestType				CIT
       
  2810 
       
  2811 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1039-0001	
       
  2812 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2813 			SHARED_ACTIVE_SCHEDULER
       
  2814 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2815 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2816 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2817 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2818 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2819 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2820 			COMMAND		TBTSearchpattern1	NewL
       
  2821 			COMMAND		TBTSearchpattern1	ConstructL
       
  2822 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1039-0001command4AddL
       
  2823 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2824 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1039-0001command8NewL
       
  2825 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1039-0001command9SetRecordFilterL
       
  2826 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  2827 			OUTSTANDING	1000000
       
  2828 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1039-0001command12AttributeRequestL
       
  2829 			OUTSTANDING	1000000
       
  2830 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1039-0001command15AcceptVisitorL
       
  2831 			STORE	CBluetoothSocket1	
       
  2832 			STORE	TBTServiceSecurity1	
       
  2833 			STORE	TBTDevAddrRemote	
       
  2834 			STORE_ACTIVE_SCHEDULER
       
  2835 	END_TEST_BLOCK
       
  2836 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1039-0001	
       
  2837 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1039-0002
       
  2838 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1039-0002
       
  2839 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1039
       
  2840 
       
  2841 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1040
       
  2842 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1040
       
  2843 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES
       
  2844 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2845 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2846 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2847 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2848 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2849 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL(), SetAttributePredictorListL() from CSdpAgent
       
  2850 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2851 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2852 //!								2. Add some attribute ids into the attridmatchlist
       
  2853 //!								3. Construct a CSdpSearchPattern object
       
  2854 //!								4. Add service UUID into searchpattern
       
  2855 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  2856 //!								   Verify the resulting err code is KErrNone.
       
  2857 //!								6. Set the service record filter with the serchpattern
       
  2858 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  2859 //!								   Verify the resulting err code is KErrNone.
       
  2860 //!								8. Set the predictor list with the attridmatchlist of step 1 
       
  2861 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2862 //!								   Verify that the service record has been retrieved.
       
  2863 //!								10. Search for a particular service attribute of the service 
       
  2864 //!									Verify the resulting err code is KErrNone.
       
  2865 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2866 //!									the result of attribute request comes back in the form of a list.
       
  2867 //!								12. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2868 //!									Verify the resulting err code is KErrNone.
       
  2869 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2870 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2871 //!
       
  2872 //! @SYMTestStatus				Implemented
       
  2873 //! @SYMTestPriority			High
       
  2874 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  2875 //! @SYMTestType				CIT
       
  2876 
       
  2877 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1040-0001	
       
  2878 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2879 			SHARED_ACTIVE_SCHEDULER
       
  2880 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2881 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2882 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2883 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2884 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2885 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2886 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2887 			COMMAND		TBTAttridmatchlist1	NewL
       
  2888 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1040-0001command3AddL
       
  2889 			COMMAND		TBTSearchpattern1	NewL
       
  2890 			COMMAND		TBTSearchpattern1	ConstructL
       
  2891 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1040-0001command7AddL
       
  2892 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2893 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1040-0001command11NewL
       
  2894 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1040-0001command12SetRecordFilterL
       
  2895 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1040-0001command13NextRecordRequestL
       
  2896 			OUTSTANDING	1000000
       
  2897 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1040-0001command15AttributeRequestL
       
  2898 			OUTSTANDING	1000000
       
  2899 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1040-0001command18AppendValueL
       
  2900 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1040-0001command19AcceptVisitorL
       
  2901 			STORE	CBluetoothSocket1	
       
  2902 			STORE	TBTServiceSecurity1	
       
  2903 			STORE	TBTDevAddrRemote	
       
  2904 			STORE_ACTIVE_SCHEDULER
       
  2905 	END_TEST_BLOCK
       
  2906 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1040-0001	
       
  2907 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1040-0002
       
  2908 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1040-0002
       
  2909 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1040
       
  2910 
       
  2911 
       
  2912 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1041
       
  2913 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1041
       
  2914 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES
       
  2915 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2916 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2917 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2918 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2919 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2920 //!													NewL(), Cancel(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2921 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2922 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2923 //!								2. Add some attribute ids into the attridmatchlist
       
  2924 //!								3. Construct a CSdpSearchPattern object
       
  2925 //!								4. Add service UUID into searchpattern
       
  2926 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  2927 //!								   Verify the resulting err code is KErrNone.
       
  2928 //!								6. Set the service record filter with the serchpattern
       
  2929 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  2930 //!								   Verify the resulting err code is KErrNone.
       
  2931 //!								8. Set the predictor list with the attridmatchlist of step 1 
       
  2932 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2933 //!								   Verify that the service record has been retrieved.
       
  2934 //!								10. Search for a particular service attribute of the service 
       
  2935 //!									Verify the resulting err code is KErrNone.
       
  2936 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  2937 //!									the result of attribute request comes back in the form of a list.
       
  2938 //!								12. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  2939 //!									Verify the resulting err code is KErrNone.
       
  2940 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  2941 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2942 //!
       
  2943 //! @SYMTestStatus				Implemented
       
  2944 //! @SYMTestPriority			Medium
       
  2945 //! @SYMTestExpectedResults		Service record and attributes are found as expected. AttributeRequest is cancelled as expected.
       
  2946 //! @SYMTestType				CIT
       
  2947 
       
  2948 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1041-0001	
       
  2949 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  2950 			SHARED_ACTIVE_SCHEDULER
       
  2951 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2952 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2953 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2954 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2955 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2956 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2957 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2958 			COMMAND		TBTAttridmatchlist1	NewL
       
  2959 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1041-0001command3AddL
       
  2960 			COMMAND		TBTSearchpattern1	NewL
       
  2961 			COMMAND		TBTSearchpattern1	ConstructL
       
  2962 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1041-0001command7AddL
       
  2963 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2964 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1041-0001command11NewL
       
  2965 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1041-0001command12SetRecordFilterL
       
  2966 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1041-0001command13NextRecordRequestL
       
  2967 			OUTSTANDING	1000000
       
  2968 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1041-0001command15AttributeRequestL
       
  2969 			OUTSTANDING	1000000
       
  2970 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1041-0001command18AppendValueL
       
  2971 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1041-0001command19AcceptVisitorL
       
  2972 			STORE	CBluetoothSocket1	
       
  2973 			STORE	TBTServiceSecurity1	
       
  2974 			STORE	TBTDevAddrRemote	
       
  2975 			STORE_ACTIVE_SCHEDULER
       
  2976 	END_TEST_BLOCK
       
  2977 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1041-0001	
       
  2978 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1041-0002
       
  2979 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1041-0002
       
  2980 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1041
       
  2981 
       
  2982 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1042
       
  2983 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1042
       
  2984 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  2985 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2986 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  2987 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  2988 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2989 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2990 //!													NewLC(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2991 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  2992 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2993 //!								2. Add some attribute ids into the attridmatchlist
       
  2994 //!								3. Construct a CSdpSearchPattern object
       
  2995 //!								4. Add service UUID into searchpattern
       
  2996 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  2997 //!								   Verify the resulting err code is KErrNone.
       
  2998 //!								6. Set the service record filter with the serchpattern
       
  2999 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  3000 //!								   Verify the resulting err code is KErrNone.
       
  3001 //!								8. Set the predictor list with the attridmatchlist of step 1 
       
  3002 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  3003 //!								   Verify that the service record has been retrieved.
       
  3004 //!								10. Search for a particular service attribute of the service 
       
  3005 //!									Verify the resulting err code is KErrNone.
       
  3006 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  3007 //!									the result of attribute request comes back in the form of a list.
       
  3008 //!								12. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  3009 //!									Verify the resulting err code is KErrNone.
       
  3010 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  3011 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  3012 //!
       
  3013 //! @SYMTestStatus				Implemented
       
  3014 //! @SYMTestPriority			Medium
       
  3015 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  3016 //! @SYMTestType				CIT
       
  3017 
       
  3018 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1042-0001	
       
  3019 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  3020 			SHARED_ACTIVE_SCHEDULER
       
  3021 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  3022 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  3023 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  3024 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  3025 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  3026 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  3027 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  3028 			COMMAND		TBTAttridmatchlist1	NewL
       
  3029 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1042-0001command3AddL
       
  3030 			COMMAND		TBTSearchpattern1	NewL
       
  3031 			COMMAND		TBTSearchpattern1	ConstructL
       
  3032 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1042-0001command7AddL
       
  3033 			COMMAND		TBTAttrValueDES1	NewDESL
       
  3034 			COMMAND		TBTSdpagent	NewLC		BTSDP-Lists-PublicApi-Active-1042-0001command11NewLC
       
  3035 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1042-0001command12SetRecordFilterL
       
  3036 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1042-0001command13NextRecordRequestL
       
  3037 			OUTSTANDING	1000000
       
  3038 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1042-0001command15AttributeRequestL
       
  3039 			OUTSTANDING	1000000
       
  3040 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1042-0001command18AppendValueL
       
  3041 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1042-0001command19AcceptVisitorL
       
  3042 			STORE	CBluetoothSocket1	
       
  3043 			STORE	TBTServiceSecurity1	
       
  3044 			STORE	TBTDevAddrRemote	
       
  3045 			STORE_ACTIVE_SCHEDULER
       
  3046 	END_TEST_BLOCK
       
  3047 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1042-0001	
       
  3048 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1042-0002
       
  3049 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1042-0002
       
  3050 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1042
       
  3051 
       
  3052 
       
  3053 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1043
       
  3054 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1043
       
  3055 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES
       
  3056 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  3057 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  3058 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  3059 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  3060 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  3061 //!													NewLC(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  3062 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  3063 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  3064 //!								2. Add some attribute ids into the attridmatchlist
       
  3065 //!								3. Construct a CSdpSearchPattern object
       
  3066 //!								4. Add service UUID into searchpattern
       
  3067 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  3068 //!								   Verify the resulting err code is KErrNone.
       
  3069 //!								6. Set the service record filter with the serchpattern
       
  3070 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  3071 //!								   Verify the resulting err code is KErrNone.
       
  3072 //!								8. Set the predictor list with the attridmatchlist of step 1 
       
  3073 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  3074 //!								   Verify that the service record has been retrieved.
       
  3075 //!								10. Search for a particular service attribute of the service 
       
  3076 //!									Verify the resulting err code is KErrNone.
       
  3077 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  3078 //!									the result of attribute request comes back in the form of a list.
       
  3079 //!								12. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  3080 //!									Verify the resulting err code is KErrNone.
       
  3081 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  3082 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  3083 //!
       
  3084 //! @SYMTestStatus				Implemented
       
  3085 //! @SYMTestPriority			Low
       
  3086 //! @SYMTestExpectedResults		Function is executed without error
       
  3087 //! @SYMTestType				CIT
       
  3088 
       
  3089 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1043-0001	
       
  3090 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  3091 			SHARED_ACTIVE_SCHEDULER
       
  3092 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  3093 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  3094 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  3095 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  3096 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  3097 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  3098 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  3099 			COMMAND		TBTAttridmatchlist1	NewL
       
  3100 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1043-0001command3AddL
       
  3101 			COMMAND		TBTSearchpattern1	NewL
       
  3102 			COMMAND		TBTSearchpattern1	ConstructL
       
  3103 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1043-0001command7AddL
       
  3104 			COMMAND		TBTAttrValueDES1	NewDESL
       
  3105 			COMMAND		TBTSdpagent	NewLC		BTSDP-Lists-PublicApi-Active-1043-0001command11NewLC
       
  3106 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1043-0001command12SetRecordFilterL
       
  3107 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1043-0001command13NextRecordRequestL
       
  3108 			OUTSTANDING	1000000
       
  3109 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1043-0001command15AttributeRequestL
       
  3110 			OUTSTANDING	1000000
       
  3111 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1043-0001command18AppendValueL
       
  3112 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1043-0001command19AcceptVisitorL
       
  3113 			STORE	CBluetoothSocket1	
       
  3114 			STORE	TBTServiceSecurity1	
       
  3115 			STORE	TBTDevAddrRemote	
       
  3116 			STORE_ACTIVE_SCHEDULER
       
  3117 	END_TEST_BLOCK
       
  3118 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1043-0001	
       
  3119 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1043-0002
       
  3120 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1043-0002
       
  3121 
       
  3122 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1043
       
  3123 
       
  3124 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1044
       
  3125 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1044
       
  3126 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES
       
  3127 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  3128 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  3129 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  3130 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  3131 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  3132 //!													NewLC(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  3133 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  3134 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  3135 //!								2. Add some attribute ids into the attridmatchlist
       
  3136 //!								3. Construct a CSdpSearchPattern object
       
  3137 //!								4. Add service UUID into searchpattern
       
  3138 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  3139 //!								   Verify the resulting err code is KErrNone.
       
  3140 //!								6. Set the service record filter with the serchpattern
       
  3141 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  3142 //!								   Verify the resulting err code is KErrNone.
       
  3143 //!								8. Set the predictor list with the attridmatchlist of step 1 
       
  3144 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  3145 //!								   Verify that the service record has been retrieved.
       
  3146 //!								10. Search for a particular service attribute of the service 
       
  3147 //!									Verify the resulting err code is KErrNone.
       
  3148 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  3149 //!									the result of attribute request comes back in the form of a list.
       
  3150 //!								12. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  3151 //!									Verify the resulting err code is KErrNone.
       
  3152 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  3153 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  3154 //!
       
  3155 //! @SYMTestStatus				Implemented
       
  3156 //! @SYMTestPriority			Low
       
  3157 //! @SYMTestExpectedResults		Function is executed without error
       
  3158 //! @SYMTestType				CIT
       
  3159 
       
  3160 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1044-0001	
       
  3161 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  3162 			SHARED_ACTIVE_SCHEDULER
       
  3163 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  3164 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  3165 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  3166 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  3167 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  3168 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  3169 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  3170 			COMMAND		TBTAttridmatchlist1	NewL
       
  3171 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1044-0001command3AddL
       
  3172 			COMMAND		TBTSearchpattern1	NewL
       
  3173 			COMMAND		TBTSearchpattern1	ConstructL
       
  3174 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1044-0001command7AddL
       
  3175 			COMMAND		TBTAttrValueDES1	NewDESL
       
  3176 			COMMAND		TBTSdpagent	NewLC		BTSDP-Lists-PublicApi-Active-1044-0001command11NewLC
       
  3177 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1044-0001command12SetRecordFilterL
       
  3178 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1044-0001command13NextRecordRequestL
       
  3179 			OUTSTANDING	1000000
       
  3180 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1044-0001command15AttributeRequestL
       
  3181 			OUTSTANDING	1000000
       
  3182 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Lists-PublicApi-Active-1044-0001command18AppendValueL
       
  3183 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1044-0001command19AcceptVisitorL
       
  3184 			STORE	CBluetoothSocket1	
       
  3185 			STORE	TBTServiceSecurity1	
       
  3186 			STORE	TBTDevAddrRemote	
       
  3187 			STORE_ACTIVE_SCHEDULER
       
  3188 	END_TEST_BLOCK
       
  3189 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1044-0001	
       
  3190 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1044-0002
       
  3191 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1044-0002
       
  3192 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1044
       
  3193 
       
  3194 // ****************************************************************************
       
  3195 // Agent Side - TSdpIntBuf<8, 16, 32> API Test
       
  3196 // ****************************************************************************
       
  3197 
       
  3198 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1045
       
  3199 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1045
       
  3200 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
  3201 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  3202 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  3203 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  3204 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  3205 //!													NewDEAL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
  3206 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  3207 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  3208 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  3209 //!								2. Add some attribute ids into the idmatchlist
       
  3210 //!								3. Construct a CSdpSearchPattern object
       
  3211 //!								4. Add service UUID into searchpattern
       
  3212 //!								5. Create a CSdpAttrValueDEA object.
       
  3213 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  3214 //!								   Verify the resulting err code is KErrNone.
       
  3215 //!								7. Set the service record filter with the serchpattern
       
  3216 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  3217 //!								   Verify the resulting err code is KErrNone.
       
  3218 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  3219 //!								   Verify the number of service records being found.
       
  3220 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  3221 //!								    Verify the resulting err code is KErrNone.
       
  3222 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  3223 //!									the result of attribute request comes back in the form of a list. 
       
  3224 //!								12. Switch to CSdpAttrValueDEA data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
  3225 //!									Verify the resulting err code is KErrNone.
       
  3226 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  3227 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  3228 //!
       
  3229 //! @SYMTestStatus				Implemented
       
  3230 //! @SYMTestPriority			Low
       
  3231 //! @SYMTestExpectedResults		Function is executed without error
       
  3232 //! @SYMTestType				CIT
       
  3233 
       
  3234 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1045-0001	
       
  3235 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  3236 			SHARED_ACTIVE_SCHEDULER
       
  3237 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  3238 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  3239 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  3240 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  3241 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  3242 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  3243 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
  3244 			COMMAND		TBTAttridmatchlist1	NewL
       
  3245 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1045-0001command3AddL
       
  3246 			COMMAND		TBTSearchpattern1	NewL
       
  3247 			COMMAND		TBTSearchpattern1	ConstructL
       
  3248 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1045-0001command7AddL
       
  3249 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
  3250 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1045-0001command11NewL
       
  3251 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1045-0001command12SetRecordFilterL
       
  3252 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1045-0001command13NextRecordRequestL
       
  3253 			OUTSTANDING	1000000
       
  3254 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1045-0001command15AttributeRequestL
       
  3255 			OUTSTANDING	1000000
       
  3256 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1045-0001command18AppendValueL
       
  3257 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1045-0001command19AcceptVisitorL
       
  3258 			STORE	CBluetoothSocket1	
       
  3259 			STORE	TBTServiceSecurity1	
       
  3260 			STORE	TBTDevAddrRemote	
       
  3261 			STORE_ACTIVE_SCHEDULER
       
  3262 	END_TEST_BLOCK
       
  3263 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1045-0001	
       
  3264 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1045-0002
       
  3265 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1045-0002
       
  3266 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1045
       
  3267 
       
  3268 
       
  3269 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1046
       
  3270 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1046
       
  3271 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA 
       
  3272 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  3273 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  3274 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  3275 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  3276 //!													NewDEAL(), BuildBooleanL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
  3277 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  3278 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  3279 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  3280 //!								2. Add some attribute ids into the idmatchlist
       
  3281 //!								3. Construct a CSdpSearchPattern object
       
  3282 //!								4. Add service UUID into searchpattern
       
  3283 //!								5. Create a CSdpAttrValueDEA object and add some boolean values to the object
       
  3284 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  3285 //!								   Verify the resulting err code is KErrNone.
       
  3286 //!								7. Set the service record filter with the serchpattern
       
  3287 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  3288 //!								   Verify the resulting err code is KErrNone.
       
  3289 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  3290 //!								   Verify the number of service records being found.
       
  3291 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  3292 //!								    Verify the resulting err code is KErrNone.
       
  3293 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  3294 //!									the result of attribute request comes back in the form of a list. 
       
  3295 //!								12. Switch to CSdpAttrValueDEA data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
  3296 //!									Verify the resulting err code is KErrNone.
       
  3297 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  3298 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  3299 //!
       
  3300 //! @SYMTestStatus				Implemented
       
  3301 //! @SYMTestPriority			Low
       
  3302 //! @SYMTestExpectedResults		Function is executed without error
       
  3303 //! @SYMTestType				CIT
       
  3304 
       
  3305 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1046-0001		
       
  3306 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  3307 			SHARED_ACTIVE_SCHEDULER
       
  3308 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  3309 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  3310 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  3311 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  3312 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  3313 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  3314 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
  3315 			COMMAND		TBTAttridmatchlist1	NewL
       
  3316 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1046-0001command3AddL
       
  3317 			COMMAND		TBTSearchpattern1	NewL
       
  3318 			COMMAND		TBTSearchpattern1	ConstructL
       
  3319 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1046-0001command7AddL
       
  3320 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
  3321 			COMMAND		TBTAttrValueDEA1	StartListL
       
  3322 			COMMAND		TBTAttrValueDEA1	BuildBooleanL		BTSDP-Lists-PublicApi-Active-1046-0001command11BuildBooleanL
       
  3323 			COMMAND		TBTAttrValueDEA1	BuildBooleanL		BTSDP-Lists-PublicApi-Active-1046-0001command12BuildBooleanL
       
  3324 			COMMAND		TBTAttrValueDEA1	EndListL
       
  3325 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1046-0001command15NewL
       
  3326 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1046-0001command16SetRecordFilterL
       
  3327 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1046-0001command17NextRecordRequestL
       
  3328 			OUTSTANDING	1000000
       
  3329 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1046-0001command19AttributeRequestL
       
  3330 			OUTSTANDING	1000000
       
  3331 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1046-0001command22AppendValueL
       
  3332 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1046-0001command23AcceptVisitorL
       
  3333 			STORE	CBluetoothSocket1	
       
  3334 			STORE	TBTServiceSecurity1	
       
  3335 			STORE	TBTDevAddrRemote	
       
  3336 			STORE_ACTIVE_SCHEDULER
       
  3337 	END_TEST_BLOCK
       
  3338 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1046-0001		
       
  3339 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1046-0002
       
  3340 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1046-0002
       
  3341 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1046
       
  3342 
       
  3343 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1047
       
  3344 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1047
       
  3345 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA,
       
  3346 //!								TSdpIntBuf<8>, TSdpIntBuf<16> and TSdpIntBuf<32>
       
  3347 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  3348 //!								Uses API elements: 	NewIntBuf() from TSdpIntBuf<8>, TSdpIntBuf<16> and TSdpIntBuf<32>
       
  3349 //!													NewL(), AddL() from CSdpAttrIdMatchList
       
  3350 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  3351 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  3352 //!													NewDEAL(), BuildUintL(), BuildIntL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
  3353 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  3354 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  3355 //! @SYMTestActions				1. Convert some integers to 8-bit, 16-bit and 32-bit unsigned integers using NewIntBuf()
       
  3356 //!								2. Construct a CSdpAttrIdMatchList object
       
  3357 //!								3. Add some attribute ids into the idmatchlist
       
  3358 //!								4. Construct a CSdpSearchPattern object
       
  3359 //!								5. Add service UUID into searchpattern
       
  3360 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  3361 //!								   Verify the resulting err code is KErrNone.
       
  3362 //!								7. Set the service record filter with the serchpattern
       
  3363 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  3364 //!								   Verify the resulting err code is KErrNone.
       
  3365 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  3366 //!								   Verify the number of service records being found.
       
  3367 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  3368 //!								    Verify the resulting err code is KErrNone.
       
  3369 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  3370 //!									the result of attribute request comes back in the form of a list. 
       
  3371 //!								12. Create a CSdpAttrValueDEA list and add the 8-bit, 16-bit and 32-bit unsigned integers to the list
       
  3372 //!								13. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
  3373 //!									Verify the resulting err code is KErrNone.
       
  3374 //!								14. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  3375 //!								15. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  3376 //!
       
  3377 //! @SYMTestStatus				Implemented
       
  3378 //! @SYMTestPriority			Low
       
  3379 //! @SYMTestExpectedResults		Function is executed without error
       
  3380 //! @SYMTestType				CIT
       
  3381 
       
  3382 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1047-0001		
       
  3383 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  3384 			SHARED_ACTIVE_SCHEDULER
       
  3385 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  3386 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  3387 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  3388 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  3389 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  3390 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  3391 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
  3392 			CREATE_OBJECT	TSdpIntBuf8	attrIntBuf8	
       
  3393 			CREATE_OBJECT	TSdpIntBuf16	attrIntBuf16	
       
  3394 			CREATE_OBJECT	TSdpIntBuf32	attrIntBuf32	
       
  3395 			COMMAND		attrIntBuf8	NewIntBuf		BTSDP-Lists-PublicApi-Active-1047-0001command2NewIntBuf
       
  3396 			COMMAND		attrIntBuf16	NewIntBuf		BTSDP-Lists-PublicApi-Active-1047-0001command4NewIntBuf
       
  3397 			COMMAND		attrIntBuf32	NewIntBuf		BTSDP-Lists-PublicApi-Active-1047-0001command6NewIntBuf
       
  3398 			COMMAND		TBTAttridmatchlist1	NewL
       
  3399 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1047-0001command9AddL
       
  3400 			COMMAND		TBTSearchpattern1	NewL
       
  3401 			COMMAND		TBTSearchpattern1	ConstructL
       
  3402 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1047-0001command13AddL
       
  3403 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1047-0001command15NewL
       
  3404 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1047-0001command16SetRecordFilterL
       
  3405 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1047-0001command17NextRecordRequestL
       
  3406 			OUTSTANDING	1000000
       
  3407 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1047-0001command19AttributeRequestL
       
  3408 			OUTSTANDING	1000000
       
  3409 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
  3410 			COMMAND		TBTAttrValueDEA1	BuildUintL		BTSDP-Lists-PublicApi-Active-1047-0001command23BuildUintL
       
  3411 			COMMAND		TBTAttrValueDEA1	BuildUintL		BTSDP-Lists-PublicApi-Active-1047-0001command24BuildUintL
       
  3412 			COMMAND		TBTAttrValueDEA1	BuildUintL		BTSDP-Lists-PublicApi-Active-1047-0001command25BuildUintL
       
  3413 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1047-0001command26AppendValueL
       
  3414 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1047-0001command27AcceptVisitorL
       
  3415 			STORE	CBluetoothSocket1	
       
  3416 			STORE	TBTServiceSecurity1	
       
  3417 			STORE	TBTDevAddrRemote	
       
  3418 			STORE_ACTIVE_SCHEDULER
       
  3419 	END_TEST_BLOCK
       
  3420 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1047-0001		
       
  3421 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1047-0002
       
  3422 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1047-0002
       
  3423 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1047
       
  3424 
       
  3425 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1048
       
  3426 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1048
       
  3427 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA
       
  3428 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  3429 //!								Uses API elements: 	
       
  3430 //!													NewL(), AddL() from CSdpAttrIdMatchList
       
  3431 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  3432 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  3433 //!													NewDEAL(), StartListL(), EndListL(), BuildDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
  3434 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  3435 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  3436 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  3437 //!								2. Add some attribute ids into the idmatchlist
       
  3438 //!								3. Construct a CSdpSearchPattern object
       
  3439 //!								4. Add service UUID into searchpattern
       
  3440 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  3441 //!								   Verify the resulting err code is KErrNone.
       
  3442 //!								6. Set the service record filter with the serchpattern
       
  3443 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  3444 //!								   Verify the resulting err code is KErrNone.
       
  3445 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  3446 //!								   Verify the number of service records being found.
       
  3447 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  3448 //!								    Verify the resulting err code is KErrNone.
       
  3449 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  3450 //!									the result of attribute request comes back in the form of a list. 
       
  3451 //!								11. Create a CSdpAttrValueDEA object and add a DES list onto it.
       
  3452 //!								12. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
  3453 //!									Verify the resulting err code is KErrNone.
       
  3454 //!								13. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  3455 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  3456 //!
       
  3457 //! @SYMTestStatus				Implemented
       
  3458 //! @SYMTestPriority			Low
       
  3459 //! @SYMTestExpectedResults		Function is executed without error
       
  3460 //! @SYMTestType				CIT
       
  3461 
       
  3462 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1048-0001		
       
  3463 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  3464 			SHARED_ACTIVE_SCHEDULER
       
  3465 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  3466 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  3467 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  3468 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  3469 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  3470 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  3471 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
  3472 			COMMAND		TBTAttridmatchlist1	NewL
       
  3473 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1048-0001command3AddL
       
  3474 			COMMAND		TBTSearchpattern1	NewL
       
  3475 			COMMAND		TBTSearchpattern1	ConstructL
       
  3476 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1048-0001command7AddL
       
  3477 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
  3478 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1048-0001command11NewL
       
  3479 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1048-0001command12SetRecordFilterL
       
  3480 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1048-0001command13NextRecordRequestL
       
  3481 			OUTSTANDING	1000000
       
  3482 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1048-0001command15AttributeRequestL
       
  3483 			OUTSTANDING	1000000
       
  3484 			COMMAND		TBTAttrValueDEA1	StartListL
       
  3485 			COMMAND		TBTAttrValueDEA1	BuildDESL
       
  3486 			COMMAND		TBTAttrValueDEA1	EndListL
       
  3487 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1048-0001command21AppendValueL
       
  3488 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1048-0001command22AcceptVisitorL
       
  3489 			STORE	CBluetoothSocket1	
       
  3490 			STORE	TBTServiceSecurity1	
       
  3491 			STORE	TBTDevAddrRemote	
       
  3492 			STORE_ACTIVE_SCHEDULER
       
  3493 	END_TEST_BLOCK
       
  3494 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1048-0001		
       
  3495 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1048-0002
       
  3496 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1048-0002
       
  3497 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1048
       
  3498 
       
  3499 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1049
       
  3500 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1049
       
  3501 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA,
       
  3502 //!								TSdpIntBuf<8> and TSdpIntBuf<16> 
       
  3503 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  3504 //!								Uses API elements: 	NewIntBuf() from TSdpIntBuf<8>, TSdpIntBuf<16> and TSdpIntBuf<32>
       
  3505 //!													NewL(), AddL() from CSdpAttrIdMatchList
       
  3506 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  3507 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  3508 //!													NewDEAL(), BuildDESL(), StartListL(), BuildUintL(), BuildIntL(), EndListL(), AppendValueL(), 
       
  3509 //!													AcceptVisitorL() from CSdpAttrValueDEA
       
  3510 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  3511 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  3512 //! @SYMTestActions				1. Convert some integers to 8-bit and 16-bit unsigned integers using NewIntBuf()
       
  3513 //!								2. Construct a CSdpAttrIdMatchList object
       
  3514 //!								3. Add some attribute ids into the idmatchlist
       
  3515 //!								4. Construct a CSdpSearchPattern object
       
  3516 //!								5. Add service UUID into searchpattern
       
  3517 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  3518 //!								   Verify the resulting err code is KErrNone.
       
  3519 //!								7. Set the service record filter with the serchpattern
       
  3520 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  3521 //!								   Verify the resulting err code is KErrNone.
       
  3522 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  3523 //!								   Verify the number of service records being found.
       
  3524 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  3525 //!								    Verify the resulting err code is KErrNone.
       
  3526 //!								11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  3527 //!									the result of attribute request comes back in the form of a list. 
       
  3528 //!								12. Create a CSdpAttrValueDEA list and add some 8-bit and 16-bit unsigned integers to the list.
       
  3529 //!								13. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
  3530 //!									Verify the resulting err code is KErrNone.
       
  3531 //!								14. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  3532 //!								15. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  3533 //!
       
  3534 //! @SYMTestStatus				Implemented
       
  3535 //! @SYMTestPriority			Low
       
  3536 //! @SYMTestExpectedResults		Function is executed without error
       
  3537 //! @SYMTestType				CIT
       
  3538 
       
  3539 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1049-0001		
       
  3540 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  3541 			SHARED_ACTIVE_SCHEDULER
       
  3542 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  3543 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  3544 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  3545 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  3546 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  3547 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  3548 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
  3549 			CREATE_OBJECT	TSdpIntBuf8	attrIntBuf8	
       
  3550 			CREATE_OBJECT	TSdpIntBuf16	attrIntBuf16	
       
  3551 			COMMAND		attrIntBuf8	NewIntBuf		BTSDP-Lists-PublicApi-Active-1049-0001command2NewIntBuf
       
  3552 			COMMAND		attrIntBuf16	NewIntBuf		BTSDP-Lists-PublicApi-Active-1049-0001command4NewIntBuf
       
  3553 			COMMAND		TBTAttridmatchlist1	NewL
       
  3554 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1049-0001command7AddL
       
  3555 			COMMAND		TBTSearchpattern1	NewL
       
  3556 			COMMAND		TBTSearchpattern1	ConstructL
       
  3557 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1049-0001command11AddL
       
  3558 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
  3559 			COMMAND		TBTAttrValueDEA1	StartListL
       
  3560 			COMMAND		TBTAttrValueDEA1	BuildDESL
       
  3561 			COMMAND		TBTAttrValueDEA1	StartListL
       
  3562 			COMMAND		TBTAttrValueDEA1	BuildIntL		BTSDP-Lists-PublicApi-Active-1049-0001command17BuildIntL
       
  3563 			COMMAND		TBTAttrValueDEA1	BuildIntL		BTSDP-Lists-PublicApi-Active-1049-0001command18BuildIntL
       
  3564 			COMMAND		TBTAttrValueDEA1	EndListL
       
  3565 			COMMAND		TBTAttrValueDEA1	BuildDESL
       
  3566 			COMMAND		TBTAttrValueDEA1	StartListL
       
  3567 			COMMAND		TBTAttrValueDEA1	BuildUintL		BTSDP-Lists-PublicApi-Active-1049-0001command22BuildUintL
       
  3568 			COMMAND		TBTAttrValueDEA1	BuildUintL		BTSDP-Lists-PublicApi-Active-1049-0001command23BuildUintL
       
  3569 			COMMAND		TBTAttrValueDEA1	EndListL
       
  3570 			COMMAND		TBTAttrValueDEA1	EndListL
       
  3571 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1049-0001command27NewL
       
  3572 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1049-0001command28SetRecordFilterL
       
  3573 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1049-0001command29NextRecordRequestL
       
  3574 			OUTSTANDING	1000000
       
  3575 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1049-0001command31AttributeRequestL
       
  3576 			OUTSTANDING	1000000
       
  3577 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1049-0001command34AppendValueL
       
  3578 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1049-0001command35AcceptVisitorL
       
  3579 			STORE	CBluetoothSocket1	
       
  3580 			STORE	TBTServiceSecurity1	
       
  3581 			STORE	TBTDevAddrRemote	
       
  3582 			STORE_ACTIVE_SCHEDULER
       
  3583 	END_TEST_BLOCK
       
  3584 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1049-0001		
       
  3585 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1049-0002
       
  3586 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1049-0002
       
  3587 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1049
       
  3588 
       
  3589 START_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1050
       
  3590 //! @SYMTestCaseID				BTSDP-Lists-PublicApi-Active-Slave-1050
       
  3591 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDEA,
       
  3592 //!								TSdpIntBuf<8>, TSdpIntBuf<16> and TSdpIntBuf<32>
       
  3593 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  3594 //!								Uses API elements: 	NewIntBuf() from TSdpIntBuf<8>, TSdpIntBuf<16> and TSdpIntBuf<32>
       
  3595 //!													NewL(), AddL() from CSdpAttrIdMatchList
       
  3596 //!													NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
  3597 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  3598 //!													NewDEAL(), BuildIntL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDEA
       
  3599 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  3600 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  3601 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  3602 //!								2. Add some attribute ids into the idmatchlist
       
  3603 //!								3. Construct a CSdpSearchPattern object
       
  3604 //!								4. Add service UUID into searchpattern
       
  3605 //!								5. Convert some integers to 8-bit, 16-bit and 32-bit unsigned integers using NewIntBuf().
       
  3606 //!								6. Create a CSdpAttrValueDEA object and add the unsigned integers to the list.
       
  3607 //!								7. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  3608 //!								   Verify the resulting err code is KErrNone.
       
  3609 //!								8. Set the service record filter with the serchpattern
       
  3610 //!								9. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  3611 //!								   Verify the resulting err code is KErrNone.
       
  3612 //!								10. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  3613 //!								   Verify the number of service records being found.
       
  3614 //!								11. Search for service attributes of the service we've found using the attridmatchlist.
       
  3615 //!								    Verify the resulting err code is KErrNone.
       
  3616 //!								12. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  3617 //!									the result of attribute request comes back in the form of a list. 
       
  3618 //!								13. Append the request results of CSdpAgent onto CSdpAttrValueDEA object.
       
  3619 //!									Verify the resulting err code is KErrNone.
       
  3620 //!								14. Call CSdpAttrValueDEA::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  3621 //!								15. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  3622 //!
       
  3623 //! @SYMTestStatus				Implemented
       
  3624 //! @SYMTestPriority			Low
       
  3625 //! @SYMTestExpectedResults		Function is executed without error
       
  3626 //! @SYMTestType				CIT
       
  3627 
       
  3628 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1050-0001		
       
  3629 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Lists-PublicApi-Active-Slave.ini
       
  3630 			SHARED_ACTIVE_SCHEDULER
       
  3631 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  3632 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  3633 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  3634 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  3635 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  3636 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  3637 			CREATE_OBJECT	CSdpAttrValueDEA	TBTAttrValueDEA1	
       
  3638 			CREATE_OBJECT	TSdpIntBuf8	attrIntBuf8	
       
  3639 			CREATE_OBJECT	TSdpIntBuf16	attrIntBuf16	
       
  3640 			CREATE_OBJECT	TSdpIntBuf32	attrIntBuf32	
       
  3641 			COMMAND		TBTAttridmatchlist1	NewL
       
  3642 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Lists-PublicApi-Active-1050-0001command3AddL
       
  3643 			COMMAND		TBTSearchpattern1	NewL
       
  3644 			COMMAND		TBTSearchpattern1	ConstructL
       
  3645 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Lists-PublicApi-Active-1050-0001command7AddL
       
  3646 			COMMAND		attrIntBuf8	NewIntBuf		BTSDP-Lists-PublicApi-Active-1050-0001command9NewIntBuf
       
  3647 			COMMAND		attrIntBuf16	NewIntBuf		BTSDP-Lists-PublicApi-Active-1050-0001command11NewIntBuf
       
  3648 			COMMAND		attrIntBuf32	NewIntBuf		BTSDP-Lists-PublicApi-Active-1050-0001command13NewIntBuf
       
  3649 			COMMAND		TBTAttrValueDEA1	NewDEAL
       
  3650 			COMMAND		TBTAttrValueDEA1	BuildIntL		BTSDP-Lists-PublicApi-Active-1050-0001command16BuildIntL
       
  3651 			COMMAND		TBTAttrValueDEA1	BuildIntL		BTSDP-Lists-PublicApi-Active-1050-0001command17BuildIntL
       
  3652 			COMMAND		TBTAttrValueDEA1	BuildIntL		BTSDP-Lists-PublicApi-Active-1050-0001command18BuildIntL
       
  3653 			COMMAND		TBTSdpagent	NewL		BTSDP-Lists-PublicApi-Active-1050-0001command20NewL
       
  3654 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Lists-PublicApi-Active-1050-0001command21SetRecordFilterL
       
  3655 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Lists-PublicApi-Active-1050-0001command22NextRecordRequestL
       
  3656 			OUTSTANDING	1000000
       
  3657 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Lists-PublicApi-Active-1050-0001command24AttributeRequestL
       
  3658 			OUTSTANDING	1000000
       
  3659 			COMMAND		TBTAttrValueDEA1	AppendValueL		BTSDP-Lists-PublicApi-Active-1050-0001command27AppendValueL
       
  3660 			COMMAND		TBTAttrValueDEA1	AcceptVisitorL		BTSDP-Lists-PublicApi-Active-1050-0001command28AcceptVisitorL
       
  3661 			STORE_ACTIVE_SCHEDULER
       
  3662 	END_TEST_BLOCK
       
  3663 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1050-0001		
       
  3664 	START_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1050-0002
       
  3665 	END_SYNCHRONISED_TESTCASE	BTSDP-Lists-PublicApi-Active-1050-0002
       
  3666 END_TESTCASE	BTSDP-Lists-PublicApi-Active-Slave-1050
       
  3667 
       
  3668 DELAY		2000