os/boardsupport/haitest/bspsvs/suite/bsp/mmc/scripts/BASE-BSP-SD-SOCKET-DRIVER.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 LOAD_SUITE	T_mmcsd
    18 
    19 
    20 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0001
    21 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0001
    22 //! @SYMAPI			User::LoadLogicalDevice(const TDesC {ref});
    23 //! @SYMAuthor			James Mechen
    24 //! @SYMCreationDate		11/04/2008
    25 //! @SYMTestCaseDesc		Load Logical Device Driver.
    26 //! @SYMTestActions    		Load D_MMCSDIF LDD Driver
    27 //! @SYMTestStatus		Implemented
    28 //! @SYMTestPriority		high
    29 //! @SYMTestExpectedResults  	KErrNone
    30 //! @SYMTestType		CIT
    31 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
    32 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    33 		COMMAND		mmcsdsession1	NewL
    34 		COMMAND		mmcsdsession1	LoadDriver		BASE-BSP-SD-SOCKET-DRIVER-0001-001-LoadDriver_command02
    35 		COMMAND		mmcsdsession1	~
    36 	END_TEST_BLOCK
    37 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0001
    38 
    39 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0002
    40 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0002
    41 //! @SYMAPI			DMMCSocket::Reset1();
    42 //! @SYMAuthor			James Mechen
    43 //! @SYMCreationDate		11/04/2008
    44 //! @SYMTestCaseDesc		Reset1 Test - Reset the socket by powering down the stack.
    45 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
    46 //!				2. Open the driver connection
    47 //!				3. Reset the socket by powering down the stack
    48 //!				4. Destroy the object
    49 //! @SYMTestStatus		Implemented
    50 //! @SYMTestPriority		high
    51 //! @SYMTestExpectedResults	The socket is reset with no errors.
    52 //! @SYMTestType		CIT
    53 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
    54 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    55 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
    56 		COMMAND		mmcsdsession1	NewL
    57 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0002-001-DriverOpen_command01
    58 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0002-001-NewL_command02
    59 		COMMAND		mmcsdsocket1	Reset1
    60 		COMMAND		mmcsdsession1	Close
    61 		COMMAND		mmcsdsocket1	~
    62 		COMMAND		mmcsdsession1	~
    63 	END_TEST_BLOCK
    64 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0002
    65 
    66 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0003
    67 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0003
    68 //! @SYMAPI			DMMCSocket::Reset2();
    69 //! @SYMAuthor			James Mechen
    70 //! @SYMCreationDate		11/04/2008
    71 //! @SYMTestCaseDesc		Reset2 Test - Reset the socket and free up allocated resources.
    72 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
    73 //!				2. Open the driver connection
    74 //!				3. Reset the socket by powering down the stack
    75 //!				4. Reset the socket and free up allocated resources
    76 //!				5. Destroy the object
    77 //! @SYMTestStatus		Implemented
    78 //! @SYMTestPriority		high
    79 //! @SYMTestExpectedResults	The socket is reset with no errors.
    80 //! @SYMTestType		CIT
    81 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
    82 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    83 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
    84 		COMMAND		mmcsdsession1	NewL
    85 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0003-001-DriverOpen_command01
    86 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0003-001-NewL_command02
    87 		COMMAND		mmcsdsocket1	Reset1
    88 		COMMAND		mmcsdsocket1	Reset2
    89 		COMMAND		mmcsdsession1	Close
    90 		COMMAND		mmcsdsocket1	~
    91 		COMMAND		mmcsdsession1	~
    92 	END_TEST_BLOCK
    93 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0003
    94 
    95 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0004
    96 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0004
    97 //! @SYMAPI			DMMCSocket::Stack(TInt);
    98 //! @SYMAuthor			James Mechen
    99 //! @SYMCreationDate		11/04/2008
   100 //! @SYMTestCaseDesc		Stack Pointer Test - Get a pointer to a DMMCStack object.
   101 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   102 //!				2. Open the driver connection
   103 //!				3. Get a pointer to a DMMCStack object for MMC card number 1
   104 //!				4. Destroy the object
   105 //! @SYMTestStatus		Implemented
   106 //! @SYMTestPriority		high
   107 //! @SYMTestExpectedResults	The stack pointer is returned with no errors.
   108 //! @SYMTestType		CIT
   109 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   110 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   111 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   112 		COMMAND		mmcsdsession1	NewL
   113 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0004-001-DriverOpen_command01
   114 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0004-001-NewL_command02
   115 		COMMAND		mmcsdsocket1	Stack			BASE-BSP-SD-SOCKET-DRIVER-0004-001-Stack_command03
   116 		COMMAND		mmcsdsession1	Close
   117 		COMMAND		mmcsdsocket1	~
   118 		COMMAND		mmcsdsession1	~
   119 	END_TEST_BLOCK
   120 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0004
   121 
   122 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0005
   123 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0005
   124 //! @SYMAPI			DMMCSocket::ResetInactivity(TInt);
   125 //! @SYMAuthor			James Mechen
   126 //! @SYMCreationDate		11/04/2008
   127 //! @SYMTestCaseDesc		Reset inactivity timer Test - Reset socket's PSU inactivity timer.
   128 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   129 //!				2. Open the driver connection
   130 //!				3. Reset socket's PSU inactivity timer
   131 //!				4. Verify the bus inactivity count
   132 //!				5. Destroy the object
   133 //! @SYMTestStatus		Implemented
   134 //! @SYMTestPriority		high
   135 //! @SYMTestExpectedResults	PSU inactivity timer is reset with no errors.
   136 //! @SYMTestType		CIT
   137 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   138 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   139 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   140 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1
   141 		COMMAND		mmcsdsession1	NewL
   142 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0005-001-DriverOpen_command02
   143 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0005-001-NewL_command03
   144 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0005-001-NewL_command03
   145 		COMMAND		mmcsdsocket1	ResetInactivity		BASE-BSP-SD-SOCKET-DRIVER-0005-001-ResetInactivity_command04
   146 		COMMAND		mmcsdpsu1	PsuInfo			BASE-BSP-SD-SOCKET-DRIVER-0005-001-PsuInfo_command05
   147 		COMMAND		mmcsdsession1	Close
   148 		COMMAND		mmcsdpsu1	~
   149 		COMMAND		mmcsdsocket1	~
   150 		COMMAND		mmcsdsession1	~
   151 	END_TEST_BLOCK
   152 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0005
   153 
   154 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0006
   155 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0006
   156 //! @SYMAPI			DMMCSocket::MachineInfo();
   157 //! @SYMAuthor			James Mechen
   158 //! @SYMCreationDate		11/04/2008
   159 //! @SYMTestCaseDesc		MachineInfo Test - Get the MachineInfo from the PSL.
   160 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   161 //!				2. Open the driver connection
   162 //!				3. Get the MachineInfo from the PSL
   163 //!				4. Destroy the object
   164 //! @SYMTestStatus		Implemented
   165 //! @SYMTestPriority		high
   166 //! @SYMTestExpectedResults	MachineInfo is retrieved and contains the correct values.
   167 //! @SYMTestType		CIT
   168 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   169 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   170 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   171 		COMMAND		mmcsdsession1	NewL
   172 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0006-001-DriverOpen_command01
   173 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0006-001-NewL_command02
   174 		COMMAND		mmcsdsocket1	MachineInfo		BASE-BSP-SD-SOCKET-DRIVER-0006-001-MachineInfo_command03
   175 		COMMAND		mmcsdsession1	Close
   176 		COMMAND		mmcsdsocket1	~
   177 		COMMAND		mmcsdsession1	~
   178 	END_TEST_BLOCK
   179 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0006
   180 
   181 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0007
   182 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0007
   183 //! @SYMAPI			DMMCSocket::AdjustPartialRead(const TMMCard{ptr}, TUint32, TUint32, TUint32{ptr}, TUint32{ptr});
   184 //! @SYMAuthor			James Mechen
   185 //! @SYMCreationDate		11/04/2008
   186 //! @SYMTestCaseDesc		Adjust Partial Read Test - Calculate minimum range that must be read off card.
   187 //! @SYMTestActions    		1. Create RMMCSDTestControllerInterface Handle object.
   188 //!				2. Open the driver connection
   189 //!				3. Get pointer to card
   190 //!				4. Calculate minimum range that must be read off card
   191 //!				5. Destroy the objects
   192 //! @SYMTestStatus		Implemented
   193 //! @SYMTestPriority		high
   194 //! @SYMTestExpectedResults	Minimum range that must be read off card is correctly returned.
   195 //! @SYMTestType		CIT
   196 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   197 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   198 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   199 		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   200 		COMMAND		mmcsdsession1	NewL
   201 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0007-001-DriverOpen_command02
   202 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0007-001-NewL_command03
   203 		COMMAND		mmcsdstack1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0007-001-NewL_command03
   204 		COMMAND		mmcsdstack1	CardP			BASE-BSP-SD-SOCKET-DRIVER-0007-001-CardP_command04
   205 		COMMAND		mmcsdsocket1	AdjustPartialRead	BASE-BSP-SD-SOCKET-DRIVER-0007-001-AdjustPartialRead_command05
   206 		COMMAND		mmcsdsession1	Close
   207 		COMMAND		mmcsdstack1	~
   208 		COMMAND		mmcsdsocket1	~
   209 		COMMAND		mmcsdsession1	~
   210 	END_TEST_BLOCK
   211 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0007
   212 
   213 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0008
   214 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0008
   215 //! @SYMAPI			DMMCSocket::GetBufferInfo(TUint8{ptr}{ptr}, TInt{ptr});
   216 //! @SYMAuthor			James Mechen
   217 //! @SYMCreationDate		11/04/2008
   218 //! @SYMTestCaseDesc		Get Buffer Info Test - Get details of the buffer allocated by socket for data transfer operations.
   219 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   220 //!				2. Open the driver connection
   221 //!				3. Get details of the buffer allocated by socket for data transfer operations
   222 //!				4. Destroy the object
   223 //! @SYMTestStatus		Implemented
   224 //! @SYMTestPriority		high
   225 //! @SYMTestExpectedResults	Correct buffer details are returned with no errors.
   226 //! @SYMTestType		CIT
   227 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   228 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   229 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   230 		COMMAND		mmcsdsession1	NewL
   231 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0008-001-DriverOpen_command01
   232 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0008-001-NewL_command02
   233 		COMMAND		mmcsdsocket1	GetBufferInfo		BASE-BSP-SD-SOCKET-DRIVER-0008-001-GetBufferInfo_command03
   234 		COMMAND		mmcsdsession1	Close
   235 		COMMAND		mmcsdsocket1	~
   236 		COMMAND		mmcsdsession1	~
   237 	END_TEST_BLOCK
   238 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0008
   239 
   240 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0009
   241 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0009
   242 //! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   243 //! @SYMAuthor			James Mechen
   244 //! @SYMCreationDate		11/04/2008
   245 //! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated.
   246 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   247 //!				2. Open the driver connection
   248 //!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordClear
   249 //!				4. Destroy the object
   250 //! @SYMTestStatus		Implemented
   251 //! @SYMTestPriority		high
   252 //! @SYMTestExpectedResults	Store is prepared with no errors.
   253 //! @SYMTestType		CIT
   254 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   255 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   256 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   257 		COMMAND		mmcsdsession1	NewL
   258 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0009-001-DriverOpen_command01
   259 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0006-001-NewL_command02
   260 		COMMAND		mmcsdsocket1	PrepareStore		BASE-BSP-SD-SOCKET-DRIVER-0009-001-PrepareStore_command03
   261 		COMMAND		mmcsdsession1	Close
   262 		COMMAND		mmcsdsocket1	~
   263 		COMMAND		mmcsdsession1	~
   264 	END_TEST_BLOCK
   265 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0009
   266 
   267 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0010
   268 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0010
   269 //! @SYMAPI			DMMCSocket::Init();
   270 //! @SYMAuthor			James Mechen
   271 //! @SYMCreationDate		15/05/2008
   272 //! @SYMTestCaseDesc		Initialise Test - Allocate resources and initialise the MMC socket and associated stack object.
   273 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   274 //!				2. Open the driver connection
   275 //!				3. Allocate resources and initialise the MMC socket and associated stack object
   276 //!				4. Destroy the object
   277 //! @SYMTestStatus		Implemented
   278 //! @SYMTestPriority		high
   279 //! @SYMTestExpectedResults	MMC socket initialised with no error.
   280 //! @SYMTestType		CIT
   281 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   282 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   283 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   284 		COMMAND		mmcsdsession1	NewL
   285 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0010-001-DriverOpen_command01
   286 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0010-001-NewL_command02
   287 		COMMAND		mmcsdsocket1	Init
   288 		COMMAND		mmcsdsession1	Close
   289 		COMMAND		mmcsdsocket1	~
   290 		COMMAND		mmcsdsession1	~
   291 	END_TEST_BLOCK
   292 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0010
   293 
   294 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0011
   295 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0011
   296 //! @SYMAPI			DMMCSocket::Init();
   297 //! @SYMAuthor			James Mechen
   298 //! @SYMCreationDate		15/05/2008
   299 //! @SYMTestCaseDesc		Initialise Test - Allocate resources and initialise the MMC socket and associated stack object.
   300 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   301 //!				2. Open the driver connection
   302 //!				3. Allocate resources and initialise the MMC socket and associated stack object
   303 //!				4. Destroy the object
   304 //! @SYMTestStatus		Implemented
   305 //! @SYMTestPriority		high
   306 //! @SYMTestExpectedResults	MMC socket initialised with error KErrAlreadyExists.
   307 //! @SYMTestType		CIT
   308 	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   309 		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   310 		CREATE_OBJECT		MMCSDSocket	mmcsdsocket1
   311 		COMMAND			mmcsdsession1	NewL
   312 		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0011-001-DriverOpen_command01
   313 		COMMAND			mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0011-001-NewL_command02
   314 		COMMAND	!Error=-11	mmcsdsocket1	Init
   315 		COMMAND			mmcsdsession1	Close
   316 		COMMAND			mmcsdsocket1	~
   317 		COMMAND			mmcsdsession1	~
   318 	END_TEST_BLOCK
   319 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0011
   320 
   321 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0012
   322 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0012
   323 //! @SYMAPI			DMMCSocket::Init();
   324 //! @SYMAuthor			James Mechen
   325 //! @SYMCreationDate		15/05/2008
   326 //! @SYMTestCaseDesc		Initialise Test - Allocate resources and initialise the MMC socket and associated stack object.
   327 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   328 //!				2. Open the driver connection
   329 //!				3. Allocate resources and initialise the MMC socket and associated stack object
   330 //!				4. Destroy the object
   331 //! @SYMTestStatus		Implemented
   332 //! @SYMTestPriority		high
   333 //! @SYMTestExpectedResults	MMC socket initialised with error KErrInUse.
   334 //! @SYMTestType		CIT
   335 	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   336 		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   337 		CREATE_OBJECT		MMCSDSocket	mmcsdsocket1
   338 		COMMAND			mmcsdsession1	NewL
   339 		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0011-001-DriverOpen_command01
   340 		COMMAND			mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0011-001-NewL_command02
   341 		COMMAND	!Error=-14	mmcsdsocket1	Init
   342 		COMMAND			mmcsdsession1	Close
   343 		COMMAND			mmcsdsocket1	~
   344 		COMMAND			mmcsdsession1	~
   345 	END_TEST_BLOCK
   346 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0012
   347 
   348 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0013
   349 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0013
   350 //! @SYMAPI			DMMCSocket::InitiatePowerUpSequence();
   351 //! @SYMAuthor			James Mechen
   352 //! @SYMCreationDate		15/05/2008
   353 //! @SYMTestCaseDesc		Initiate Power Up Sequence Test - Initiate power up sequence on the stack.
   354 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   355 //!				2. Open the driver connection
   356 //!				3. Initiate power up sequence on the stack
   357 //!				4. Destroy the object
   358 //! @SYMTestStatus		Implemented
   359 //! @SYMTestPriority		high
   360 //! @SYMTestExpectedResults	Power up sequence initiated with no errors.
   361 //! @SYMTestType		CIT
   362 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   363 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   364 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   365 		COMMAND		mmcsdsession1	NewL
   366 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0013-001-DriverOpen_command01
   367 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0013-001-NewL_command02
   368 		COMMAND		mmcsdsocket1	InitiatePowerUpSequence
   369 		COMMAND		mmcsdsession1	Close
   370 		COMMAND		mmcsdsocket1	~
   371 		COMMAND		mmcsdsession1	~
   372 	END_TEST_BLOCK
   373 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0013
   374 
   375 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0014
   376 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0014
   377 //! @SYMAPI			DMMCSocket::Reset2();
   378 //! @SYMAuthor			James Mechen
   379 //! @SYMCreationDate		25/06/2008
   380 //! @SYMTestCaseDesc		Reset2 Test - Reset the socket and free up allocated resources, without powering down the stack first.
   381 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   382 //!				2. Open the driver connection
   383 //!				3. Reset the socket and free up allocated resources
   384 //!				4. Destroy the object
   385 //! @SYMTestStatus		Implemented
   386 //! @SYMTestPriority		high
   387 //! @SYMTestExpectedResults	The socket is reset with no errors.
   388 //! @SYMTestType		CIT
   389 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   390 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   391 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   392 		COMMAND		mmcsdsession1	NewL
   393 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0014-001-DriverOpen_command01
   394 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0014-001-NewL_command02
   395 		COMMAND		mmcsdsocket1	Reset2
   396 		COMMAND		mmcsdsession1	Close
   397 		COMMAND		mmcsdsocket1	~
   398 		COMMAND		mmcsdsession1	~
   399 	END_TEST_BLOCK
   400 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0014
   401 
   402 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0015
   403 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0015
   404 //! @SYMAPI			DMMCSocket::Stack(TInt);
   405 //! @SYMAuthor			James Mechen
   406 //! @SYMCreationDate		25/06/2008
   407 //! @SYMTestCaseDesc		Stack Pointer Test - Get a pointer to a DMMCStack object, for invalid bus number.
   408 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   409 //!				2. Open the driver connection
   410 //!				3. Get a pointer to a DMMCStack object for MMC card number -1
   411 //!				4. Destroy the object
   412 //! @SYMTestStatus		Implemented
   413 //! @SYMTestPriority		high
   414 //! @SYMTestExpectedResults	The stack pointer is correctly returned.
   415 //! @SYMTestType		CIT
   416 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   417 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   418 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   419 		COMMAND		mmcsdsession1	NewL
   420 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0015-001-DriverOpen_command01
   421 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0015-001-NewL_command02
   422 		COMMAND		mmcsdsocket1	Stack			BASE-BSP-SD-SOCKET-DRIVER-0015-001-Stack_command03
   423 		COMMAND		mmcsdsession1	Close
   424 		COMMAND		mmcsdsocket1	~
   425 		COMMAND		mmcsdsession1	~
   426 	END_TEST_BLOCK
   427 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0015
   428 
   429 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0016
   430 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0016
   431 //! @SYMAPI			DMMCSocket::Stack(TInt);
   432 //! @SYMAuthor			James Mechen
   433 //! @SYMCreationDate		25/06/2008
   434 //! @SYMTestCaseDesc		Stack Pointer Test - Get a pointer to a DMMCStack object, for invalid bus number.
   435 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   436 //!				2. Open the driver connection
   437 //!				3. Get a pointer to a DMMCStack object for MMC card number 5
   438 //!				4. Destroy the object
   439 //! @SYMTestStatus		Implemented
   440 //! @SYMTestPriority		high
   441 //! @SYMTestExpectedResults	The stack pointer is returned as NULL.
   442 //! @SYMTestType		CIT
   443 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   444 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   445 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   446 		COMMAND		mmcsdsession1	NewL
   447 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0016-001-DriverOpen_command01
   448 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0010-001-NewL_command02
   449 		COMMAND		mmcsdsocket1	Stack			BASE-BSP-SD-SOCKET-DRIVER-0016-001-Stack_command03
   450 		COMMAND		mmcsdsession1	Close
   451 		COMMAND		mmcsdsocket1	~
   452 		COMMAND		mmcsdsession1	~
   453 	END_TEST_BLOCK
   454 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0016
   455 
   456 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0017
   457 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0017
   458 //! @SYMAPI			DMMCSocket::ResetInactivity(TInt);
   459 //! @SYMAuthor			James Mechen
   460 //! @SYMCreationDate		26/06/2008
   461 //! @SYMTestCaseDesc		Reset inactivity timer Test - Reset socket's PSU inactivity timer, for invalid bus number.
   462 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   463 //!				2. Open the driver connection
   464 //!				3. Reset socket's PSU inactivity timer for MMC card number -1
   465 //!				4. Verify the bus inactivity count
   466 //!				5. Destroy the object
   467 //! @SYMTestStatus		Implemented
   468 //! @SYMTestPriority		high
   469 //! @SYMTestExpectedResults	PSU inactivity timer is reset with no errors.
   470 //! @SYMTestType		CIT
   471 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   472 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   473 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   474 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1
   475 		COMMAND		mmcsdsession1	NewL
   476 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0017-001-DriverOpen_command02
   477 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0017-001-NewL_command03
   478 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0017-001-NewL_command03
   479 		COMMAND		mmcsdsocket1	ResetInactivity		BASE-BSP-SD-SOCKET-DRIVER-0017-001-ResetInactivity_command04
   480 		COMMAND		mmcsdpsu1	PsuInfo			BASE-BSP-SD-SOCKET-DRIVER-0017-001-PsuInfo_command05
   481 		COMMAND		mmcsdsession1	Close
   482 		COMMAND		mmcsdpsu1	~
   483 		COMMAND		mmcsdsocket1	~
   484 		COMMAND		mmcsdsession1	~
   485 	END_TEST_BLOCK
   486 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0017
   487 
   488 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0018
   489 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0018
   490 //! @SYMAPI			DMMCSocket::ResetInactivity(TInt);
   491 //! @SYMAuthor			James Mechen
   492 //! @SYMCreationDate		26/06/2008
   493 //! @SYMTestCaseDesc		Reset inactivity timer Test - Reset socket's PSU inactivity timer, for invalid bus number.
   494 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   495 //!				2. Open the driver connection
   496 //!				3. Reset socket's PSU inactivity timer for MMC card number 5
   497 //!				4. Verify the bus inactivity count
   498 //!				5. Destroy the object
   499 //! @SYMTestStatus		Implemented
   500 //! @SYMTestPriority		high
   501 //! @SYMTestExpectedResults	PSU inactivity timer is reset with no errors.
   502 //! @SYMTestType		CIT
   503 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   504 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   505 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   506 		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1
   507 		COMMAND		mmcsdsession1	NewL
   508 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0018-001-DriverOpen_command02
   509 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0018-001-NewL_command03
   510 		COMMAND		mmcsdpsu1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0018-001-NewL_command03
   511 		COMMAND		mmcsdsocket1	ResetInactivity		BASE-BSP-SD-SOCKET-DRIVER-0018-001-ResetInactivity_command04
   512 		COMMAND		mmcsdpsu1	PsuInfo			BASE-BSP-SD-SOCKET-DRIVER-0018-001-PsuInfo_command05
   513 		COMMAND		mmcsdsession1	Close
   514 		COMMAND		mmcsdpsu1	~
   515 		COMMAND		mmcsdsocket1	~
   516 		COMMAND		mmcsdsession1	~
   517 	END_TEST_BLOCK
   518 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0018
   519 
   520 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0019
   521 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0019
   522 //! @SYMAPI			DMMCSocket::AdjustPartialRead(const TMMCard{ptr}, TUint32, TUint32, TUint32{ptr}, TUint32{ptr});
   523 //! @SYMAuthor			James Mechen
   524 //! @SYMCreationDate		26/06/2008
   525 //! @SYMTestCaseDesc		Adjust Partial Read Test - Calculate minimum range that must be read off card, using invalid inputs.
   526 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   527 //!				2. Open the driver connection
   528 //!				3. Get pointer to card
   529 //!				4. Calculate minimum range that must be read off card, where aStart=0xFFFFFFFE and aEnd=0xFFFFFFFF
   530 //!				5. Destroy the objects
   531 //! @SYMTestStatus		Implemented
   532 //! @SYMTestPriority		high
   533 //! @SYMTestExpectedResults	Minimum range that must be read off card is correctly returned.
   534 //! @SYMTestType		CIT
   535 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   536 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   537 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   538 		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   539 		COMMAND		mmcsdsession1	NewL
   540 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0019-001-DriverOpen_command02
   541 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0019-001-NewL_command03
   542 		COMMAND		mmcsdstack1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0019-001-NewL_command03
   543 		COMMAND		mmcsdstack1	CardP			BASE-BSP-SD-SOCKET-DRIVER-0019-001-CardP_command04
   544 		COMMAND		mmcsdsocket1	AdjustPartialRead	BASE-BSP-SD-SOCKET-DRIVER-0019-001-AdjustPartialRead_command05
   545 		COMMAND		mmcsdsession1	Close
   546 		COMMAND		mmcsdstack1	~
   547 		COMMAND		mmcsdsocket1	~
   548 		COMMAND		mmcsdsession1	~
   549 	END_TEST_BLOCK
   550 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0019
   551 
   552 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0020
   553 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0020
   554 //! @SYMAPI			DMMCSocket::AdjustPartialRead(const TMMCard{ptr}, TUint32, TUint32, TUint32{ptr}, TUint32{ptr});
   555 //! @SYMAuthor			James Mechen
   556 //! @SYMCreationDate		26/06/2008
   557 //! @SYMTestCaseDesc		Adjust Partial Read Test - Calculate minimum range that must be read off card, using invalid inputs.
   558 //! @SYMTestActions    		1. Create RMMCSDTestControllerInterface Handle object.
   559 //!				2. Open the driver connection
   560 //!				3. Get pointer to card
   561 //!				4. Calculate minimum range that must be read off card, where aStart=0 and aEnd=0xFFFFFFFF
   562 //!				5. Destroy the objects
   563 //! @SYMTestStatus		Implemented
   564 //! @SYMTestPriority		high
   565 //! @SYMTestExpectedResults	Minimum range that must be read off card is correctly returned.
   566 //! @SYMTestType		CIT
   567 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   568 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   569 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   570 		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   571 		COMMAND		mmcsdsession1	NewL
   572 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0020-001-DriverOpen_command02
   573 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0020-001-NewL_command03
   574 		COMMAND		mmcsdstack1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0020-001-NewL_command03
   575 		COMMAND		mmcsdstack1	CardP			BASE-BSP-SD-SOCKET-DRIVER-0020-001-CardP_command04
   576 		COMMAND		mmcsdsocket1	AdjustPartialRead	BASE-BSP-SD-SOCKET-DRIVER-0020-001-AdjustPartialRead_command05
   577 		COMMAND		mmcsdsession1	Close
   578 		COMMAND		mmcsdstack1	~
   579 		COMMAND		mmcsdsocket1	~
   580 		COMMAND		mmcsdsession1	~
   581 	END_TEST_BLOCK
   582 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0020
   583 
   584 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0021
   585 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0021
   586 //! @SYMAPI			DMMCSocket::AdjustPartialRead(const TMMCard{ptr}, TUint32, TUint32, TUint32{ptr}, TUint32{ptr});
   587 //! @SYMAuthor			James Mechen
   588 //! @SYMCreationDate		26/06/2008
   589 //! @SYMTestCaseDesc		Adjust Partial Read Test - Calculate minimum range that must be read off card, using invalid inputs.
   590 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   591 //!				2. Open the driver connection
   592 //!				3. Get pointer to card
   593 //!				4. Calculate minimum range that must be read off card, where aStart=aEnd
   594 //!				5. Destroy the objects
   595 //! @SYMTestStatus		Implemented
   596 //! @SYMTestPriority		high
   597 //! @SYMTestExpectedResults	Minimum range that must be read off card is correctly returned.
   598 //! @SYMTestType		CIT
   599 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   600 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   601 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   602 		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   603 		COMMAND		mmcsdsession1	NewL
   604 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0021-001-DriverOpen_command02
   605 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0021-001-NewL_command03
   606 		COMMAND		mmcsdstack1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0021-001-NewL_command03
   607 		COMMAND		mmcsdstack1	CardP			BASE-BSP-SD-SOCKET-DRIVER-0021-001-CardP_command04
   608 		COMMAND		mmcsdsocket1	AdjustPartialRead	BASE-BSP-SD-SOCKET-DRIVER-0021-001-AdjustPartialRead_command05
   609 		COMMAND		mmcsdsession1	Close
   610 		COMMAND		mmcsdstack1	~
   611 		COMMAND		mmcsdsocket1	~
   612 		COMMAND		mmcsdsession1	~
   613 	END_TEST_BLOCK
   614 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0021
   615 
   616 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0022
   617 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0022
   618 //! @SYMAPI			DMMCSocket::AdjustPartialRead(const TMMCard{ptr}, TUint32, TUint32, TUint32{ptr}, TUint32{ptr});
   619 //! @SYMAuthor			James Mechen
   620 //! @SYMCreationDate		26/06/2008
   621 //! @SYMTestCaseDesc		Adjust Partial Read Test - Calculate minimum range that must be read off card, using invalid inputs.
   622 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   623 //!				2. Open the driver connection
   624 //!				3. Get pointer to card
   625 //!				4. Calculate minimum range that must be read off card, where aStart>aEnd
   626 //!				5. Destroy the objects
   627 //! @SYMTestStatus		Implemented
   628 //! @SYMTestPriority		high
   629 //! @SYMTestExpectedResults	Minimum range that must be read off card is correctly returned.
   630 //! @SYMTestType		CIT
   631 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   632 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   633 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   634 		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   635 		COMMAND		mmcsdsession1	NewL
   636 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0022-001-DriverOpen_command02
   637 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0022-001-NewL_command03
   638 		COMMAND		mmcsdstack1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0022-001-NewL_command03
   639 		COMMAND		mmcsdstack1	CardP			BASE-BSP-SD-SOCKET-DRIVER-0022-001-CardP_command04
   640 		COMMAND		mmcsdsocket1	AdjustPartialRead	BASE-BSP-SD-SOCKET-DRIVER-0022-001-AdjustPartialRead_command05
   641 		COMMAND		mmcsdsession1	Close
   642 		COMMAND		mmcsdstack1	~
   643 		COMMAND		mmcsdsocket1	~
   644 		COMMAND		mmcsdsession1	~
   645 	END_TEST_BLOCK
   646 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0022
   647 
   648 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0023
   649 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0023
   650 //! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   651 //! @SYMAuthor			James Mechen
   652 //! @SYMCreationDate		27/06/2008
   653 //! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated.
   654 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   655 //!				2. Open the driver connection
   656 //!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordLock
   657 //!				4. Destroy the object
   658 //! @SYMTestStatus		Implemented
   659 //! @SYMTestPriority		high
   660 //! @SYMTestExpectedResults	Store is prepared with no errors.
   661 //! @SYMTestType		CIT
   662 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   663 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   664 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   665 		COMMAND		mmcsdsession1	NewL
   666 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0023-001-DriverOpen_command01
   667 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0023-001-NewL_command02
   668 		COMMAND		mmcsdsocket1	PrepareStore		BASE-BSP-SD-SOCKET-DRIVER-0023-001-PrepareStore_command03
   669 		COMMAND		mmcsdsession1	Close
   670 		COMMAND		mmcsdsocket1	~
   671 		COMMAND		mmcsdsession1	~
   672 	END_TEST_BLOCK
   673 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0023
   674 
   675 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0024
   676 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0024
   677 //! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   678 //! @SYMAuthor			James Mechen
   679 //! @SYMCreationDate		27/06/2008
   680 //! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated.
   681 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   682 //!				2. Open the driver connection
   683 //!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordUnlock
   684 //!				4. Destroy the object
   685 //! @SYMTestStatus		Implemented
   686 //! @SYMTestPriority		high
   687 //! @SYMTestExpectedResults	Store is prepared with no errors.
   688 //! @SYMTestType		CIT
   689 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   690 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   691 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   692 		COMMAND		mmcsdsession1	NewL
   693 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0024-001-DriverOpen_command01
   694 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0024-001-NewL_command02
   695 		COMMAND		mmcsdsocket1	PrepareStore		BASE-BSP-SD-SOCKET-DRIVER-0024-001-PrepareStore_command03
   696 		COMMAND		mmcsdsession1	Close
   697 		COMMAND		mmcsdsocket1	~
   698 		COMMAND		mmcsdsession1	~
   699 	END_TEST_BLOCK
   700 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0024
   701 
   702 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0025
   703 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0025
   704 //! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   705 //! @SYMAuthor			James Mechen
   706 //! @SYMCreationDate		02/07/2008
   707 //! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated, using NULL password.
   708 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   709 //!				2. Open the driver connection
   710 //!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordLock and NULL password
   711 //!				4. Destroy the object
   712 //! @SYMTestStatus		Implemented
   713 //! @SYMTestPriority		high
   714 //! @SYMTestExpectedResults	Store is prepared with error KErrAccessDenied.
   715 //! @SYMTestType		CIT
   716 	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   717 		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   718 		CREATE_OBJECT		MMCSDSocket	mmcsdsocket1
   719 		COMMAND			mmcsdsession1	NewL
   720 		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0025-001-DriverOpen_command01
   721 		COMMAND			mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0025-001-NewL_command02
   722 		COMMAND	!Error=-21	mmcsdsocket1	PrepareStore		BASE-BSP-SD-SOCKET-DRIVER-0025-001-PrepareStore_command03
   723 		COMMAND			mmcsdsession1	Close
   724 		COMMAND			mmcsdsocket1	~
   725 		COMMAND			mmcsdsession1	~
   726 	END_TEST_BLOCK
   727 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0025
   728 
   729 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0026
   730 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0026
   731 //! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   732 //! @SYMAuthor			James Mechen
   733 //! @SYMCreationDate		02/07/2008
   734 //! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated, using NULL password.
   735 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   736 //!				2. Open the driver connection
   737 //!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordClear and NULL password
   738 //!				4. Destroy the object
   739 //! @SYMTestStatus		Implemented
   740 //! @SYMTestPriority		high
   741 //! @SYMTestExpectedResults	Store is prepared with error KErrAccessDenied.
   742 //! @SYMTestType		CIT
   743 	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   744 		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   745 		CREATE_OBJECT		MMCSDSocket	mmcsdsocket1
   746 		COMMAND			mmcsdsession1	NewL
   747 		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0026-001-DriverOpen_command01
   748 		COMMAND			mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0026-001-NewL_command02
   749 		COMMAND	!Error=-21	mmcsdsocket1	PrepareStore		BASE-BSP-SD-SOCKET-DRIVER-0026-001-PrepareStore_command03
   750 		COMMAND			mmcsdsession1	Close
   751 		COMMAND			mmcsdsocket1	~
   752 		COMMAND			mmcsdsession1	~
   753 	END_TEST_BLOCK
   754 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0026
   755 
   756 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0027
   757 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0027
   758 //! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   759 //! @SYMAuthor			James Mechen
   760 //! @SYMCreationDate		02/07/2008
   761 //! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated, using NULL password.
   762 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   763 //!				2. Open the driver connection
   764 //!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordUnlock and NULL password
   765 //!				4. Destroy the object
   766 //! @SYMTestStatus		Implemented
   767 //! @SYMTestPriority		high
   768 //! @SYMTestExpectedResults	Store is prepared with error KErrLocked.
   769 //! @SYMTestType		CIT
   770 	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   771 		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   772 		CREATE_OBJECT		MMCSDSocket	mmcsdsocket1
   773 		COMMAND			mmcsdsession1	NewL
   774 		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0027-001-DriverOpen_command01
   775 		COMMAND			mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0027-001-NewL_command02
   776 		COMMAND	!Error=-22	mmcsdsocket1	PrepareStore		BASE-BSP-SD-SOCKET-DRIVER-0027-001-PrepareStore_command03
   777 		COMMAND			mmcsdsession1	Close
   778 		COMMAND			mmcsdsocket1	~
   779 		COMMAND			mmcsdsession1	~
   780 	END_TEST_BLOCK
   781 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0027
   782 
   783 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0028
   784 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0028
   785 //! @SYMAPI			DMMCSocket::iStandby();
   786 //! @SYMAuthor			Saravanakumar
   787 //! @SYMCreationDate		06/05/2008
   788 //! @SYMTestCaseDesc		Checks the Device Standby State
   789 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   790 //!				2. Open the driver connection
   791 //!				3. Check the Device is in Standby mode
   792 //!				4. Destroy the object
   793 //! @SYMTestStatus		Implemented
   794 //! @SYMTestPriority		high
   795 //! @SYMTestExpectedResults	Standby mode EFalse
   796 //! @SYMTestType		CIT
   797 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   798 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   799 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   800 		COMMAND		mmcsdsession1	NewL
   801 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0028-001-DriverOpen_command01
   802 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0028-001-NewL_command02
   803 		COMMAND		mmcsdsocket1	iStandby_Get		BASE-BSP-SD-SOCKET-DRIVER-0028-001-iStandby_Get_command03
   804 		COMMAND		mmcsdsession1	Close
   805 		COMMAND		mmcsdsocket1	~
   806 		COMMAND		mmcsdsession1	~
   807 	END_TEST_BLOCK
   808 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0028
   809 
   810 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0029
   811 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0029
   812 //! @SYMAPI			DMMCSocket::iType();
   813 //! @SYMAuthor			Saravanakumar
   814 //! @SYMCreationDate		06/05/2008
   815 //! @SYMTestCaseDesc		Checks the card bus type
   816 //! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   817 //!				2. Open the driver connection
   818 //!				3. Read the Bus type
   819 //!				4. Destroy the object
   820 //! @SYMTestStatus		Implemented
   821 //! @SYMTestPriority		high
   822 //! @SYMTestExpectedResults	Bus type EPBusTypeNone
   823 //! @SYMTestType		CIT
   824 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   825 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   826 		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   827 		COMMAND		mmcsdsession1	NewL
   828 		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-SD-SOCKET-DRIVER-0029-001-DriverOpen_command01
   829 		COMMAND		mmcsdsocket1	NewL			BASE-BSP-SD-SOCKET-DRIVER-0029-001-NewL_command02
   830 		COMMAND		mmcsdsocket1	iType_Get		BASE-BSP-SD-SOCKET-DRIVER-0029-001-iType_Get_command03
   831 		COMMAND		mmcsdsession1	Close
   832 		COMMAND		mmcsdsocket1	~
   833 		COMMAND		mmcsdsession1	~
   834 	END_TEST_BLOCK
   835 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0029
   836 
   837 START_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0030
   838 //! @SYMTestCaseID		BASE-BSP-SD-SOCKET-DRIVER-0030
   839 //! @SYMAPI			FreeLogicalDevice(const TDesC {ref});
   840 //! @SYMAuthor			James Mechen
   841 //! @SYMCreationDate		11/04/2008
   842 //! @SYMTestCaseDesc		Free the Logical Device Driver
   843 //! @SYMTestActions		Free the D_MMCSDIF LDD Driver
   844 //! @SYMTestStatus		Implemented
   845 //! @SYMTestPriority		high
   846 //! @SYMTestExpectedResults	Displayed Power supply information.
   847 //! @SYMTestType		CIT
   848 	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-SD-SOCKET-DRIVER.ini
   849 		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   850 		COMMAND		mmcsdsession1	NewL
   851 		COMMAND		mmcsdsession1	UnLoadDriver		BASE-BSP-SD-SOCKET-DRIVER-0030-001-UnLoadDriver_command02
   852 		COMMAND		mmcsdsession1	~
   853 	END_TEST_BLOCK
   854 END_TESTCASE			BASE-BSP-SD-SOCKET-DRIVER-0030