bluetoothapitest/bluetoothsvs/T_BTUserAPI/scripts/BT-USER-L2CapConfig-PublicApi.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_BTUserAPI
       
    19 //! @SYMScriptTestEnvironment	This test script requires a basic ROM with bluetooth dongle.
       
    20 //! @SYMScriptDescription		Tests all public elements of the TL2CapConfig 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 USER 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					Cliff Chuang
       
    27 //! @SYMCreationDate			12/03/2007
       
    28 ///////////////////////////////////////////////////////////////////////////////
       
    29 
       
    30 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\
       
    31 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\user\
       
    32 
       
    33 LOAD_SUITE	T_BTUserAPI
       
    34 DELAY		500
       
    35 
       
    36 
       
    37 // ****************************************************************************
       
    38 // TL2CapConfig
       
    39 // **************************************************************************** 
       
    40 
       
    41 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8001
       
    42 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8001
       
    43 //! @SYMAPI							TL2CapConfig
       
    44 //! @SYMTestCaseDesc				Create a TL2CapConfig object
       
    45 //!									Uses API elements: TL2CapConfig()
       
    46 //! @SYMTestActions					Create a new empty TL2CapConfig object
       
    47 //!	
       
    48 //! @SYMTestStatus					Implemented
       
    49 //! @SYMTestPriority				Low
       
    50 //! @SYMTestExpectedResults			object created
       
    51 //! @SYMTestType					CIT
       
    52 
       
    53 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
    54 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
    55 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
    56 	END_TEST_BLOCK
       
    57 
       
    58 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8001
       
    59 
       
    60 
       
    61 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8002
       
    62 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8002
       
    63 //! @SYMAPI							TL2CapConfig
       
    64 //! @SYMTestCaseDesc				Set a new (outgoing) max transmit unit size
       
    65 //!									Uses API elements: TL2CapConfig() and SetMaxTransmitUnitSize()
       
    66 //! @SYMTestActions					1. Create a new empty TL2CapConfig object
       
    67 //!									2. Set a new (outgoing) max transmit unit size (decimal 65535) and return KErrNone
       
    68 //!
       
    69 //! @SYMTestStatus					Implemented
       
    70 //! @SYMTestPriority				Low
       
    71 //! @SYMTestExpectedResults			KErrNone returned
       
    72 //! @SYMTestType					CIT
       
    73 
       
    74 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
    75 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
    76 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
    77 			COMMAND		TL2CapConfigData	SetMaxTransmitUnitSize		BT-USER-L2CapConfig-PublicApi-0002-0001command2SetMaxTransmitUnitSize
       
    78 	END_TEST_BLOCK
       
    79 
       
    80 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8002
       
    81 
       
    82 
       
    83 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8003
       
    84 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8003
       
    85 //! @SYMAPI							TL2CapConfig
       
    86 //! @SYMTestCaseDesc				Set and Get maximum transmit unit size
       
    87 //!									Uses API elements: TL2CapConfig() and MaxTransmitUnitSize()
       
    88 //! @SYMTestActions					1. Create a new empty TL2CapConfig object
       
    89 //!									2. Get MTU value. Verify that if result (False) is as expected (False).
       
    90 //!									3. Set a new (outgoing) max transmit unit size (decimal 65534) and return KErrNone
       
    91 //!									3. Get MTU value
       
    92 //!									4. Verify that True if MTU value has been set with the value (decimal 65534) as expected
       
    93 //!
       
    94 //! @SYMTestStatus					Implemented
       
    95 //! @SYMTestPriority				Low
       
    96 //! @SYMTestExpectedResults			True if MTU value has been set, otherwise False
       
    97 //! @SYMTestType					CIT
       
    98 
       
    99 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   100 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   101 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   102 			COMMAND		TL2CapConfigData	MaxTransmitUnitSize		BT-USER-L2CapConfig-PublicApi-0003-0001command2MaxTransmitUnitSize
       
   103 			COMMAND		TL2CapConfigData	SetMaxTransmitUnitSize		BT-USER-L2CapConfig-PublicApi-0003-0001command3SetMaxTransmitUnitSize
       
   104 			COMMAND		TL2CapConfigData	MaxTransmitUnitSize		BT-USER-L2CapConfig-PublicApi-0003-0001command4MaxTransmitUnitSize
       
   105 	END_TEST_BLOCK
       
   106 
       
   107 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8003
       
   108 
       
   109 
       
   110 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8004
       
   111 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8004
       
   112 //! @SYMAPI							TL2CapConfig
       
   113 //! @SYMTestCaseDesc				Set a new (incoming) max receive unit size
       
   114 //!									Uses API elements: TL2CapConfig() and SetMaxReceiveUnitSize()
       
   115 //! @SYMTestActions					1. Create a new empty TL2CapConfig object
       
   116 //!									2. Set a new (incoming) max receive unit size (decimal 65535) and return KErrNone
       
   117 //!
       
   118 //! @SYMTestStatus					Implemented
       
   119 //! @SYMTestPriority				Low
       
   120 //! @SYMTestExpectedResults			KErrNone returned
       
   121 //! @SYMTestType					CIT
       
   122 
       
   123 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   124 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   125 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   126 			COMMAND		TL2CapConfigData	SetMaxReceiveUnitSize		BT-USER-L2CapConfig-PublicApi-0004-0001command2SetMaxReceiveUnitSize
       
   127 	END_TEST_BLOCK
       
   128 
       
   129 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8004
       
   130 
       
   131 
       
   132 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8005
       
   133 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8005
       
   134 //! @SYMAPI							TL2CapConfig
       
   135 //! @SYMTestCaseDesc				Set and Get max receive unit size
       
   136 //!									Uses API elements: TL2CapConfig() and MaxReceiveUnitSize()
       
   137 //! @SYMTestActions					1. Create a new empty TL2CapConfig object
       
   138 //!									2. Get max receive unit size. Verify that if result (False) is as expected (False)
       
   139 //!									3. Set a new (incoming) max receive unit size (decimal 65535) and return KErrNone
       
   140 //!									4. Set max receive unit size
       
   141 //!									5. Verify that True if MRU value has been set with the value (decimal 65534) as expected
       
   142 //!
       
   143 //! @SYMTestStatus					Implemented
       
   144 //! @SYMTestPriority				Low
       
   145 //! @SYMTestExpectedResults			True if MRU value has been set, otherwise False
       
   146 //! @SYMTestType					CIT
       
   147 
       
   148 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   149 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   150 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   151 			COMMAND		TL2CapConfigData	MaxReceiveUnitSize		BT-USER-L2CapConfig-PublicApi-0005-0001command2MaxReceiveUnitSize
       
   152 			COMMAND		TL2CapConfigData	SetMaxReceiveUnitSize		BT-USER-L2CapConfig-PublicApi-0005-0001command3SetMaxReceiveUnitSize
       
   153 			COMMAND		TL2CapConfigData	MaxReceiveUnitSize		BT-USER-L2CapConfig-PublicApi-0005-0001command4MaxReceiveUnitSize
       
   154 	END_TEST_BLOCK
       
   155 
       
   156 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8005
       
   157 
       
   158 
       
   159 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8006
       
   160 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8006
       
   161 //! @SYMAPI							TL2CapConfig
       
   162 //! @SYMTestCaseDesc				Set a reliable channel
       
   163 //!									Uses API elements: TL2CapConfig() and ConfigureReliableChannel()
       
   164 //! @SYMTestActions					1. Create a new empty TL2CapConfig object
       
   165 //!									2. Request a reliable channel and the length of time allowed for l2Cap retransmissions (decimal 1) 
       
   166 //!									   and return KErrNone
       
   167 //!									3. Request a reliable channel and the length of time allowed for l2Cap retransmissions (decimal 60) 
       
   168 //!									   and return KErrNone
       
   169 //!
       
   170 //! @SYMTestStatus					Implemented
       
   171 //! @SYMTestPriority				Low
       
   172 //! @SYMTestExpectedResults			Always KErrNone returned
       
   173 //! @SYMTestType					CIT
       
   174 
       
   175 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   176 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   177 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   178 			COMMAND		TL2CapConfigData	ConfigureReliableChannel		BT-USER-L2CapConfig-PublicApi-0006-0001command2ConfigureReliableChannel
       
   179 			COMMAND		TL2CapConfigData	ConfigureReliableChannel		BT-USER-L2CapConfig-PublicApi-0006-0001command3ConfigureReliableChannel
       
   180 	END_TEST_BLOCK
       
   181 
       
   182 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8006
       
   183 
       
   184 
       
   185 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8007
       
   186 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8007
       
   187 //! @SYMAPI							TL2CapConfig
       
   188 //! @SYMTestCaseDesc				Set an unreliable channel
       
   189 //!									Uses API elements: TL2CapConfig() and ConfigureUnreliableChannel()
       
   190 //! @SYMTestActions					1. Create a new empty TL2CapConfig object
       
   191 //!									2. Request an unreliable channel and give the time (decimal 300) after which a packet may be dropped 
       
   192 //!									   or "flushed" by the baseband and return KErrNone
       
   193 //!
       
   194 //! @SYMTestStatus					Implemented
       
   195 //! @SYMTestPriority				Low
       
   196 //! @SYMTestExpectedResults			KErrNone returned
       
   197 //! @SYMTestType					CIT
       
   198 
       
   199 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   200 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   201 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   202 			COMMAND		TL2CapConfigData	ConfigureUnreliableChannel		BT-USER-L2CapConfig-PublicApi-0007-0001command2ConfigureUnreliableChannel
       
   203 	END_TEST_BLOCK
       
   204 
       
   205 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8007
       
   206 
       
   207 
       
   208 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8008
       
   209 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8008
       
   210 //! @SYMAPI							TL2CapConfig
       
   211 //! @SYMTestCaseDesc				Set and get the channel reliability and the associated timer
       
   212 //!									Uses API elements: TL2CapConfig(), ConfigureReliableChannel(), ConfigureUnreliableChannel() and ChannelReliability()
       
   213 //! @SYMTestActions					1. Create a new empty TL2CapConfig object
       
   214 //!									2. Get the channel reliability and the assoicated timer. Verify that if result (False) is as expected (False)
       
   215 //!									3. Set a reliable channel and the length of time (decimal 60) allowed for l2Cap retransmissions and return KErrNone
       
   216 //!									4. Get the channel reliability (return True) and verify that if TChannelReliability (EReliableChannel) is as expected (EReliableChannel)
       
   217 //!									5. If TChannelReliability is as expected, verify that the assoicated timer (decimal 60) is as expected (decimal 60) 
       
   218 //!									6. Set an unreliable channel and give the time (decimal 300) after which a packet may be dropped or "flushed" by the 
       
   219 //									   baseband and return KErrNone
       
   220 //!									7. Get the channel reliability (return True) and verify that if TChannelReliability (EUnreliableChannel) is as expected (EUnreliableChannel)
       
   221 //!									8. If TChannelReliability is as expected, verify that the assoicated timer (decimal 300) is as expected (decimal 300) 
       
   222 //!
       
   223 //! @SYMTestStatus					Implemented
       
   224 //! @SYMTestPriority				Low
       
   225 //! @SYMTestExpectedResults			True if channel reliability and assoicated timer have been set, otherwise false
       
   226 //! @SYMTestType					CIT
       
   227 
       
   228 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   229 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   230 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   231 			COMMAND		TL2CapConfigData	ChannelReliability		BT-USER-L2CapConfig-PublicApi-0008-0001command2ChannelReliability
       
   232 			COMMAND		TL2CapConfigData	ConfigureReliableChannel		BT-USER-L2CapConfig-PublicApi-0008-0001command3ConfigureReliableChannel
       
   233 			COMMAND		TL2CapConfigData	ChannelReliability		BT-USER-L2CapConfig-PublicApi-0008-0001command4ChannelReliability
       
   234 			COMMAND		TL2CapConfigData	ConfigureUnreliableChannel		BT-USER-L2CapConfig-PublicApi-0008-0001command5ConfigureUnreliableChannel
       
   235 			COMMAND		TL2CapConfigData	ChannelReliability		BT-USER-L2CapConfig-PublicApi-0008-0001command6ChannelReliability
       
   236 	END_TEST_BLOCK
       
   237 
       
   238 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8008
       
   239 
       
   240 
       
   241 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8009
       
   242 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8009
       
   243 //! @SYMAPI							TL2CapConfig
       
   244 //! @SYMTestCaseDesc				Set a new channel priority
       
   245 //!									Uses API elements: TL2CapConfig() and ConfigureChannelPriority()
       
   246 //! @SYMTestActions					1. Create a new empty TL2CapConfig object
       
   247 //!									2. Set a new channel priority (EHigh) and return KErrNone
       
   248 //!									3. Set a new channel priority (EMedium) and return KErrNone
       
   249 //!									4. Set a new channel priority (ELow) and return KErrNone
       
   250 //!
       
   251 //! @SYMTestStatus					Implemented
       
   252 //! @SYMTestPriority				Low
       
   253 //! @SYMTestExpectedResults			Always KErrNone returned
       
   254 //! @SYMTestType					CIT
       
   255 
       
   256 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   257 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   258 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   259 			COMMAND		TL2CapConfigData	ConfigureChannelPriority		BT-USER-L2CapConfig-PublicApi-0009-0001command2ConfigureChannelPriority
       
   260 			COMMAND		TL2CapConfigData	ConfigureChannelPriority		BT-USER-L2CapConfig-PublicApi-0009-0001command3ConfigureChannelPriority
       
   261 			COMMAND		TL2CapConfigData	ConfigureChannelPriority		BT-USER-L2CapConfig-PublicApi-0009-0001command4ConfigureChannelPriority
       
   262 	END_TEST_BLOCK
       
   263 
       
   264 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8009
       
   265 
       
   266 
       
   267 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8010
       
   268 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8010
       
   269 //! @SYMAPI							TL2CapConfig
       
   270 //! @SYMTestCaseDesc				Set and Get channel priority
       
   271 //!									Uses API elements: TL2CapConfig(), ChannelPriority() and ConfigureChannelPriority()
       
   272 //! @SYMTestActions					1. Create a new empty TL2CapConfig object
       
   273 //!									2. Get the channel priority. Verify that if result (False) is as expected (False)
       
   274 //!									3. Set the new channel priority (EHigh) and return KErrNone
       
   275 //!									4. Get the new channel priority
       
   276 //!									5. Verify that True if channel priority has been set with value (EHigh) as expected (EHigh)
       
   277 //!
       
   278 //! @SYMTestStatus					Implemented
       
   279 //! @SYMTestPriority				Low
       
   280 //! @SYMTestExpectedResults			True if channel priority has been set, otherwise fail
       
   281 //! @SYMTestType					CIT
       
   282 
       
   283 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   284 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   285 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   286 			COMMAND		TL2CapConfigData	ChannelPriority		BT-USER-L2CapConfig-PublicApi-0010-0001command2ChannelPriority
       
   287 			COMMAND		TL2CapConfigData	ConfigureChannelPriority		BT-USER-L2CapConfig-PublicApi-0010-0001command3ConfigureChannelPriority
       
   288 			COMMAND		TL2CapConfigData	ChannelPriority		BT-USER-L2CapConfig-PublicApi-0010-0001command4ChannelPriority
       
   289 	END_TEST_BLOCK
       
   290 
       
   291 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8010
       
   292 
       
   293 // ****************************************************************************
       
   294 // Negative test cases
       
   295 // ****************************************************************************
       
   296 
       
   297 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8011
       
   298 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8011
       
   299 //! @SYMAPI							TL2CapConfig
       
   300 //! @SYMTestCaseDesc				Set a new (incoming) max receive unit size
       
   301 //!									Uses API elements: TL2CapConfig() and SetMaxReceiveUnitSize()
       
   302 //! @SYMTestActions					1. Create a new empty TL2CapConfig object
       
   303 //!									2. Set a new (incoming) max receive unit size (decimal 0)
       
   304 //!
       
   305 //! @SYMTestStatus					Implemented
       
   306 //! @SYMTestPriority				Low
       
   307 //! @SYMTestExpectedResults			KErrArgument returned
       
   308 //! @SYMTestType					CIT
       
   309 
       
   310 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   311 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   312 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   313 			COMMAND	!Error=-6	TL2CapConfigData	SetMaxReceiveUnitSize		BT-USER-L2CapConfig-PublicApi-0011-0001command2SetMaxReceiveUnitSize
       
   314 	END_TEST_BLOCK
       
   315 
       
   316 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8011
       
   317 
       
   318 
       
   319 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8012
       
   320 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8012
       
   321 //! @SYMAPI							TL2CapConfig
       
   322 //! @SYMTestCaseDesc				Set a new (outgoing) max transmit unit size
       
   323 //!									Uses API elements: Constructor and SetMaxTransmitUnitSize()
       
   324 //! @SYMTestActions					1. Create an empty TL2CapConfig object
       
   325 //!									2. Set a new (outgoing) max transmit unit size (decimal 0) and return KErrArgument
       
   326 //!
       
   327 //! @SYMTestStatus					Implemented
       
   328 //! @SYMTestPriority				Low
       
   329 //! @SYMTestExpectedResults			KErrArgument returned
       
   330 //! @SYMTestType					CIT
       
   331 
       
   332 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   333 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   334 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   335 			COMMAND	!Error=-6	TL2CapConfigData	SetMaxTransmitUnitSize		BT-USER-L2CapConfig-PublicApi-0012-0001command2SetMaxTransmitUnitSize
       
   336 	END_TEST_BLOCK
       
   337 
       
   338 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8012
       
   339 
       
   340 
       
   341 START_TESTCASE BT-USER-L2CapConfig-PublicApi-8013
       
   342 //! @SYMTestCaseID					BT-USER-L2CapConfig-PublicApi-8013
       
   343 //! @SYMAPI							TL2CapConfig
       
   344 //! @SYMTestCaseDesc				Set an unreliable channel
       
   345 //!									Uses API elements: ConfigureUnreliableChannel()
       
   346 //! @SYMTestActions					1. Create an empty TL2CapConfig object
       
   347 //!									2. Request an unreliable channel and give the time (decimal 1) after which a packet may be dropped or 
       
   348 //!									   "flushed" by the baseband and return KErrArgument
       
   349 //!
       
   350 //! @SYMTestStatus					Implemented
       
   351 //! @SYMTestPriority				Low
       
   352 //! @SYMTestExpectedResults			KErrArgument returned
       
   353 //! @SYMTestType					CIT
       
   354 
       
   355 	START_TEST_BLOCK	10	T_BTUserAPI	\bluetooth\user\BT-USER-L2CapConfig-PublicApi.ini
       
   356 			CREATE_OBJECT	TL2CapConfig	TL2CapConfigData	
       
   357 			COMMAND		TL2CapConfigData	TL2CapConfig	
       
   358 			COMMAND	!Error=-6	TL2CapConfigData	ConfigureUnreliableChannel		BT-USER-L2CapConfig-PublicApi-0013-0001command2ConfigureUnreliableChannel
       
   359 	END_TEST_BLOCK
       
   360 
       
   361 END_TESTCASE BT-USER-L2CapConfig-PublicApi-8013
       
   362 
       
   363 DELAY		2000
       
   364