bluetoothapitest/bluetoothsvs/T_BTSdpAPI/scripts/BTSDP-Agent-PublicApi-Active-Master.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 CSdpAgent 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			21/09/2006
       
    28 ///////////////////////////////////////////////////////////////////////////////
       
    29 
       
    30 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\
       
    31 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\
       
    32 RUN_UTILS	MkDir	${SYSDRIVE}\bluetooth\sdp\T_SdpAgent\
       
    33 
       
    34 LOAD_SUITE	UCCControlTE
       
    35 LOAD_SUITE	T_BTSdpAPI	-SharedData
       
    36 DELAY		2000
       
    37 
       
    38 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncService
       
    39 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartTDService
       
    40 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini BuildRunPassiveSlave
       
    41 
       
    42 DELAY		10000
       
    43 
       
    44 // ****************************************************************************
       
    45 // Set up BT Addresses
       
    46 // ****************************************************************************
       
    47 
       
    48 START_TESTCASE BTSDP-Agent-PublicApi-Master-SetBTAddresses
       
    49 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
    50 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
    51 			SHARED_ACTIVE_SCHEDULER
       
    52 			CREATE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    53 			CREATE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
    54 			COMMAND		CBluetoothSocket1	RSocketServerConnect
       
    55 			COMMAND		CBluetoothSocket1	NewL		BTSDP-Agent-PublicApi-Active-SetBTAddresses-0001command2NewL
       
    56 			COMMAND		TBTServiceSecurity1	Construct
       
    57 			STORE	CBluetoothSocket1	
       
    58 			STORE	TBTServiceSecurity1	
       
    59 			STORE_ACTIVE_SCHEDULER
       
    60 	END_TEST_BLOCK
       
    61 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult	
       
    62 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase		
       
    63 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
    64 			SHARED_ACTIVE_SCHEDULER
       
    65 			CREATE_OBJECT	TRfcommSockAddr	TRfcommSockAddr1	
       
    66 			CREATE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
    67 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
    68 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
    69 			COMMAND		TBTDevAddrRemote	Construct
       
    70 			COMMAND		TBTDevAddrRemote	OpenHostResolver		BTSDP-Agent-PublicApi-Active-SetBTAddresses-0002command3OpenHostResolver
       
    71 			COMMAND		TBTDevAddrRemote	SetHostNameL		BTSDP-Agent-PublicApi-Active-SetBTAddresses-0002command4SetHostNameL
       
    72 			COMMAND		TBTDevAddrRemote	GetDeviceAddress		BTSDP-Agent-PublicApi-Active-SetBTAddresses-0002command5GetDeviceAddress
       
    73 			OUTSTANDING
       
    74 			COMMAND		TRfcommSockAddr1	Construct
       
    75 			COMMAND		TRfcommSockAddr1	SetSecurity		BTSDP-Agent-PublicApi-Active-SetBTAddresses-0002command8SetSecurity
       
    76 			COMMAND		TRfcommSockAddr1	SetBTAddr		BTSDP-Agent-PublicApi-Active-SetBTAddresses-0002command9SetBTAddr
       
    77 			COMMAND		TRfcommSockAddr1	BTAddr		BTSDP-Agent-PublicApi-Active-SetBTAddresses-0002command10BTAddr
       
    78 			COMMAND		TRfcommSockAddr1	SetPort		BTSDP-Agent-PublicApi-Active-SetBTAddresses-0002command11SetPort
       
    79 			STORE	CBluetoothSocket1	
       
    80 			STORE	TBTServiceSecurity1	
       
    81 			STORE	TBTDevAddrRemote	
       
    82 	END_TEST_BLOCK
       
    83 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult		
       
    84 END_TESTCASE BTSDP-Agent-PublicApi-Master-SetBTAddresses
       
    85 
       
    86 
       
    87 DELAY		2000
       
    88 // ****************************************************************************
       
    89 // CSdpAgent Tests
       
    90 // ****************************************************************************
       
    91 
       
    92 START_TESTCASE	BTSDP-Agent-PublicApi-Active-0301
       
    93 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Active-0301
       
    94 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
    95 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
    96 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
    97 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
    98 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
    99 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
   100 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   101 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   102 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   103 //!								2. Add some attribute ids into the idmatchlist
       
   104 //!								3. Construct a CSdpSearchPattern object
       
   105 //!								4. Add service UUID into searchpattern
       
   106 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   107 //!								   Verify the resulting err code is KErrNone.
       
   108 //!								6. Set the service record filter with the serchpattern
       
   109 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   110 //!								   Verify the resulting err code is KErrNone.
       
   111 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   112 //!								   Verify the number of service records being found.
       
   113 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
   114 //!								   Verify the resulting err code is KErrNone.
       
   115 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   116 //!									the result of attribute request comes back in the form of a list. 
       
   117 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
   118 //!									Verify the resulting err code is KErrNone.
       
   119 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   120 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   121 //!
       
   122 //! @SYMTestStatus				Implemented
       
   123 //! @SYMTestPriority			Critical
       
   124 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   125 //! @SYMTestType				CIT
       
   126 
       
   127 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   128 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   129 
       
   130 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   131 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   132 			SHARED_ACTIVE_SCHEDULER
       
   133 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   134 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   135 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   136 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   137 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   138 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   139 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   140 			COMMAND		TBTAttridmatchlist1	NewL
       
   141 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Agent-PublicApi-Active-0301-0001command3AddL
       
   142 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Agent-PublicApi-Active-0301-0001command4AddL
       
   143 			COMMAND		TBTSearchpattern1	NewL
       
   144 			COMMAND		TBTSearchpattern1	ConstructL
       
   145 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Agent-PublicApi-Active-0301-0001command8AddL
       
   146 			COMMAND		TBTAttrValueDES1	NewDESL
       
   147 			COMMAND		TBTSdpagent	NewL		BTSDP-Agent-PublicApi-Active-0301-0001command12NewL
       
   148 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Agent-PublicApi-Active-0301-0001command13SetRecordFilterL
       
   149 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-Agent-PublicApi-Active-0301-0001command14NextRecordRequestL
       
   150 			OUTSTANDING	1000000
       
   151 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   152 			OUTSTANDING	1000000
       
   153 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   154 			OUTSTANDING	1000000
       
   155 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Agent-PublicApi-Active-0301-0001command20AttributeRequestL
       
   156 			OUTSTANDING	1000000
       
   157 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Agent-PublicApi-Active-0301-0001command23AppendValueL
       
   158 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Agent-PublicApi-Active-0301-0001command24AcceptVisitorL
       
   159 			STORE	CBluetoothSocket1	
       
   160 			STORE	TBTServiceSecurity1	
       
   161 			STORE	TBTDevAddrRemote	
       
   162 			STORE_ACTIVE_SCHEDULER
       
   163 	END_TEST_BLOCK
       
   164 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   165 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   166 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   167 END_TESTCASE	BTSDP-Agent-PublicApi-Active-0301
       
   168 
       
   169 DELAY		2000
       
   170 START_TESTCASE	BTSDP-Agent-PublicApi-Active-0302
       
   171 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Active-0302
       
   172 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
   173 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   174 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   175 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   176 //!													NewDESL() from CSdpAttrValueDES
       
   177 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   178 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   179 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   180 //!													
       
   181 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   182 //!								2. Add some attribute ids into the idmatchlist
       
   183 //!								3. Construct a CSdpSearchPattern object
       
   184 //!								4. Add service UUID into searchpattern
       
   185 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
   186 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
   187 //!								   Verify the resulting err code is KErrNone.
       
   188 //!								7. Set the service record filter with the serchpattern
       
   189 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
   190 //!								   Verify the resulting err code is KErrNone.
       
   191 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   192 //!								   Verify that the service record has been retrieved.
       
   193 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
   194 //!									Verify the resulting err code is KErrNone.
       
   195 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
   196 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
   197 //!								12. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
   198 //!									Verify the resulting err code is KErrNone.
       
   199 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   200 //!
       
   201 //! @SYMTestStatus				Implemented
       
   202 //! @SYMTestPriority			Critical
       
   203 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
   204 //! @SYMTestType				CIT
       
   205 
       
   206 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   207 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   208 
       
   209 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   210 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   211 			SHARED_ACTIVE_SCHEDULER
       
   212 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   213 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   214 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   215 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   216 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   217 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   218 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   219 			COMMAND		TBTAttridmatchlist1	NewL
       
   220 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Agent-PublicApi-Active-0302-0001command3AddL
       
   221 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-Agent-PublicApi-Active-0302-0001command4AddL
       
   222 			COMMAND		TBTSearchpattern1	NewL
       
   223 			COMMAND		TBTSearchpattern1	ConstructL
       
   224 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Agent-PublicApi-Active-0302-0001command8AddL
       
   225 			COMMAND		TBTAttrValueDES1	NewDESL
       
   226 			COMMAND		TBTSdpagent	NewL		BTSDP-Agent-PublicApi-Active-0302-0001command12NewL
       
   227 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Agent-PublicApi-Active-0302-0001command13SetRecordFilterL
       
   228 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   229 			OUTSTANDING	1000000
       
   230 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   231 			OUTSTANDING	1000000
       
   232 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   233 			OUTSTANDING	1000000
       
   234 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Agent-PublicApi-Active-0302-0001command20AttributeRequestL
       
   235 			OUTSTANDING	1000000
       
   236 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Agent-PublicApi-Active-0302-0001command23AcceptVisitorL
       
   237 			STORE	CBluetoothSocket1	
       
   238 			STORE	TBTServiceSecurity1	
       
   239 			STORE	TBTDevAddrRemote	
       
   240 			STORE_ACTIVE_SCHEDULER
       
   241 	END_TEST_BLOCK
       
   242 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   243 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   244 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   245 END_TESTCASE	BTSDP-Agent-PublicApi-Active-0302
       
   246 DELAY		2000
       
   247 
       
   248 START_TESTCASE	BTSDP-Agent-PublicApi-Active-0303
       
   249 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Active-0303
       
   250 //! @SYMAPI						CSdpAgent, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
   251 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   252 //!								Uses API elements: 	NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   253 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   254 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   255 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   256 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
   257 //! @SYMTestActions				1. Construct a CSdpSearchPattern object
       
   258 //!								2. Add service UUID into searchpattern
       
   259 //!								3. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
   260 //!								   Verify the resulting err code is KErrNone.
       
   261 //!								4. Set the service record filter with the serchpattern
       
   262 //!								5. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
   263 //!								   Verify the resulting err code is KErrNone.
       
   264 //!								6. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   265 //!								   Verify that the service record has been retrieved.
       
   266 //!								7. Search for a particular service attribute of the service
       
   267 //!								8. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   268 //!								   the result of attribute request comes back in the form of a list.
       
   269 //!								9. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
   270 //!								   Verify the resulting err code is KErrNone.
       
   271 //!								10. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   272 //!								11. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   273 //!
       
   274 //! @SYMTestStatus				Implemented
       
   275 //! @SYMTestPriority			Critical
       
   276 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   277 //! @SYMTestType				CIT
       
   278 
       
   279 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   280 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   281 
       
   282 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   283 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   284 			SHARED_ACTIVE_SCHEDULER
       
   285 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   286 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   287 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   288 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   289 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   290 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   291 			COMMAND		TBTSearchpattern1	NewL
       
   292 			COMMAND		TBTSearchpattern1	ConstructL
       
   293 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Agent-PublicApi-Active-0303-0001command4AddL
       
   294 			COMMAND		TBTAttrValueDES1	NewDESL
       
   295 			COMMAND		TBTSdpagent	NewL		BTSDP-Agent-PublicApi-Active-0303-0001command8NewL
       
   296 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Agent-PublicApi-Active-0303-0001command9SetRecordFilterL
       
   297 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   298 			OUTSTANDING	1000000
       
   299 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   300 			OUTSTANDING	1000000
       
   301 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   302 			OUTSTANDING	1000000
       
   303 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Agent-PublicApi-Active-0303-0001command16AttributeRequestL
       
   304 			OUTSTANDING	1000000
       
   305 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Agent-PublicApi-Active-0303-0001command19AppendValueL
       
   306 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Agent-PublicApi-Active-0303-0001command20AcceptVisitorL
       
   307 			STORE	CBluetoothSocket1	
       
   308 			STORE	TBTServiceSecurity1	
       
   309 			STORE	TBTDevAddrRemote	
       
   310 			STORE_ACTIVE_SCHEDULER
       
   311 	END_TEST_BLOCK
       
   312 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   313 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   314 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   315 END_TESTCASE	BTSDP-Agent-PublicApi-Active-0303
       
   316 DELAY		2000
       
   317 
       
   318 START_TESTCASE	BTSDP-Agent-PublicApi-Active-0304
       
   319 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Active-0304
       
   320 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
   321 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   322 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   323 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   324 //!													NewDESL() from CSdpAttrValueDES
       
   325 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   326 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   327 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   328 //!													
       
   329 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   330 //!								2. Add some attribute ids into the idmatchlist
       
   331 //!								3. Construct a CSdpSearchPattern object
       
   332 //!								4. Add service UUID into searchpattern
       
   333 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
   334 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
   335 //!								   Verify the resulting err code is KErrNone.
       
   336 //!								7. Set the service record filter with the serchpattern
       
   337 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
   338 //!								   Verify the resulting err code is KErrNone.
       
   339 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   340 //!								   Verify that the service record has been retrieved.
       
   341 //!								10. Search for a particular service attribute of the service we've found
       
   342 //!									Verify the resulting err code is KErrNone.
       
   343 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
   344 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
   345 //!								12. AcceptVisitorL() is called on the attribute we've got. 
       
   346 //!									Verify the resulting err code is KErrNone.
       
   347 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   348 //!
       
   349 //! @SYMTestStatus				Implemented
       
   350 //! @SYMTestPriority			Critical
       
   351 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   352 //! @SYMTestType				CIT
       
   353 
       
   354 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   355 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   356 
       
   357 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   358 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   359 			SHARED_ACTIVE_SCHEDULER
       
   360 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   361 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   362 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   363 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   364 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   365 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   366 			COMMAND		TBTSearchpattern1	NewL
       
   367 			COMMAND		TBTSearchpattern1	ConstructL
       
   368 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Agent-PublicApi-Active-0304-0001command4AddL
       
   369 			COMMAND		TBTAttrValueDES1	NewDESL
       
   370 			COMMAND		TBTSdpagent	NewL		BTSDP-Agent-PublicApi-Active-0304-0001command8NewL
       
   371 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Agent-PublicApi-Active-0304-0001command9SetRecordFilterL
       
   372 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   373 			OUTSTANDING	1000000
       
   374 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   375 			OUTSTANDING	1000000
       
   376 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   377 			OUTSTANDING	1000000
       
   378 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Agent-PublicApi-Active-0304-0001command16AttributeRequestL
       
   379 			OUTSTANDING	1000000
       
   380 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Agent-PublicApi-Active-0304-0001command19AcceptVisitorL
       
   381 			STORE	CBluetoothSocket1	
       
   382 			STORE	TBTServiceSecurity1	
       
   383 			STORE	TBTDevAddrRemote	
       
   384 			STORE_ACTIVE_SCHEDULER
       
   385 	END_TEST_BLOCK
       
   386 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   387 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   388 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   389 END_TESTCASE	BTSDP-Agent-PublicApi-Active-0304
       
   390 
       
   391 DELAY		2000
       
   392 START_TESTCASE	BTSDP-Agent-PublicApi-Active-0306
       
   393 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Active-0306
       
   394 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAgentNotifier 
       
   395 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   396 //!								Uses API elements: 	NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   397 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   398 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   399 //!													NewL(), Cancel(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   400 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
   401 //!
       
   402 //! @SYMTestActions				1. Construct a CSdpSearchPattern object
       
   403 //!								2. Add service UUID into searchpattern
       
   404 //!								3. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
   405 //!								   Verify the resulting err code is KErrNone.
       
   406 //!								4. Set the service record filter with the serchpattern
       
   407 //!								5. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
   408 //!								   Verify the resulting err code is KErrNone.
       
   409 //!								6. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   410 //!								   Verify that the service record has been retrieved.
       
   411 //!								7. Search for a particular service attribute of the service
       
   412 //!								8. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   413 //!								   the result of attribute request comes back in the form of a list.
       
   414 //!								9. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
   415 //!								   Verify the resulting err code is KErrNone.
       
   416 //!								10. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   417 //!								11. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   418 //!								12. Make another service attribute request
       
   419 //!								13. Cancel the request 
       
   420 //!
       
   421 //! @SYMTestStatus				Implemented
       
   422 //! @SYMTestPriority			Medium
       
   423 //! @SYMTestExpectedResults		Service record and attributes are found as expected. AttributeRequest is cancelled as expected.
       
   424 //! @SYMTestType				CIT
       
   425 
       
   426 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   427 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   428 
       
   429 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   430 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   431 			SHARED_ACTIVE_SCHEDULER
       
   432 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   433 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   434 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   435 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   436 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   437 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   438 			COMMAND		TBTSearchpattern1	NewL
       
   439 			COMMAND		TBTSearchpattern1	ConstructL
       
   440 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Agent-PublicApi-Active-0306-0001command4AddL
       
   441 			COMMAND		TBTAttrValueDES1	NewDESL
       
   442 			COMMAND		TBTSdpagent	NewL		BTSDP-Agent-PublicApi-Active-0306-0001command8NewL
       
   443 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Agent-PublicApi-Active-0306-0001command9SetRecordFilterL
       
   444 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   445 			OUTSTANDING	1000000
       
   446 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Agent-PublicApi-Active-0306-0001command12AttributeRequestL
       
   447 			OUTSTANDING	1000000
       
   448 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Agent-PublicApi-Active-0306-0001command15AppendValueL
       
   449 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Agent-PublicApi-Active-0306-0001command16AcceptVisitorL
       
   450 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Agent-PublicApi-Active-0306-0001command18AttributeRequestL
       
   451 			COMMAND		TBTSdpagent	Cancel
       
   452 			COMMAND		TBTSdpagent	~
       
   453 			STORE	CBluetoothSocket1	
       
   454 			STORE	TBTServiceSecurity1	
       
   455 			STORE	TBTDevAddrRemote	
       
   456 			STORE_ACTIVE_SCHEDULER
       
   457 	END_TEST_BLOCK
       
   458 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   459 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   460 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   461 
       
   462 END_TESTCASE	BTSDP-Agent-PublicApi-Active-0306
       
   463 DELAY		2000
       
   464 START_TESTCASE	BTSDP-Agent-PublicApi-Active-0307
       
   465 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Active-0307
       
   466 //! @SYMAPI						CSdpAgent, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
   467 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   468 //!								Uses API elements: 	NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   469 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   470 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   471 //!													NewLC(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   472 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
   473 //! @SYMTestActions				1. Construct a CSdpSearchPattern object
       
   474 //!								2. Add service UUID into searchpattern
       
   475 //!								3. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
   476 //!								   Verify the resulting err code is KErrNone.
       
   477 //!								4. Set the service record filter with the serchpattern
       
   478 //!								5. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
   479 //!								   Verify the resulting err code is KErrNone.
       
   480 //!								6. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   481 //!								   Verify that the service record has been retrieved.
       
   482 //!								7. Search for a particular service attribute of the service
       
   483 //!								8. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   484 //!								   the result of attribute request comes back in the form of a list.
       
   485 //!								9. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
   486 //!								   Verify the resulting err code is KErrNone.
       
   487 //!								10. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   488 //!								11. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   489 //!
       
   490 //! @SYMTestStatus				Implemented
       
   491 //! @SYMTestPriority			Medium
       
   492 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   493 //! @SYMTestType				CIT
       
   494 
       
   495 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   496 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   497 
       
   498 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   499 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   500 			SHARED_ACTIVE_SCHEDULER
       
   501 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   502 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   503 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   504 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   505 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   506 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   507 			COMMAND		TBTSearchpattern1	NewL
       
   508 			COMMAND		TBTSearchpattern1	ConstructL
       
   509 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Agent-PublicApi-Active-0307-0001command4AddL
       
   510 			COMMAND		TBTAttrValueDES1	NewDESL
       
   511 			COMMAND		TBTSdpagent	NewLC		BTSDP-Agent-PublicApi-Active-0307-0001command8NewLC
       
   512 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Agent-PublicApi-Active-0307-0001command9SetRecordFilterL
       
   513 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   514 			OUTSTANDING	1000000
       
   515 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Agent-PublicApi-Active-0307-0001command12AttributeRequestL
       
   516 			OUTSTANDING	1000000
       
   517 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-Agent-PublicApi-Active-0307-0001command15AppendValueL
       
   518 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-Agent-PublicApi-Active-0307-0001command16AcceptVisitorL
       
   519 			STORE	CBluetoothSocket1	
       
   520 			STORE	TBTServiceSecurity1	
       
   521 			STORE	TBTDevAddrRemote	
       
   522 			STORE_ACTIVE_SCHEDULER
       
   523 	END_TEST_BLOCK
       
   524 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   525 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   526 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   527 END_TESTCASE	BTSDP-Agent-PublicApi-Active-0307
       
   528 
       
   529 DELAY		2000
       
   530 
       
   531 START_TESTCASE	BTSDP-Agent-PublicApi-Active-0309
       
   532 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Active-0309
       
   533 //! @SYMAPI						CSdpAgent, CSdpSearchPattern
       
   534 //! @SYMTestCaseDesc			Negative test for CSdpAgent's AttributeRequestL()
       
   535 //!								Uses API elements: 	NewL(), ConstructL(), AddL() from CSdpSearchPattern
       
   536 //!													NewLC(), SetRecordFilterL(), AttributeRequestL() from CSdpAgent
       
   537 //! @SYMTestActions				1. Construct a CSdpSearchPattern object
       
   538 //!								2. Add service UUID into searchpattern
       
   539 //!								3. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
   540 //!								   Verify the resulting err code is KErrNone.
       
   541 //!								4. Set the service record filter with the serchpattern
       
   542 //!								6. Call AttributeRequestL() without calling NextRecordRequestL() first 
       
   543 //!								7. AttributeRequestL() should fail
       
   544 //!
       
   545 //! @SYMTestStatus				Implemented
       
   546 //! @SYMTestPriority			Medium
       
   547 //! @SYMTestExpectedResults		AttributeRequestL() should fail
       
   548 //! @SYMTestType				CIT
       
   549 
       
   550 
       
   551 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   552 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   553 
       
   554 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   555 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   556 			SHARED_ACTIVE_SCHEDULER
       
   557 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   558 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   559 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   560 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   561 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   562 			COMMAND		TBTSearchpattern1	NewL
       
   563 			COMMAND		TBTSearchpattern1	ConstructL
       
   564 			COMMAND		TBTSearchpattern1	AddL		BTSDP-Agent-PublicApi-Active-0309-0001command4AddL
       
   565 			COMMAND		TBTSdpagent	NewLC		BTSDP-Agent-PublicApi-Active-0309-0001command6NewLC
       
   566 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-Agent-PublicApi-Active-0309-0001command7SetRecordFilterL
       
   567 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-Agent-PublicApi-Active-0309-0001command8AttributeRequestL
       
   568 			OUTSTANDING	1000000
       
   569 			STORE	CBluetoothSocket1	
       
   570 			STORE	TBTServiceSecurity1	
       
   571 			STORE	TBTDevAddrRemote	
       
   572 			STORE_ACTIVE_SCHEDULER
       
   573 	END_TEST_BLOCK
       
   574 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   575 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   576 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   577 END_TESTCASE	BTSDP-Agent-PublicApi-Active-0309
       
   578 
       
   579 DELAY		2000
       
   580 
       
   581 START_TESTCASE	BTSDP-Agent-PublicApi-Active-0310
       
   582 //! @SYMTestCaseID				BTSDP-Agent-PublicApi-Active-0310
       
   583 //! @SYMAPI						CSdpAgent
       
   584 //! @SYMTestCaseDesc			Uses API elements: MSAN_ExtensionInterfaceL() of interface class MSdpAgentNotifier.
       
   585 //!								The function is implemented in the wrapper class of CSdpAgent.
       
   586 //! @SYMTestActions				1. Calls MSAN_ExtensionInterfaceL. Verify the resulting err code is KErrNone.
       
   587 //! @SYMTestStatus				Implemented
       
   588 //! @SYMTestPriority			Low
       
   589 //! @SYMTestExpectedResults		Function is executed without error
       
   590 //! @SYMTestType				CIT
       
   591 
       
   592 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   593 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   594 
       
   595 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   596 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   597 			SHARED_ACTIVE_SCHEDULER
       
   598 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   599 			COMMAND		TBTSdpagent	MSAN_ExtensionInterfaceL
       
   600 			STORE_ACTIVE_SCHEDULER
       
   601 	END_TEST_BLOCK
       
   602 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   603 
       
   604 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   605 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   606 END_TESTCASE	BTSDP-Agent-PublicApi-Active-0310
       
   607 
       
   608 DELAY		2000
       
   609 
       
   610 START_TESTCASE	BTSDP-PublicApi-AttrValBool-Active-Master-0001
       
   611 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValBool-Active-Master-0001
       
   612 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
   613 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   614 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   615 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   616 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   617 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
   618 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   619 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   620 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   621 //!								2. Add some attribute ids into the idmatchlist
       
   622 //!								3. Construct a CSdpSearchPattern object
       
   623 //!								4. Add service UUID into searchpattern
       
   624 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   625 //!								   Verify the resulting err code is KErrNone.
       
   626 //!								6. Set the service record filter with the serchpattern
       
   627 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   628 //!								   Verify the resulting err code is KErrNone.
       
   629 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   630 //!								   Verify the number of service records being found.
       
   631 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
   632 //!								   Verify the resulting err code is KErrNone.
       
   633 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   634 //!									the result of attribute request comes back in the form of a list. 
       
   635 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
   636 //!									Verify the resulting err code is KErrNone.
       
   637 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   638 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   639 //!
       
   640 //! @SYMTestStatus				Implemented
       
   641 //! @SYMTestPriority			Critical
       
   642 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   643 //! @SYMTestType				CIT
       
   644 
       
   645 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   646 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   647 
       
   648 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   649 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   650 			SHARED_ACTIVE_SCHEDULER
       
   651 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   652 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   653 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   654 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   655 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   656 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   657 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   658 			COMMAND		TBTAttridmatchlist1	NewL
       
   659 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValBool-Active-0001-0001command3AddL
       
   660 			COMMAND		TBTSearchpattern1	NewL
       
   661 			COMMAND		TBTSearchpattern1	ConstructL
       
   662 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValBool-Active-0001-0001command7AddL
       
   663 			COMMAND		TBTAttrValueDES1	NewDESL
       
   664 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValBool-Active-0001-0001command11NewLC
       
   665 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValBool-Active-0001-0001command12SetRecordFilterL
       
   666 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   667 			OUTSTANDING	1000000
       
   668 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValBool-Active-0001-0001command15AttributeRequestL
       
   669 			OUTSTANDING	1000000
       
   670 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-PublicApi-AttrValBool-Active-0001-0001command18AppendValueL
       
   671 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValBool-Active-0001-0001command19AcceptVisitorL
       
   672 			STORE	CBluetoothSocket1	
       
   673 			STORE	TBTServiceSecurity1	
       
   674 			STORE	TBTDevAddrRemote	
       
   675 			STORE_ACTIVE_SCHEDULER
       
   676 	END_TEST_BLOCK
       
   677 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   678 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   679 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   680 END_TESTCASE	BTSDP-PublicApi-AttrValBool-Active-Master-0001
       
   681 
       
   682 DELAY		2000
       
   683 
       
   684 START_TESTCASE	BTSDP-PublicApi-AttrValBool-Active-Master-0002
       
   685 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValBool-Active-Master-0002
       
   686 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
   687 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   688 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   689 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   690 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   691 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
   692 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   693 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   694 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   695 //!								2. Add some attribute ids into the idmatchlist
       
   696 //!								3. Construct a CSdpSearchPattern object
       
   697 //!								4. Add service UUID into searchpattern
       
   698 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   699 //!								   Verify the resulting err code is KErrNone.
       
   700 //!								6. Set the service record filter with the serchpattern
       
   701 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   702 //!								   Verify the resulting err code is KErrNone.
       
   703 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   704 //!								   Verify the number of service records being found.
       
   705 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
   706 //!								   Verify the resulting err code is KErrNone.
       
   707 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   708 //!									the result of attribute request comes back in the form of a list. 
       
   709 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
   710 //!									Verify the resulting err code is KErrNone.
       
   711 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   712 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   713 //!
       
   714 //! @SYMTestStatus				Implemented
       
   715 //! @SYMTestPriority			Critical
       
   716 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   717 //! @SYMTestType				CIT
       
   718 
       
   719 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   720 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   721 
       
   722 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   723 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   724 			SHARED_ACTIVE_SCHEDULER
       
   725 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   726 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   727 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   728 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   729 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   730 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   731 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   732 			COMMAND		TBTAttridmatchlist1	NewL
       
   733 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValBool-Active-0002-0001command3AddL
       
   734 			COMMAND		TBTSearchpattern1	NewL
       
   735 			COMMAND		TBTSearchpattern1	ConstructL
       
   736 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValBool-Active-0002-0001command7AddL
       
   737 			COMMAND		TBTAttrValueDES1	NewDESL
       
   738 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValBool-Active-0002-0001command11NewLC
       
   739 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValBool-Active-0002-0001command12SetRecordFilterL
       
   740 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   741 			OUTSTANDING	1000000
       
   742 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValBool-Active-0002-0001command15AttributeRequestL
       
   743 			OUTSTANDING	1000000
       
   744 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-PublicApi-AttrValBool-Active-0002-0001command18AppendValueL
       
   745 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValBool-Active-0002-0001command19AcceptVisitorL
       
   746 			STORE	CBluetoothSocket1	
       
   747 			STORE	TBTServiceSecurity1	
       
   748 			STORE	TBTDevAddrRemote	
       
   749 			STORE_ACTIVE_SCHEDULER
       
   750 	END_TEST_BLOCK
       
   751 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   752 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   753 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   754 END_TESTCASE	BTSDP-PublicApi-AttrValBool-Active-Master-0002
       
   755 DELAY		2000
       
   756 
       
   757 START_TESTCASE	BTSDP-PublicApi-AttrValBool-Active-Master-0003
       
   758 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValBool-Active-Master-0003
       
   759 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
   760 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   761 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   762 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   763 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   764 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
   765 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   766 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   767 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   768 //!								2. Add some attribute ids into the idmatchlist
       
   769 //!								3. Construct a CSdpSearchPattern object
       
   770 //!								4. Add service UUID into searchpattern
       
   771 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   772 //!								   Verify the resulting err code is KErrNone.
       
   773 //!								6. Set the service record filter with the serchpattern
       
   774 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   775 //!								   Verify the resulting err code is KErrNone.
       
   776 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   777 //!								   Verify the number of service records being found.
       
   778 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
   779 //!								   Verify the resulting err code is KErrNone.
       
   780 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   781 //!									the result of attribute request comes back in the form of a list. 
       
   782 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
   783 //!									Verify the resulting err code is KErrNone.
       
   784 //!								12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   785 //!								13. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   786 //!
       
   787 //! @SYMTestStatus				Implemented
       
   788 //! @SYMTestPriority			Critical
       
   789 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   790 //! @SYMTestType				CIT
       
   791 
       
   792 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   793 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   794 
       
   795 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   796 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   797 			SHARED_ACTIVE_SCHEDULER
       
   798 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   799 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   800 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   801 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   802 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   803 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   804 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   805 			COMMAND		TBTAttridmatchlist1	NewL
       
   806 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValBool-Active-0003-0001command3AddL
       
   807 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValBool-Active-0003-0001command4AddL
       
   808 			COMMAND		TBTSearchpattern1	NewL
       
   809 			COMMAND		TBTSearchpattern1	ConstructL
       
   810 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValBool-Active-0003-0001command8AddL
       
   811 			COMMAND		TBTAttrValueDES1	NewDESL
       
   812 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValBool-Active-0003-0001command12NewLC
       
   813 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValBool-Active-0003-0001command13SetRecordFilterL
       
   814 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-PublicApi-AttrValBool-Active-0003-0001command14NextRecordRequestL
       
   815 			OUTSTANDING	1000000
       
   816 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValBool-Active-0003-0001command16AttributeRequestL
       
   817 			OUTSTANDING	1000000
       
   818 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-PublicApi-AttrValBool-Active-0003-0001command19AppendValueL
       
   819 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValBool-Active-0003-0001command20AcceptVisitorL
       
   820 			STORE	CBluetoothSocket1	
       
   821 			STORE	TBTServiceSecurity1	
       
   822 			STORE	TBTDevAddrRemote	
       
   823 			STORE_ACTIVE_SCHEDULER
       
   824 	END_TEST_BLOCK
       
   825 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   826 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   827 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   828 END_TESTCASE	BTSDP-PublicApi-AttrValBool-Active-Master-0003
       
   829 DELAY		2000
       
   830 
       
   831 START_TESTCASE	BTSDP-PublicApi-AttrValBool-Active-Master-0004
       
   832 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValBool-Active-Master-0004
       
   833 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
   834 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   835 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   836 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   837 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   838 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
   839 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   840 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   841 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   842 //!								2. Add some attribute ids into the idmatchlist
       
   843 //!								3. Construct a CSdpSearchPattern object
       
   844 //!								4. Add service UUID into searchpattern
       
   845 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   846 //!								   Verify the resulting err code is KErrNone.
       
   847 //!								6. Set the service record filter with the serchpattern
       
   848 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   849 //!								   Verify the resulting err code is KErrNone.
       
   850 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   851 //!								   Verify the number of service records being found.
       
   852 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
   853 //!								   Verify the resulting err code is KErrNone.
       
   854 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   855 //!									the result of attribute request comes back in the form of a list. 
       
   856 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
   857 //!									Verify the resulting err code is KErrNone.
       
   858 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
   859 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   860 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   861 //!
       
   862 //! @SYMTestStatus				Implemented
       
   863 //! @SYMTestPriority			Critical
       
   864 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   865 //! @SYMTestType				CIT
       
   866 
       
   867 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   868 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   869 
       
   870 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   871 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   872 			SHARED_ACTIVE_SCHEDULER
       
   873 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   874 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   875 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   876 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   877 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   878 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   879 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   880 			COMMAND		TBTAttridmatchlist1	NewL
       
   881 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValBool-Active-0004-0001command3AddL
       
   882 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValBool-Active-0004-0001command4AddL
       
   883 			COMMAND		TBTSearchpattern1	NewL
       
   884 			COMMAND		TBTSearchpattern1	ConstructL
       
   885 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValBool-Active-0004-0001command8AddL
       
   886 			COMMAND		TBTAttrValueDES1	NewDESL
       
   887 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValBool-Active-0004-0001command12NewLC
       
   888 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValBool-Active-0004-0001command13SetRecordFilterL
       
   889 			COMMAND		TBTSdpagent	NextRecordRequestL		BTSDP-PublicApi-AttrValBool-Active-0004-0001command14NextRecordRequestL
       
   890 			OUTSTANDING	1000000
       
   891 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValBool-Active-0004-0001command16AttributeRequestL
       
   892 			OUTSTANDING	1000000
       
   893 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-PublicApi-AttrValBool-Active-0004-0001command19AppendValueL
       
   894 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrValBool-Active-0004-0001command20DataSize
       
   895 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValBool-Active-0004-0001command21AcceptVisitorL
       
   896 			STORE	CBluetoothSocket1	
       
   897 			STORE	TBTServiceSecurity1	
       
   898 			STORE	TBTDevAddrRemote	
       
   899 			STORE_ACTIVE_SCHEDULER
       
   900 	END_TEST_BLOCK
       
   901 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   902 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   903 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   904 END_TESTCASE	BTSDP-PublicApi-AttrValBool-Active-Master-0004
       
   905 DELAY		2000
       
   906 
       
   907 START_TESTCASE	BTSDP-PublicApi-AttrValBool-Active-Master-0005
       
   908 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValBool-Active-Master-0005
       
   909 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
   910 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   911 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   912 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   913 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   914 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
   915 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   916 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   917 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   918 //!								2. Add some attribute ids into the idmatchlist
       
   919 //!								3. Construct a CSdpSearchPattern object
       
   920 //!								4. Add service UUID into searchpattern
       
   921 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   922 //!								   Verify the resulting err code is KErrNone.
       
   923 //!								6. Set the service record filter with the serchpattern
       
   924 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
   925 //!								   Verify the resulting err code is KErrNone.
       
   926 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
   927 //!								   Verify the number of service records being found.
       
   928 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
   929 //!								   Verify the resulting err code is KErrNone.
       
   930 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
   931 //!									the result of attribute request comes back in the form of a list. 
       
   932 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
   933 //!									Verify the resulting err code is KErrNone.
       
   934 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
   935 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
   936 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
   937 //!
       
   938 //! @SYMTestStatus				Implemented
       
   939 //! @SYMTestPriority			Critical
       
   940 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
   941 //! @SYMTestType				CIT
       
   942 
       
   943 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   944 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   945 
       
   946 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   947 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
   948 			SHARED_ACTIVE_SCHEDULER
       
   949 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
   950 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
   951 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
   952 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
   953 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
   954 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
   955 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
   956 			COMMAND		TBTAttridmatchlist1	NewL
       
   957 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValBool-Active-0005-0001command3AddL
       
   958 			COMMAND		TBTSearchpattern1	NewL
       
   959 			COMMAND		TBTSearchpattern1	ConstructL
       
   960 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValBool-Active-0005-0001command7AddL
       
   961 			COMMAND		TBTAttrValueDES1	NewDESL
       
   962 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValBool-Active-0005-0001command11NewLC
       
   963 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValBool-Active-0005-0001command12SetRecordFilterL
       
   964 			COMMAND		TBTSdpagent	NextRecordRequestL
       
   965 			OUTSTANDING	1000000
       
   966 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValBool-Active-0005-0001command15AttributeRequestL
       
   967 			OUTSTANDING	1000000
       
   968 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-PublicApi-AttrValBool-Active-0005-0001command18AppendValueL
       
   969 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrValBool-Active-0005-0001command19DataSize
       
   970 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValBool-Active-0005-0001command20AcceptVisitorL
       
   971 			STORE	CBluetoothSocket1	
       
   972 			STORE	TBTServiceSecurity1	
       
   973 			STORE	TBTDevAddrRemote	
       
   974 			STORE_ACTIVE_SCHEDULER
       
   975 	END_TEST_BLOCK
       
   976 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   977 
       
   978 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
   979 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
   980 END_TESTCASE	BTSDP-PublicApi-AttrValBool-Active-Master-0005
       
   981 DELAY		2000
       
   982 
       
   983 START_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0101
       
   984 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Active-Master-0101
       
   985 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
   986 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
   987 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
   988 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
   989 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
   990 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
   991 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
   992 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
   993 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
   994 //!								2. Add some attribute ids into the idmatchlist
       
   995 //!								3. Construct a CSdpSearchPattern object
       
   996 //!								4. Add service UUID into searchpattern
       
   997 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
   998 //!								   Verify the resulting err code is KErrNone.
       
   999 //!								6. Set the service record filter with the serchpattern
       
  1000 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1001 //!								   Verify the resulting err code is KErrNone.
       
  1002 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1003 //!								   Verify the number of service records being found.
       
  1004 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1005 //!								   Verify the resulting err code is KErrNone.
       
  1006 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1007 //!									the result of attribute request comes back in the form of a list. 
       
  1008 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1009 //!									Verify the resulting err code is KErrNone.
       
  1010 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1011 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1012 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1013 //!
       
  1014 //! @SYMTestStatus				Implemented
       
  1015 //! @SYMTestPriority			Critical
       
  1016 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1017 //! @SYMTestType				CIT
       
  1018 
       
  1019 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1020 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1021 
       
  1022 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1023 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1024 			SHARED_ACTIVE_SCHEDULER
       
  1025 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1026 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1027 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1028 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1029 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1030 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1031 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1032 			COMMAND		TBTAttridmatchlist1	NewL
       
  1033 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0101-0001command3AddL
       
  1034 			COMMAND		TBTSearchpattern1	NewL
       
  1035 			COMMAND		TBTSearchpattern1	ConstructL
       
  1036 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValNil-Active-0101-0001command7AddL
       
  1037 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1038 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValNil-Active-0101-0001command11NewLC
       
  1039 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValNil-Active-0101-0001command12SetRecordFilterL
       
  1040 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1041 			OUTSTANDING	1000000
       
  1042 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValNil-Active-0101-0001command15AttributeRequestL
       
  1043 			OUTSTANDING	1000000
       
  1044 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-PublicApi-AttrValNil-Active-0101-0001command18AppendValueL
       
  1045 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrValNil-Active-0101-0001command19DataSize
       
  1046 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValNil-Active-0101-0001command20AcceptVisitorL
       
  1047 			STORE	CBluetoothSocket1	
       
  1048 			STORE	TBTServiceSecurity1	
       
  1049 			STORE	TBTDevAddrRemote	
       
  1050 			STORE_ACTIVE_SCHEDULER
       
  1051 	END_TEST_BLOCK
       
  1052 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1053 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1054 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1055 END_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0101
       
  1056 
       
  1057 DELAY		2000
       
  1058 START_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0102
       
  1059 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Active-Master-0102
       
  1060 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1061 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1062 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1063 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1064 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1065 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1066 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1067 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1068 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1069 //!								2. Add some attribute ids into the idmatchlist
       
  1070 //!								3. Construct a CSdpSearchPattern object
       
  1071 //!								4. Add service UUID into searchpattern
       
  1072 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1073 //!								   Verify the resulting err code is KErrNone.
       
  1074 //!								6. Set the service record filter with the serchpattern
       
  1075 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1076 //!								   Verify the resulting err code is KErrNone.
       
  1077 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1078 //!								   Verify the number of service records being found.
       
  1079 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1080 //!								   Verify the resulting err code is KErrNone.
       
  1081 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1082 //!									the result of attribute request comes back in the form of a list. 
       
  1083 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1084 //!									Verify the resulting err code is KErrNone.
       
  1085 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1086 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1087 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1088 //!
       
  1089 //! @SYMTestStatus				Implemented
       
  1090 //! @SYMTestPriority			Critical
       
  1091 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1092 //! @SYMTestType				CIT
       
  1093 
       
  1094 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1095 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1096 
       
  1097 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1098 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1099 			SHARED_ACTIVE_SCHEDULER
       
  1100 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1101 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1102 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1103 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1104 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1105 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1106 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1107 			COMMAND		TBTAttridmatchlist1	NewL
       
  1108 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0102-0001command3AddL
       
  1109 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0102-0001command4AddL
       
  1110 			COMMAND		TBTSearchpattern1	NewL
       
  1111 			COMMAND		TBTSearchpattern1	ConstructL
       
  1112 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValNil-Active-0102-0001command8AddL
       
  1113 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1114 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValNil-Active-0102-0001command12NewLC
       
  1115 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValNil-Active-0102-0001command13SetRecordFilterL
       
  1116 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1117 			OUTSTANDING	1000000
       
  1118 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValNil-Active-0102-0001command16AttributeRequestL
       
  1119 			OUTSTANDING	1000000
       
  1120 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrValNil-Active-0102-0001command19DataSize
       
  1121 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValNil-Active-0102-0001command20AcceptVisitorL
       
  1122 			STORE	CBluetoothSocket1	
       
  1123 			STORE	TBTServiceSecurity1	
       
  1124 			STORE	TBTDevAddrRemote	
       
  1125 			STORE_ACTIVE_SCHEDULER
       
  1126 	END_TEST_BLOCK
       
  1127 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1128 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1129 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1130 END_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0102
       
  1131 DELAY		2000
       
  1132 
       
  1133 START_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0103
       
  1134 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Active-Master-0103
       
  1135 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1136 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1137 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1138 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1139 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1140 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1141 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1142 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1143 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1144 //!								2. Add some attribute ids into the idmatchlist
       
  1145 //!								3. Construct a CSdpSearchPattern object
       
  1146 //!								4. Add service UUID into searchpattern
       
  1147 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1148 //!								   Verify the resulting err code is KErrNone.
       
  1149 //!								6. Set the service record filter with the serchpattern
       
  1150 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1151 //!								   Verify the resulting err code is KErrNone.
       
  1152 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1153 //!								   Verify the number of service records being found.
       
  1154 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1155 //!								   Verify the resulting err code is KErrNone.
       
  1156 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1157 //!									the result of attribute request comes back in the form of a list. 
       
  1158 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1159 //!									Verify the resulting err code is KErrNone.
       
  1160 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1161 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1162 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1163 //!
       
  1164 //! @SYMTestStatus				Implemented
       
  1165 //! @SYMTestPriority			Critical
       
  1166 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1167 //! @SYMTestType				CIT
       
  1168 
       
  1169 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1170 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1171 
       
  1172 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1173 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1174 			SHARED_ACTIVE_SCHEDULER
       
  1175 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1176 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1177 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1178 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1179 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1180 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1181 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1182 			COMMAND		TBTAttridmatchlist1	NewL
       
  1183 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0103-0001command3AddL
       
  1184 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0103-0001command4AddL
       
  1185 			COMMAND		TBTSearchpattern1	NewL
       
  1186 			COMMAND		TBTSearchpattern1	ConstructL
       
  1187 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValNil-Active-0103-0001command8AddL
       
  1188 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1189 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValNil-Active-0103-0001command12NewLC
       
  1190 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValNil-Active-0103-0001command13SetRecordFilterL
       
  1191 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1192 			OUTSTANDING	1000000
       
  1193 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValNil-Active-0103-0001command16AttributeRequestL
       
  1194 			OUTSTANDING	1000000
       
  1195 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-PublicApi-AttrValNil-Active-0103-0001command19AppendValueL
       
  1196 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrValNil-Active-0103-0001command20DataSize
       
  1197 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValNil-Active-0103-0001command21AcceptVisitorL
       
  1198 			STORE	CBluetoothSocket1	
       
  1199 			STORE	TBTServiceSecurity1	
       
  1200 			STORE	TBTDevAddrRemote	
       
  1201 			STORE_ACTIVE_SCHEDULER
       
  1202 	END_TEST_BLOCK
       
  1203 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1204 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1205 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1206 END_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0103
       
  1207 DELAY		2000
       
  1208 
       
  1209 START_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0104
       
  1210 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Active-Master-0104
       
  1211 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1212 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1213 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1214 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1215 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1216 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1217 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1218 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1219 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1220 //!								2. Add some attribute ids into the idmatchlist
       
  1221 //!								3. Construct a CSdpSearchPattern object
       
  1222 //!								4. Add service UUID into searchpattern
       
  1223 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1224 //!								   Verify the resulting err code is KErrNone.
       
  1225 //!								6. Set the service record filter with the serchpattern
       
  1226 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1227 //!								   Verify the resulting err code is KErrNone.
       
  1228 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1229 //!								   Verify the number of service records being found.
       
  1230 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1231 //!								   Verify the resulting err code is KErrNone.
       
  1232 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1233 //!									the result of attribute request comes back in the form of a list. 
       
  1234 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1235 //!									Verify the resulting err code is KErrNone.
       
  1236 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1237 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1238 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1239 //!
       
  1240 //! @SYMTestStatus				Implemented
       
  1241 //! @SYMTestPriority			Critical
       
  1242 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1243 //! @SYMTestType				CIT
       
  1244 
       
  1245 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1246 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1247 
       
  1248 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1249 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1250 			SHARED_ACTIVE_SCHEDULER
       
  1251 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1252 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1253 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1254 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1255 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1256 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1257 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1258 			COMMAND		TBTAttridmatchlist1	NewL
       
  1259 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0104-0001command3AddL
       
  1260 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0104-0001command4AddL
       
  1261 			COMMAND		TBTSearchpattern1	NewL
       
  1262 			COMMAND		TBTSearchpattern1	ConstructL
       
  1263 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValNil-Active-0104-0001command8AddL
       
  1264 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1265 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValNil-Active-0104-0001command12NewLC
       
  1266 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValNil-Active-0104-0001command13SetRecordFilterL
       
  1267 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1268 			OUTSTANDING	1000000
       
  1269 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValNil-Active-0104-0001command16AttributeRequestL
       
  1270 			OUTSTANDING	1000000
       
  1271 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-PublicApi-AttrValNil-Active-0104-0001command19AppendValueL
       
  1272 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrValNil-Active-0104-0001command20DataSize
       
  1273 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValNil-Active-0104-0001command21AcceptVisitorL
       
  1274 			STORE	CBluetoothSocket1	
       
  1275 			STORE	TBTServiceSecurity1	
       
  1276 			STORE	TBTDevAddrRemote	
       
  1277 			STORE_ACTIVE_SCHEDULER
       
  1278 	END_TEST_BLOCK
       
  1279 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1280 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1281 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1282 END_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0104
       
  1283 
       
  1284 DELAY		2000
       
  1285 START_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0105
       
  1286 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Active-Master-0105
       
  1287 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1288 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1289 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1290 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1291 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1292 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1293 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1294 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1295 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1296 //!								2. Add some attribute ids into the idmatchlist
       
  1297 //!								3. Construct a CSdpSearchPattern object
       
  1298 //!								4. Add service UUID into searchpattern
       
  1299 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1300 //!								   Verify the resulting err code is KErrNone.
       
  1301 //!								6. Set the service record filter with the serchpattern
       
  1302 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1303 //!								   Verify the resulting err code is KErrNone.
       
  1304 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1305 //!								   Verify the number of service records being found.
       
  1306 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1307 //!								   Verify the resulting err code is KErrNone.
       
  1308 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1309 //!									the result of attribute request comes back in the form of a list. 
       
  1310 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1311 //!									Verify the resulting err code is KErrNone.
       
  1312 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1313 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1314 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1315 //!
       
  1316 //! @SYMTestStatus				Implemented
       
  1317 //! @SYMTestPriority			Critical
       
  1318 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1319 //! @SYMTestType				CIT
       
  1320 
       
  1321 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1322 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1323 
       
  1324 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1325 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1326 			SHARED_ACTIVE_SCHEDULER
       
  1327 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1328 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1329 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1330 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1331 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1332 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1333 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1334 			COMMAND		TBTAttridmatchlist1	NewL
       
  1335 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0105-0001command3AddL
       
  1336 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0105-0001command4AddL
       
  1337 			COMMAND		TBTSearchpattern1	NewL
       
  1338 			COMMAND		TBTSearchpattern1	ConstructL
       
  1339 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValNil-Active-0105-0001command8AddL
       
  1340 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1341 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValNil-Active-0105-0001command12NewLC
       
  1342 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValNil-Active-0105-0001command13SetRecordFilterL
       
  1343 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1344 			OUTSTANDING	1000000
       
  1345 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValNil-Active-0105-0001command16AttributeRequestL
       
  1346 			OUTSTANDING	1000000
       
  1347 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-PublicApi-AttrValNil-Active-0105-0001command19AppendValueL
       
  1348 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrValNil-Active-0105-0001command20DataSize
       
  1349 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValNil-Active-0105-0001command21AcceptVisitorL
       
  1350 			STORE	CBluetoothSocket1	
       
  1351 			STORE	TBTServiceSecurity1	
       
  1352 			STORE	TBTDevAddrRemote	
       
  1353 			STORE_ACTIVE_SCHEDULER
       
  1354 	END_TEST_BLOCK
       
  1355 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1356 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1357 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1358 END_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0105
       
  1359 
       
  1360 DELAY		2000
       
  1361 START_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0106
       
  1362 //! @SYMTestCaseID				BTSDP-PublicApi-AttrValNil-Active-Master-0106
       
  1363 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES 
       
  1364 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1365 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1366 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1367 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1368 //!													NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES
       
  1369 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1370 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1371 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1372 //!								2. Add some attribute ids into the idmatchlist
       
  1373 //!								3. Construct a CSdpSearchPattern object
       
  1374 //!								4. Add service UUID into searchpattern
       
  1375 //!								5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object.
       
  1376 //!								   Verify the resulting err code is KErrNone.
       
  1377 //!								6. Set the service record filter with the serchpattern
       
  1378 //!								7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern.
       
  1379 //!								   Verify the resulting err code is KErrNone.
       
  1380 //!								8. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1381 //!								   Verify the number of service records being found.
       
  1382 //!								9. Search for service attributes of the service we've found using the attridmatchlist.
       
  1383 //!								   Verify the resulting err code is KErrNone.
       
  1384 //!								10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when 
       
  1385 //!									the result of attribute request comes back in the form of a list. 
       
  1386 //!								11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object.
       
  1387 //!									Verify the resulting err code is KErrNone.
       
  1388 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1389 //!								13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone.
       
  1390 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1391 //!
       
  1392 //! @SYMTestStatus				Implemented
       
  1393 //! @SYMTestPriority			Critical
       
  1394 //! @SYMTestExpectedResults		Attribute values are retrieved from slave device and the result is as expected.
       
  1395 //! @SYMTestType				CIT
       
  1396 
       
  1397 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1398 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1399 
       
  1400 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1401 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1402 			SHARED_ACTIVE_SCHEDULER
       
  1403 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1404 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1405 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1406 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1407 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1408 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1409 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1410 			COMMAND		TBTAttridmatchlist1	NewL
       
  1411 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0106-0001command3AddL
       
  1412 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrValNil-Active-0106-0001command4AddL
       
  1413 			COMMAND		TBTSearchpattern1	NewL
       
  1414 			COMMAND		TBTSearchpattern1	ConstructL
       
  1415 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrValNil-Active-0106-0001command8AddL
       
  1416 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1417 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrValNil-Active-0106-0001command12NewLC
       
  1418 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrValNil-Active-0106-0001command13SetRecordFilterL
       
  1419 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1420 			OUTSTANDING	1000000
       
  1421 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrValNil-Active-0106-0001command16AttributeRequestL
       
  1422 			OUTSTANDING	1000000
       
  1423 			COMMAND		TBTAttrValueDES1	AppendValueL		BTSDP-PublicApi-AttrValNil-Active-0106-0001command19AppendValueL
       
  1424 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrValNil-Active-0106-0001command20DataSize
       
  1425 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrValNil-Active-0106-0001command21AcceptVisitorL
       
  1426 			STORE	CBluetoothSocket1	
       
  1427 			STORE	TBTServiceSecurity1	
       
  1428 			STORE	TBTDevAddrRemote	
       
  1429 			STORE_ACTIVE_SCHEDULER
       
  1430 	END_TEST_BLOCK
       
  1431 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1432 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1433 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1434 END_TESTCASE	BTSDP-PublicApi-AttrValNil-Active-Master-0106
       
  1435 DELAY		2000
       
  1436 
       
  1437 START_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0201
       
  1438 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Active-Master-0201
       
  1439 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  1440 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1441 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1442 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1443 //!													NewDESL() from CSdpAttrValueDES
       
  1444 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1445 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1446 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1447 //!													
       
  1448 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1449 //!								2. Add some attribute ids into the idmatchlist
       
  1450 //!								3. Construct a CSdpSearchPattern object
       
  1451 //!								4. Add service UUID into searchpattern
       
  1452 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  1453 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  1454 //!								   Verify the resulting err code is KErrNone.
       
  1455 //!								7. Set the service record filter with the serchpattern
       
  1456 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  1457 //!								   Verify the resulting err code is KErrNone.
       
  1458 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1459 //!								   Verify that the service record has been retrieved.
       
  1460 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1461 //!									Verify the resulting err code is KErrNone.
       
  1462 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  1463 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  1464 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1465 //!								13. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  1466 //!									Verify the resulting err code is KErrNone.
       
  1467 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1468 //!
       
  1469 //! @SYMTestStatus				Implemented
       
  1470 //! @SYMTestPriority			Critical
       
  1471 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  1472 //! @SYMTestType				CIT
       
  1473 
       
  1474 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1475 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1476 
       
  1477 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1478 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1479 			SHARED_ACTIVE_SCHEDULER
       
  1480 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1481 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1482 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1483 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1484 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1485 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1486 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1487 			COMMAND		TBTAttridmatchlist1	NewL
       
  1488 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command3AddL
       
  1489 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command4AddL
       
  1490 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command5AddL
       
  1491 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command6AddL
       
  1492 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command7AddL
       
  1493 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command8AddL
       
  1494 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command9AddL
       
  1495 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command10AddL
       
  1496 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command11AddL
       
  1497 			COMMAND		TBTSearchpattern1	NewL
       
  1498 			COMMAND		TBTSearchpattern1	ConstructL
       
  1499 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command15AddL
       
  1500 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1501 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command19NewLC
       
  1502 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command20SetRecordFilterL
       
  1503 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1504 			OUTSTANDING	1000000
       
  1505 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command23AttributeRequestL
       
  1506 			OUTSTANDING	1000000
       
  1507 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command26DataSize
       
  1508 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrIdMatchList-Active-0201-0001command27AcceptVisitorL
       
  1509 			STORE	CBluetoothSocket1	
       
  1510 			STORE	TBTServiceSecurity1	
       
  1511 			STORE	TBTDevAddrRemote	
       
  1512 			STORE_ACTIVE_SCHEDULER
       
  1513 	END_TEST_BLOCK
       
  1514 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1515 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1516 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1517 
       
  1518 END_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0201
       
  1519 
       
  1520 DELAY		2000
       
  1521 START_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0202
       
  1522 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Active-Master-0202
       
  1523 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  1524 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1525 //!								Uses API elements: 	NewL(), AddL() from CSdpAttrIdMatchList
       
  1526 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1527 //!													NewDESL() from CSdpAttrValueDES
       
  1528 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1529 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1530 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1531 //!													
       
  1532 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1533 //!								2. Add some attribute ids into the idmatchlist
       
  1534 //!								3. Construct a CSdpSearchPattern object
       
  1535 //!								4. Add service UUID into searchpattern
       
  1536 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  1537 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  1538 //!								   Verify the resulting err code is KErrNone.
       
  1539 //!								7. Set the service record filter with the serchpattern
       
  1540 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  1541 //!								   Verify the resulting err code is KErrNone.
       
  1542 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1543 //!								   Verify that the service record has been retrieved.
       
  1544 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1545 //!									Verify the resulting err code is KErrNone.
       
  1546 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  1547 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  1548 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1549 //!								13. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  1550 //!									Verify the resulting err code is KErrNone.
       
  1551 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1552 //!
       
  1553 //! @SYMTestStatus				Implemented
       
  1554 //! @SYMTestPriority			Critical
       
  1555 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  1556 //! @SYMTestType				CIT
       
  1557 
       
  1558 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1559 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1560 
       
  1561 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1562 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1563 			SHARED_ACTIVE_SCHEDULER
       
  1564 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1565 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1566 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1567 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1568 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1569 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1570 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1571 			COMMAND		TBTAttridmatchlist1	NewL
       
  1572 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0202-0001command3AddL
       
  1573 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0202-0001command4AddL
       
  1574 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0202-0001command5AddL
       
  1575 			COMMAND		TBTSearchpattern1	NewL
       
  1576 			COMMAND		TBTSearchpattern1	ConstructL
       
  1577 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0202-0001command9AddL
       
  1578 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1579 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrIdMatchList-Active-0202-0001command13NewLC
       
  1580 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrIdMatchList-Active-0202-0001command14SetRecordFilterL
       
  1581 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1582 			OUTSTANDING	1000000
       
  1583 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrIdMatchList-Active-0202-0001command17AttributeRequestL
       
  1584 			OUTSTANDING	1000000
       
  1585 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrIdMatchList-Active-0202-0001command20DataSize
       
  1586 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrIdMatchList-Active-0202-0001command21AcceptVisitorL
       
  1587 			STORE	CBluetoothSocket1	
       
  1588 			STORE	TBTServiceSecurity1	
       
  1589 			STORE	TBTDevAddrRemote	
       
  1590 			STORE_ACTIVE_SCHEDULER
       
  1591 	END_TEST_BLOCK
       
  1592 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1593 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1594 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1595 
       
  1596 END_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0202
       
  1597 
       
  1598 DELAY		2000
       
  1599 START_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0203
       
  1600 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Active-Master-0203
       
  1601 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  1602 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1603 //!								Uses API elements: 	NewL(), AddL(), RemoveL() from CSdpAttrIdMatchList
       
  1604 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1605 //!													NewDESL() from CSdpAttrValueDES
       
  1606 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1607 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1608 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1609 //!													
       
  1610 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1611 //!								2. Add/Remove some attribute ids to/from the idmatchlist
       
  1612 //!								3. Construct a CSdpSearchPattern object
       
  1613 //!								4. Add service UUID into searchpattern
       
  1614 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  1615 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  1616 //!								   Verify the resulting err code is KErrNone.
       
  1617 //!								7. Set the service record filter with the serchpattern
       
  1618 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  1619 //!								   Verify the resulting err code is KErrNone.
       
  1620 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1621 //!								   Verify that the service record has been retrieved.
       
  1622 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1623 //!									Verify the resulting err code is KErrNone.
       
  1624 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  1625 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  1626 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1627 //!								13. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  1628 //!									Verify the resulting err code is KErrNone.
       
  1629 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1630 //!
       
  1631 //! @SYMTestStatus				Implemented
       
  1632 //! @SYMTestPriority			Critical
       
  1633 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  1634 //! @SYMTestType				CIT
       
  1635 
       
  1636 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1637 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1638 
       
  1639 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1640 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.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-PublicApi-AttrIdMatchList-Active-0203-0001command3AddL
       
  1651 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0203-0001command4RemoveL
       
  1652 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0203-0001command5RemoveL
       
  1653 			COMMAND		TBTSearchpattern1	NewL
       
  1654 			COMMAND		TBTSearchpattern1	ConstructL
       
  1655 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0203-0001command9AddL
       
  1656 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1657 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrIdMatchList-Active-0203-0001command13NewLC
       
  1658 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrIdMatchList-Active-0203-0001command14SetRecordFilterL
       
  1659 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1660 			OUTSTANDING	1000000
       
  1661 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrIdMatchList-Active-0203-0001command17AttributeRequestL
       
  1662 			OUTSTANDING	1000000
       
  1663 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrIdMatchList-Active-0203-0001command20DataSize
       
  1664 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrIdMatchList-Active-0203-0001command21AcceptVisitorL
       
  1665 			STORE	CBluetoothSocket1	
       
  1666 			STORE	TBTServiceSecurity1	
       
  1667 			STORE	TBTDevAddrRemote	
       
  1668 			STORE_ACTIVE_SCHEDULER
       
  1669 	END_TEST_BLOCK
       
  1670 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1671 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1672 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1673 
       
  1674 END_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0203
       
  1675 DELAY		2000
       
  1676 
       
  1677 START_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0204
       
  1678 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Active-Master-0204
       
  1679 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  1680 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1681 //!								Uses API elements: 	NewL(), AddL(), RemoveL() from CSdpAttrIdMatchList
       
  1682 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1683 //!													NewDESL() from CSdpAttrValueDES
       
  1684 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1685 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1686 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1687 //!													
       
  1688 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1689 //!								2. Add/Remove some attribute ids to/from the idmatchlist
       
  1690 //!								3. Construct a CSdpSearchPattern object
       
  1691 //!								4. Add service UUID into searchpattern
       
  1692 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  1693 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  1694 //!								   Verify the resulting err code is KErrNone.
       
  1695 //!								7. Set the service record filter with the serchpattern
       
  1696 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  1697 //!								   Verify the resulting err code is KErrNone.
       
  1698 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1699 //!								   Verify that the service record has been retrieved.
       
  1700 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1701 //!									Verify the resulting err code is KErrNone.
       
  1702 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  1703 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  1704 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1705 //!								13. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  1706 //!									Verify the resulting err code is KErrNone.
       
  1707 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1708 //!
       
  1709 //! @SYMTestStatus				Implemented
       
  1710 //! @SYMTestPriority			Critical
       
  1711 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  1712 //! @SYMTestType				CIT
       
  1713 
       
  1714 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1715 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1716 
       
  1717 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1718 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1719 			SHARED_ACTIVE_SCHEDULER
       
  1720 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1721 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1722 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1723 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1724 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1725 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1726 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1727 			COMMAND		TBTAttridmatchlist1	NewL
       
  1728 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0204-0001command3AddL
       
  1729 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0204-0001command4RemoveL
       
  1730 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0204-0001command5RemoveL
       
  1731 			COMMAND		TBTSearchpattern1	NewL
       
  1732 			COMMAND		TBTSearchpattern1	ConstructL
       
  1733 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0204-0001command9AddL
       
  1734 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1735 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrIdMatchList-Active-0204-0001command13NewLC
       
  1736 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrIdMatchList-Active-0204-0001command14SetRecordFilterL
       
  1737 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1738 			OUTSTANDING	1000000
       
  1739 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrIdMatchList-Active-0204-0001command17AttributeRequestL
       
  1740 			OUTSTANDING	1000000
       
  1741 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrIdMatchList-Active-0204-0001command20DataSize
       
  1742 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrIdMatchList-Active-0204-0001command21AcceptVisitorL
       
  1743 			STORE	CBluetoothSocket1	
       
  1744 			STORE	TBTServiceSecurity1	
       
  1745 			STORE	TBTDevAddrRemote	
       
  1746 			STORE_ACTIVE_SCHEDULER
       
  1747 	END_TEST_BLOCK
       
  1748 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1749 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1750 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1751 
       
  1752 END_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0204
       
  1753 DELAY		2000
       
  1754 
       
  1755 START_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0205
       
  1756 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Active-Master-0205
       
  1757 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  1758 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1759 //!								Uses API elements: 	NewL(), AddL(), RemoveL() from CSdpAttrIdMatchList
       
  1760 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1761 //!													NewDESL() from CSdpAttrValueDES
       
  1762 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1763 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1764 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1765 //!													
       
  1766 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1767 //!								2. Add/Remove some attribute ids to/from the idmatchlist
       
  1768 //!								3. Construct a CSdpSearchPattern object
       
  1769 //!								4. Add service UUID into searchpattern
       
  1770 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  1771 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  1772 //!								   Verify the resulting err code is KErrNone.
       
  1773 //!								7. Set the service record filter with the serchpattern
       
  1774 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  1775 //!								   Verify the resulting err code is KErrNone.
       
  1776 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1777 //!								   Verify that the service record has been retrieved.
       
  1778 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1779 //!									Verify the resulting err code is KErrNone.
       
  1780 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  1781 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  1782 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1783 //!								13. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  1784 //!									Verify the resulting err code is KErrNone.
       
  1785 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1786 //!
       
  1787 //! @SYMTestStatus				Implemented
       
  1788 //! @SYMTestPriority			Critical
       
  1789 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  1790 //! @SYMTestType				CIT
       
  1791 
       
  1792 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1793 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1794 
       
  1795 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1796 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1797 			SHARED_ACTIVE_SCHEDULER
       
  1798 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1799 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1800 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1801 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1802 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1803 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1804 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1805 			COMMAND		TBTAttridmatchlist1	NewL
       
  1806 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command3AddL
       
  1807 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command4AddL
       
  1808 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command5AddL
       
  1809 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command6AddL
       
  1810 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command7AddL
       
  1811 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command8AddL
       
  1812 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command9AddL
       
  1813 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command10AddL
       
  1814 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command11AddL
       
  1815 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command12RemoveL
       
  1816 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command13RemoveL
       
  1817 			COMMAND		TBTSearchpattern1	NewL
       
  1818 			COMMAND		TBTSearchpattern1	ConstructL
       
  1819 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command17AddL
       
  1820 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1821 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command21NewLC
       
  1822 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command22SetRecordFilterL
       
  1823 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1824 			OUTSTANDING	1000000
       
  1825 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command25AttributeRequestL
       
  1826 			OUTSTANDING	1000000
       
  1827 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command28DataSize
       
  1828 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrIdMatchList-Active-0205-0001command29AcceptVisitorL
       
  1829 			STORE	CBluetoothSocket1	
       
  1830 			STORE	TBTServiceSecurity1	
       
  1831 			STORE	TBTDevAddrRemote	
       
  1832 			STORE_ACTIVE_SCHEDULER
       
  1833 	END_TEST_BLOCK
       
  1834 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1835 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1836 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1837 
       
  1838 END_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0205
       
  1839 
       
  1840 DELAY		2000
       
  1841 START_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0206
       
  1842 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Active-Master-0206
       
  1843 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  1844 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1845 //!								Uses API elements: 	NewL(), AddL(), RemoveL() from CSdpAttrIdMatchList
       
  1846 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1847 //!													NewDESL() from CSdpAttrValueDES
       
  1848 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1849 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1850 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1851 //!													
       
  1852 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1853 //!								2. Add/Remove some attribute ids to/from the idmatchlist
       
  1854 //!								3. Construct a CSdpSearchPattern object
       
  1855 //!								4. Add service UUID into searchpattern
       
  1856 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  1857 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  1858 //!								   Verify the resulting err code is KErrNone.
       
  1859 //!								7. Set the service record filter with the serchpattern
       
  1860 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  1861 //!								   Verify the resulting err code is KErrNone.
       
  1862 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1863 //!								   Verify that the service record has been retrieved.
       
  1864 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1865 //!									Verify the resulting err code is KErrNone.
       
  1866 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  1867 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  1868 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1869 //!								13. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  1870 //!									Verify the resulting err code is KErrNone.
       
  1871 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1872 //!
       
  1873 //! @SYMTestStatus				Implemented
       
  1874 //! @SYMTestPriority			Critical
       
  1875 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  1876 //! @SYMTestType				CIT
       
  1877 
       
  1878 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1879 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1880 
       
  1881 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1882 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1883 			SHARED_ACTIVE_SCHEDULER
       
  1884 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1885 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1886 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1887 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1888 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1889 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1890 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1891 			COMMAND		TBTAttridmatchlist1	NewL
       
  1892 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command3AddL
       
  1893 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command4AddL
       
  1894 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command5AddL
       
  1895 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command6AddL
       
  1896 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command7AddL
       
  1897 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command8AddL
       
  1898 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command9AddL
       
  1899 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command10AddL
       
  1900 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command11AddL
       
  1901 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command12RemoveL
       
  1902 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command13RemoveL
       
  1903 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command14AddL
       
  1904 			COMMAND		TBTSearchpattern1	NewL
       
  1905 			COMMAND		TBTSearchpattern1	ConstructL
       
  1906 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command18AddL
       
  1907 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1908 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command22NewLC
       
  1909 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command23SetRecordFilterL
       
  1910 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1911 			OUTSTANDING	1000000
       
  1912 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command26AttributeRequestL
       
  1913 			OUTSTANDING	1000000
       
  1914 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command29DataSize
       
  1915 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrIdMatchList-Active-0206-0001command30AcceptVisitorL
       
  1916 			STORE	CBluetoothSocket1	
       
  1917 			STORE	TBTServiceSecurity1	
       
  1918 			STORE	TBTDevAddrRemote	
       
  1919 			STORE_ACTIVE_SCHEDULER
       
  1920 	END_TEST_BLOCK
       
  1921 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1922 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1923 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1924 
       
  1925 END_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0206
       
  1926 
       
  1927 DELAY		2000
       
  1928 START_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0207
       
  1929 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Active-Master-0207
       
  1930 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  1931 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  1932 //!								Uses API elements: 	NewL(), AddL(), RemoveL() from CSdpAttrIdMatchList
       
  1933 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  1934 //!													NewDESL() from CSdpAttrValueDES
       
  1935 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  1936 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  1937 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  1938 //!													
       
  1939 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  1940 //!								2. Add/Remove some attribute ids to/from the idmatchlist
       
  1941 //!								3. Construct a CSdpSearchPattern object
       
  1942 //!								4. Add service UUID into searchpattern
       
  1943 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  1944 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  1945 //!								   Verify the resulting err code is KErrNone.
       
  1946 //!								7. Set the service record filter with the serchpattern
       
  1947 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  1948 //!								   Verify the resulting err code is KErrNone.
       
  1949 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  1950 //!								   Verify that the service record has been retrieved.
       
  1951 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  1952 //!									Verify the resulting err code is KErrNone.
       
  1953 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  1954 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  1955 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  1956 //!								13. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  1957 //!									Verify the resulting err code is KErrNone.
       
  1958 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  1959 //!
       
  1960 //! @SYMTestStatus				Implemented
       
  1961 //! @SYMTestPriority			Critical
       
  1962 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  1963 //! @SYMTestType				CIT
       
  1964 
       
  1965 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1966 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  1967 
       
  1968 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  1969 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  1970 			SHARED_ACTIVE_SCHEDULER
       
  1971 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  1972 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  1973 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  1974 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  1975 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  1976 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  1977 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  1978 			COMMAND		TBTAttridmatchlist1	NewL
       
  1979 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command3AddL
       
  1980 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command4AddL
       
  1981 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command5RemoveL
       
  1982 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command6RemoveL
       
  1983 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command7RemoveL
       
  1984 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command8RemoveL
       
  1985 			COMMAND		TBTSearchpattern1	NewL
       
  1986 			COMMAND		TBTSearchpattern1	ConstructL
       
  1987 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command12AddL
       
  1988 			COMMAND		TBTAttrValueDES1	NewDESL
       
  1989 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command16NewLC
       
  1990 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command17SetRecordFilterL
       
  1991 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  1992 			OUTSTANDING	1000000
       
  1993 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command20AttributeRequestL
       
  1994 			OUTSTANDING	1000000
       
  1995 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command23DataSize
       
  1996 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrIdMatchList-Active-0207-0001command24AcceptVisitorL
       
  1997 			STORE	CBluetoothSocket1	
       
  1998 			STORE	TBTServiceSecurity1	
       
  1999 			STORE	TBTDevAddrRemote	
       
  2000 			STORE_ACTIVE_SCHEDULER
       
  2001 	END_TEST_BLOCK
       
  2002 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2003 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2004 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2005 
       
  2006 END_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0207
       
  2007 DELAY		2000
       
  2008 
       
  2009 START_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0208
       
  2010 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Active-Master-0208
       
  2011 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  2012 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2013 //!								Uses API elements: 	NewL(), AddL(), RemoveL() from CSdpAttrIdMatchList
       
  2014 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  2015 //!													NewDESL() from CSdpAttrValueDES
       
  2016 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2017 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2018 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2019 //!													
       
  2020 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2021 //!								2. Add/Remove some attribute ids to/from the idmatchlist
       
  2022 //!								3. Construct a CSdpSearchPattern object
       
  2023 //!								4. Add service UUID into searchpattern
       
  2024 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  2025 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  2026 //!								   Verify the resulting err code is KErrNone.
       
  2027 //!								7. Set the service record filter with the serchpattern
       
  2028 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  2029 //!								   Verify the resulting err code is KErrNone.
       
  2030 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2031 //!								   Verify that the service record has been retrieved.
       
  2032 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  2033 //!									Verify the resulting err code is KErrNone.
       
  2034 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  2035 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  2036 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  2037 //!								13. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  2038 //!									Verify the resulting err code is KErrNone.
       
  2039 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2040 //!
       
  2041 //! @SYMTestStatus				Implemented
       
  2042 //! @SYMTestPriority			Critical
       
  2043 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  2044 //! @SYMTestType				CIT
       
  2045 
       
  2046 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2047 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2048 
       
  2049 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2050 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  2051 			SHARED_ACTIVE_SCHEDULER
       
  2052 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2053 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2054 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2055 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2056 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2057 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2058 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2059 			COMMAND		TBTAttridmatchlist1	NewL
       
  2060 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command3AddL
       
  2061 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command4AddL
       
  2062 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command5RemoveL
       
  2063 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command6RemoveL
       
  2064 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command7RemoveL
       
  2065 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command8RemoveL
       
  2066 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command9AddL
       
  2067 			COMMAND		TBTSearchpattern1	NewL
       
  2068 			COMMAND		TBTSearchpattern1	ConstructL
       
  2069 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command13AddL
       
  2070 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2071 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command17NewLC
       
  2072 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command18SetRecordFilterL
       
  2073 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  2074 			OUTSTANDING	1000000
       
  2075 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command21AttributeRequestL
       
  2076 			OUTSTANDING	1000000
       
  2077 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command24DataSize
       
  2078 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrIdMatchList-Active-0208-0001command25AcceptVisitorL
       
  2079 			STORE	CBluetoothSocket1	
       
  2080 			STORE	TBTServiceSecurity1	
       
  2081 			STORE	TBTDevAddrRemote	
       
  2082 			STORE_ACTIVE_SCHEDULER
       
  2083 	END_TEST_BLOCK
       
  2084 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2085 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2086 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2087 
       
  2088 END_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0208
       
  2089 
       
  2090 DELAY		2000
       
  2091 START_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0209
       
  2092 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Active-Master-0209
       
  2093 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  2094 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2095 //!								Uses API elements: 	NewL(), AddL(), RemoveL() from CSdpAttrIdMatchList
       
  2096 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  2097 //!													NewDESL() from CSdpAttrValueDES
       
  2098 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2099 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2100 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2101 //!													
       
  2102 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2103 //!								2. Add/Remove some attribute ids to/from the idmatchlist
       
  2104 //!								3. Construct a CSdpSearchPattern object
       
  2105 //!								4. Add service UUID into searchpattern
       
  2106 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  2107 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  2108 //!								   Verify the resulting err code is KErrNone.
       
  2109 //!								7. Set the service record filter with the serchpattern
       
  2110 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  2111 //!								   Verify the resulting err code is KErrNone.
       
  2112 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2113 //!								   Verify that the service record has been retrieved.
       
  2114 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  2115 //!									Verify the resulting err code is KErrNone.
       
  2116 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  2117 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  2118 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  2119 //!								13. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  2120 //!									Verify the resulting err code is KErrNone.
       
  2121 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2122 //!
       
  2123 //! @SYMTestStatus				Implemented
       
  2124 //! @SYMTestPriority			Critical
       
  2125 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  2126 //! @SYMTestType				CIT
       
  2127 
       
  2128 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2129 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2130 
       
  2131 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2132 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  2133 			SHARED_ACTIVE_SCHEDULER
       
  2134 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2135 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2136 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2137 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2138 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2139 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2140 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2141 			COMMAND		TBTAttridmatchlist1	NewL
       
  2142 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command3AddL
       
  2143 			COMMAND		TBTAttridmatchlist1	Count		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command4Count
       
  2144 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command5RemoveL
       
  2145 			COMMAND		TBTAttridmatchlist1	Count		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command6Count
       
  2146 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command7RemoveL
       
  2147 			COMMAND		TBTAttridmatchlist1	Count		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command8Count
       
  2148 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command9AddL
       
  2149 			COMMAND		TBTAttridmatchlist1	Count		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command10Count
       
  2150 			COMMAND		TBTSearchpattern1	NewL
       
  2151 			COMMAND		TBTSearchpattern1	ConstructL
       
  2152 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command14AddL
       
  2153 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2154 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command18NewLC
       
  2155 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command19SetRecordFilterL
       
  2156 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  2157 			OUTSTANDING	1000000
       
  2158 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command22AttributeRequestL
       
  2159 			OUTSTANDING	1000000
       
  2160 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command25DataSize
       
  2161 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrIdMatchList-Active-0209-0001command26AcceptVisitorL
       
  2162 			STORE	CBluetoothSocket1	
       
  2163 			STORE	TBTServiceSecurity1	
       
  2164 			STORE	TBTDevAddrRemote	
       
  2165 			STORE_ACTIVE_SCHEDULER
       
  2166 	END_TEST_BLOCK
       
  2167 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2168 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2169 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2170 
       
  2171 END_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0209
       
  2172 DELAY		2000
       
  2173 
       
  2174 START_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0210
       
  2175 //! @SYMTestCaseID				BTSDP-PublicApi-AttrIdMatchList-Active-Master-0210
       
  2176 //! @SYMAPI						CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier
       
  2177 //! @SYMTestCaseDesc			Search for service on slave device, search for service attributes and retrieve attribute values
       
  2178 //!								Uses API elements: 	NewL(), AddL(), RemoveL() from CSdpAttrIdMatchList
       
  2179 //!													NewL(), ConstructL(), AddL from CSdpSearchPattern
       
  2180 //!													NewDESL() from CSdpAttrValueDES
       
  2181 //!													VisitAttributeValueL() from MSdpAttributeValueVisitor
       
  2182 //!													AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier
       
  2183 //!													NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent
       
  2184 //!													
       
  2185 //! @SYMTestActions				1. Construct a CSdpAttrIdMatchList object
       
  2186 //!								2. Add/Remove some attribute ids to/from the idmatchlist
       
  2187 //!								3. Construct a CSdpSearchPattern object
       
  2188 //!								4. Add service UUID into searchpattern
       
  2189 //!								5. Construct a CSdpAttrValueDES to hold attribute search result of step 12
       
  2190 //!								6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object
       
  2191 //!								   Verify the resulting err code is KErrNone.
       
  2192 //!								7. Set the service record filter with the serchpattern
       
  2193 //!								8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern
       
  2194 //!								   Verify the resulting err code is KErrNone.
       
  2195 //!								9. The call back function NextRecordRequestComplete() is executed if the results comes back.
       
  2196 //!								   Verify that the service record has been retrieved.
       
  2197 //!								10. Search for service attributes of the service we've found using the attridmatchlist.
       
  2198 //!									Verify the resulting err code is KErrNone.
       
  2199 //!								11. The call back functions AttributeRequestComplete() is executed when 
       
  2200 //!									the result of attribute request comes back. Result will be put into CSdpAttrValueDES object.
       
  2201 //!								12. Verify the data size of CSdpAttrValueDES object. It should be the sum of the size of every attribute value.
       
  2202 //!								13. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. 
       
  2203 //!									Verify the resulting err code is KErrNone.
       
  2204 //!								14. Check the result by comparing the result string generated by VisitAttributeValueL().
       
  2205 //!
       
  2206 //! @SYMTestStatus				Implemented
       
  2207 //! @SYMTestPriority			Critical
       
  2208 //! @SYMTestExpectedResults		CSdpAgent object was created successfully
       
  2209 //! @SYMTestType				CIT
       
  2210 
       
  2211 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2212 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2213 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2214 	START_TEST_BLOCK	100	T_BTSdpAPI	\bluetooth\sdp\BTSDP-Agent-PublicApi-Active-Master.ini
       
  2215 			SHARED_ACTIVE_SCHEDULER
       
  2216 			CREATE_OBJECT	CSdpAgent	TBTSdpagent	
       
  2217 			RESTORE_OBJECT	TBTDevAddr	TBTDevAddrRemote	
       
  2218 			RESTORE_OBJECT	CBluetoothSocket	CBluetoothSocket1	
       
  2219 			RESTORE_OBJECT	TBTServiceSecurity	TBTServiceSecurity1	
       
  2220 			CREATE_OBJECT	CSdpAttrIdMatchList	TBTAttridmatchlist1	
       
  2221 			CREATE_OBJECT	CSdpSearchPattern	TBTSearchpattern1	
       
  2222 			CREATE_OBJECT	CSdpAttrValueDES	TBTAttrValueDES1	
       
  2223 			COMMAND		TBTAttridmatchlist1	NewL
       
  2224 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command3AddL
       
  2225 			COMMAND		TBTAttridmatchlist1	InMatchList		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command4InMatchList
       
  2226 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command5RemoveL
       
  2227 			COMMAND		TBTAttridmatchlist1	InMatchList		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command6InMatchList
       
  2228 			COMMAND		TBTAttridmatchlist1	RemoveL		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command7RemoveL
       
  2229 			COMMAND		TBTAttridmatchlist1	InMatchList		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command8InMatchList
       
  2230 			COMMAND		TBTAttridmatchlist1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command9AddL
       
  2231 			COMMAND		TBTAttridmatchlist1	InMatchList		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command10InMatchList
       
  2232 			COMMAND		TBTAttridmatchlist1	InMatchList		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command11InMatchList
       
  2233 			COMMAND		TBTAttridmatchlist1	InMatchList		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command12InMatchList
       
  2234 			COMMAND		TBTAttridmatchlist1	InMatchList		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command13InMatchList
       
  2235 			COMMAND		TBTSearchpattern1	NewL
       
  2236 			COMMAND		TBTSearchpattern1	ConstructL
       
  2237 			COMMAND		TBTSearchpattern1	AddL		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command17AddL
       
  2238 			COMMAND		TBTAttrValueDES1	NewDESL
       
  2239 			COMMAND		TBTSdpagent	NewLC		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command21NewLC
       
  2240 			COMMAND		TBTSdpagent	SetRecordFilterL		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command22SetRecordFilterL
       
  2241 			COMMAND		TBTSdpagent	NextRecordRequestL
       
  2242 			OUTSTANDING	1000000
       
  2243 			COMMAND		TBTSdpagent	AttributeRequestL		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command25AttributeRequestL
       
  2244 			OUTSTANDING	1000000
       
  2245 			COMMAND		TBTAttrValueDES1	DataSize		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command28DataSize
       
  2246 			COMMAND		TBTAttrValueDES1	AcceptVisitorL		BTSDP-PublicApi-AttrIdMatchList-Active-0210-0001command29AcceptVisitorL
       
  2247 			STORE_ACTIVE_SCHEDULER
       
  2248 	END_TEST_BLOCK
       
  2249 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2250 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StartSyncTestCase
       
  2251 	RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveSyncTestCaseResult
       
  2252 
       
  2253 END_TESTCASE	BTSDP-PublicApi-AttrIdMatchList-Active-Master-0210
       
  2254 
       
  2255 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini RetrieveExecutionResultPassiveSlave
       
  2256 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StopTDService
       
  2257 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\sdp\UccControlChannelConfig.ini StopSyncService
       
  2258 
       
  2259 
       
  2260 
       
  2261 
       
  2262 
       
  2263