os/boardsupport/haitest/bspsvs/suite/bsp/mmc/scripts/BASE-BSP-MMC-SOCKET-DRIVER.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/boardsupport/haitest/bspsvs/suite/bsp/mmc/scripts/BASE-BSP-MMC-SOCKET-DRIVER.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,854 @@
     1.4 +//
     1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of "Eclipse Public License v1.0"
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +LOAD_SUITE	T_mmcsd
    1.21 +
    1.22 +
    1.23 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0001
    1.24 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0001
    1.25 +//! @SYMAPI			User::LoadLogicalDevice(const TDesC {ref});
    1.26 +//! @SYMAuthor			James Mechen
    1.27 +//! @SYMCreationDate		11/04/2008
    1.28 +//! @SYMTestCaseDesc		Load Logical Device Driver.
    1.29 +//! @SYMTestActions    		Load D_MMCSDIF LDD Driver
    1.30 +//! @SYMTestStatus		Implemented
    1.31 +//! @SYMTestPriority		high
    1.32 +//! @SYMTestExpectedResults  	KErrNone
    1.33 +//! @SYMTestType		CIT
    1.34 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
    1.35 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    1.36 +		COMMAND		mmcsdsession1	NewL
    1.37 +		COMMAND		mmcsdsession1	LoadDriver		BASE-BSP-MMC-SOCKET-DRIVER-0001-001-LoadDriver_command02
    1.38 +		COMMAND		mmcsdsession1	~
    1.39 +	END_TEST_BLOCK
    1.40 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0001
    1.41 +
    1.42 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0002
    1.43 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0002
    1.44 +//! @SYMAPI			DMMCSocket::Reset1();
    1.45 +//! @SYMAuthor			James Mechen
    1.46 +//! @SYMCreationDate		11/04/2008
    1.47 +//! @SYMTestCaseDesc		Reset1 Test - Reset the socket by powering down the stack.
    1.48 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
    1.49 +//!				2. Open the driver connection
    1.50 +//!				3. Reset the socket by powering down the stack
    1.51 +//!				4. Destroy the object
    1.52 +//! @SYMTestStatus		Implemented
    1.53 +//! @SYMTestPriority		high
    1.54 +//! @SYMTestExpectedResults	The socket is reset with no errors.
    1.55 +//! @SYMTestType		CIT
    1.56 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
    1.57 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    1.58 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
    1.59 +		COMMAND		mmcsdsession1	NewL
    1.60 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0002-001-DriverOpen_command01
    1.61 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0002-001-NewL_command02
    1.62 +		COMMAND		mmcsdsocket1	Reset1
    1.63 +		COMMAND		mmcsdsession1	Close
    1.64 +		COMMAND		mmcsdsocket1	~
    1.65 +		COMMAND		mmcsdsession1	~
    1.66 +	END_TEST_BLOCK
    1.67 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0002
    1.68 +
    1.69 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0003
    1.70 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0003
    1.71 +//! @SYMAPI			DMMCSocket::Reset2();
    1.72 +//! @SYMAuthor			James Mechen
    1.73 +//! @SYMCreationDate		11/04/2008
    1.74 +//! @SYMTestCaseDesc		Reset2 Test - Reset the socket and free up allocated resources.
    1.75 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
    1.76 +//!				2. Open the driver connection
    1.77 +//!				3. Reset the socket by powering down the stack
    1.78 +//!				4. Reset the socket and free up allocated resources
    1.79 +//!				5. Destroy the object
    1.80 +//! @SYMTestStatus		Implemented
    1.81 +//! @SYMTestPriority		high
    1.82 +//! @SYMTestExpectedResults	The socket is reset with no errors.
    1.83 +//! @SYMTestType		CIT
    1.84 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
    1.85 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
    1.86 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
    1.87 +		COMMAND		mmcsdsession1	NewL
    1.88 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0003-001-DriverOpen_command01
    1.89 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0003-001-NewL_command02
    1.90 +		COMMAND		mmcsdsocket1	Reset1
    1.91 +		COMMAND		mmcsdsocket1	Reset2
    1.92 +		COMMAND		mmcsdsession1	Close
    1.93 +		COMMAND		mmcsdsocket1	~
    1.94 +		COMMAND		mmcsdsession1	~
    1.95 +	END_TEST_BLOCK
    1.96 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0003
    1.97 +
    1.98 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0004
    1.99 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0004
   1.100 +//! @SYMAPI			DMMCSocket::Stack(TInt);
   1.101 +//! @SYMAuthor			James Mechen
   1.102 +//! @SYMCreationDate		11/04/2008
   1.103 +//! @SYMTestCaseDesc		Stack Pointer Test - Get a pointer to a DMMCStack object.
   1.104 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.105 +//!				2. Open the driver connection
   1.106 +//!				3. Get a pointer to a DMMCStack object for MMC card number 1
   1.107 +//!				4. Destroy the object
   1.108 +//! @SYMTestStatus		Implemented
   1.109 +//! @SYMTestPriority		high
   1.110 +//! @SYMTestExpectedResults	The stack pointer is returned with no errors.
   1.111 +//! @SYMTestType		CIT
   1.112 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.113 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.114 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.115 +		COMMAND		mmcsdsession1	NewL
   1.116 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0004-001-DriverOpen_command01
   1.117 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0004-001-NewL_command02
   1.118 +		COMMAND		mmcsdsocket1	Stack			BASE-BSP-MMC-SOCKET-DRIVER-0004-001-Stack_command03
   1.119 +		COMMAND		mmcsdsession1	Close
   1.120 +		COMMAND		mmcsdsocket1	~
   1.121 +		COMMAND		mmcsdsession1	~
   1.122 +	END_TEST_BLOCK
   1.123 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0004
   1.124 +
   1.125 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0005
   1.126 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0005
   1.127 +//! @SYMAPI			DMMCSocket::ResetInactivity(TInt);
   1.128 +//! @SYMAuthor			James Mechen
   1.129 +//! @SYMCreationDate		11/04/2008
   1.130 +//! @SYMTestCaseDesc		Reset inactivity timer Test - Reset socket's PSU inactivity timer.
   1.131 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.132 +//!				2. Open the driver connection
   1.133 +//!				3. Reset socket's PSU inactivity timer
   1.134 +//!				4. Verify the bus inactivity count
   1.135 +//!				5. Destroy the object
   1.136 +//! @SYMTestStatus		Implemented
   1.137 +//! @SYMTestPriority		high
   1.138 +//! @SYMTestExpectedResults	PSU inactivity timer is reset with no errors.
   1.139 +//! @SYMTestType		CIT
   1.140 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.141 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.142 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.143 +		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1
   1.144 +		COMMAND		mmcsdsession1	NewL
   1.145 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0005-001-DriverOpen_command02
   1.146 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0005-001-NewL_command03
   1.147 +		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0005-001-NewL_command03
   1.148 +		COMMAND		mmcsdsocket1	ResetInactivity		BASE-BSP-MMC-SOCKET-DRIVER-0005-001-ResetInactivity_command04
   1.149 +		COMMAND		mmcsdpsu1	PsuInfo			BASE-BSP-MMC-SOCKET-DRIVER-0005-001-PsuInfo_command05
   1.150 +		COMMAND		mmcsdsession1	Close
   1.151 +		COMMAND		mmcsdpsu1	~
   1.152 +		COMMAND		mmcsdsocket1	~
   1.153 +		COMMAND		mmcsdsession1	~
   1.154 +	END_TEST_BLOCK
   1.155 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0005
   1.156 +
   1.157 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0006
   1.158 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0006
   1.159 +//! @SYMAPI			DMMCSocket::MachineInfo();
   1.160 +//! @SYMAuthor			James Mechen
   1.161 +//! @SYMCreationDate		11/04/2008
   1.162 +//! @SYMTestCaseDesc		MachineInfo Test - Get the MachineInfo from the PSL.
   1.163 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.164 +//!				2. Open the driver connection
   1.165 +//!				3. Get the MachineInfo from the PSL
   1.166 +//!				4. Destroy the object
   1.167 +//! @SYMTestStatus		Implemented
   1.168 +//! @SYMTestPriority		high
   1.169 +//! @SYMTestExpectedResults	MachineInfo is retrieved and contains the correct values.
   1.170 +//! @SYMTestType		CIT
   1.171 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.172 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.173 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.174 +		COMMAND		mmcsdsession1	NewL
   1.175 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0006-001-DriverOpen_command01
   1.176 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0006-001-NewL_command02
   1.177 +		COMMAND		mmcsdsocket1	MachineInfo		BASE-BSP-MMC-SOCKET-DRIVER-0006-001-MachineInfo_command03
   1.178 +		COMMAND		mmcsdsession1	Close
   1.179 +		COMMAND		mmcsdsocket1	~
   1.180 +		COMMAND		mmcsdsession1	~
   1.181 +	END_TEST_BLOCK
   1.182 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0006
   1.183 +
   1.184 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0007
   1.185 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0007
   1.186 +//! @SYMAPI			DMMCSocket::AdjustPartialRead(const TMMCard{ptr}, TUint32, TUint32, TUint32{ptr}, TUint32{ptr});
   1.187 +//! @SYMAuthor			James Mechen
   1.188 +//! @SYMCreationDate		11/04/2008
   1.189 +//! @SYMTestCaseDesc		Adjust Partial Read Test - Calculate minimum range that must be read off card.
   1.190 +//! @SYMTestActions    		1. Create RMMCSDTestControllerInterface Handle object.
   1.191 +//!				2. Open the driver connection
   1.192 +//!				3. Get pointer to card
   1.193 +//!				4. Calculate minimum range that must be read off card
   1.194 +//!				5. Destroy the objects
   1.195 +//! @SYMTestStatus		Implemented
   1.196 +//! @SYMTestPriority		high
   1.197 +//! @SYMTestExpectedResults	Minimum range that must be read off card is correctly returned.
   1.198 +//! @SYMTestType		CIT
   1.199 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.200 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.201 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.202 +		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   1.203 +		COMMAND		mmcsdsession1	NewL
   1.204 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0007-001-DriverOpen_command02
   1.205 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0007-001-NewL_command03
   1.206 +		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0007-001-NewL_command03
   1.207 +		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-SOCKET-DRIVER-0007-001-CardP_command04
   1.208 +		COMMAND		mmcsdsocket1	AdjustPartialRead	BASE-BSP-MMC-SOCKET-DRIVER-0007-001-AdjustPartialRead_command05
   1.209 +		COMMAND		mmcsdsession1	Close
   1.210 +		COMMAND		mmcsdstack1	~
   1.211 +		COMMAND		mmcsdsocket1	~
   1.212 +		COMMAND		mmcsdsession1	~
   1.213 +	END_TEST_BLOCK
   1.214 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0007
   1.215 +
   1.216 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0008
   1.217 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0008
   1.218 +//! @SYMAPI			DMMCSocket::GetBufferInfo(TUint8{ptr}{ptr}, TInt{ptr});
   1.219 +//! @SYMAuthor			James Mechen
   1.220 +//! @SYMCreationDate		11/04/2008
   1.221 +//! @SYMTestCaseDesc		Get Buffer Info Test - Get details of the buffer allocated by socket for data transfer operations.
   1.222 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.223 +//!				2. Open the driver connection
   1.224 +//!				3. Get details of the buffer allocated by socket for data transfer operations
   1.225 +//!				4. Destroy the object
   1.226 +//! @SYMTestStatus		Implemented
   1.227 +//! @SYMTestPriority		high
   1.228 +//! @SYMTestExpectedResults	Correct buffer details are returned with no errors.
   1.229 +//! @SYMTestType		CIT
   1.230 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.231 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.232 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.233 +		COMMAND		mmcsdsession1	NewL
   1.234 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0008-001-DriverOpen_command01
   1.235 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0008-001-NewL_command02
   1.236 +		COMMAND		mmcsdsocket1	GetBufferInfo		BASE-BSP-MMC-SOCKET-DRIVER-0008-001-GetBufferInfo_command03
   1.237 +		COMMAND		mmcsdsession1	Close
   1.238 +		COMMAND		mmcsdsocket1	~
   1.239 +		COMMAND		mmcsdsession1	~
   1.240 +	END_TEST_BLOCK
   1.241 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0008
   1.242 +
   1.243 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0009
   1.244 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0009
   1.245 +//! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   1.246 +//! @SYMAuthor			James Mechen
   1.247 +//! @SYMCreationDate		11/04/2008
   1.248 +//! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated.
   1.249 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.250 +//!				2. Open the driver connection
   1.251 +//!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordClear
   1.252 +//!				4. Destroy the object
   1.253 +//! @SYMTestStatus		Implemented
   1.254 +//! @SYMTestPriority		high
   1.255 +//! @SYMTestExpectedResults	Store is prepared with no errors.
   1.256 +//! @SYMTestType		CIT
   1.257 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.258 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.259 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.260 +		COMMAND		mmcsdsession1	NewL
   1.261 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0009-001-DriverOpen_command01
   1.262 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0006-001-NewL_command02
   1.263 +		COMMAND		mmcsdsocket1	PrepareStore		BASE-BSP-MMC-SOCKET-DRIVER-0009-001-PrepareStore_command03
   1.264 +		COMMAND		mmcsdsession1	Close
   1.265 +		COMMAND		mmcsdsocket1	~
   1.266 +		COMMAND		mmcsdsession1	~
   1.267 +	END_TEST_BLOCK
   1.268 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0009
   1.269 +
   1.270 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0010
   1.271 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0010
   1.272 +//! @SYMAPI			DMMCSocket::Init();
   1.273 +//! @SYMAuthor			James Mechen
   1.274 +//! @SYMCreationDate		15/05/2008
   1.275 +//! @SYMTestCaseDesc		Initialise Test - Allocate resources and initialise the MMC socket and associated stack object.
   1.276 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.277 +//!				2. Open the driver connection
   1.278 +//!				3. Allocate resources and initialise the MMC socket and associated stack object
   1.279 +//!				4. Destroy the object
   1.280 +//! @SYMTestStatus		Implemented
   1.281 +//! @SYMTestPriority		high
   1.282 +//! @SYMTestExpectedResults	MMC socket initialised with no error.
   1.283 +//! @SYMTestType		CIT
   1.284 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.285 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.286 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.287 +		COMMAND		mmcsdsession1	NewL
   1.288 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0010-001-DriverOpen_command01
   1.289 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0010-001-NewL_command02
   1.290 +		COMMAND		mmcsdsocket1	Init
   1.291 +		COMMAND		mmcsdsession1	Close
   1.292 +		COMMAND		mmcsdsocket1	~
   1.293 +		COMMAND		mmcsdsession1	~
   1.294 +	END_TEST_BLOCK
   1.295 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0010
   1.296 +
   1.297 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0011
   1.298 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0011
   1.299 +//! @SYMAPI			DMMCSocket::Init();
   1.300 +//! @SYMAuthor			James Mechen
   1.301 +//! @SYMCreationDate		15/05/2008
   1.302 +//! @SYMTestCaseDesc		Initialise Test - Allocate resources and initialise the MMC socket and associated stack object.
   1.303 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.304 +//!				2. Open the driver connection
   1.305 +//!				3. Allocate resources and initialise the MMC socket and associated stack object
   1.306 +//!				4. Destroy the object
   1.307 +//! @SYMTestStatus		Implemented
   1.308 +//! @SYMTestPriority		high
   1.309 +//! @SYMTestExpectedResults	MMC socket initialised with error KErrAlreadyExists.
   1.310 +//! @SYMTestType		CIT
   1.311 +	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.312 +		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   1.313 +		CREATE_OBJECT		MMCSDSocket	mmcsdsocket1
   1.314 +		COMMAND			mmcsdsession1	NewL
   1.315 +		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0011-001-DriverOpen_command01
   1.316 +		COMMAND			mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0011-001-NewL_command02
   1.317 +		COMMAND	!Error=-11	mmcsdsocket1	Init
   1.318 +		COMMAND			mmcsdsession1	Close
   1.319 +		COMMAND			mmcsdsocket1	~
   1.320 +		COMMAND			mmcsdsession1	~
   1.321 +	END_TEST_BLOCK
   1.322 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0011
   1.323 +
   1.324 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0012
   1.325 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0012
   1.326 +//! @SYMAPI			DMMCSocket::Init();
   1.327 +//! @SYMAuthor			James Mechen
   1.328 +//! @SYMCreationDate		15/05/2008
   1.329 +//! @SYMTestCaseDesc		Initialise Test - Allocate resources and initialise the MMC socket and associated stack object.
   1.330 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.331 +//!				2. Open the driver connection
   1.332 +//!				3. Allocate resources and initialise the MMC socket and associated stack object
   1.333 +//!				4. Destroy the object
   1.334 +//! @SYMTestStatus		Implemented
   1.335 +//! @SYMTestPriority		high
   1.336 +//! @SYMTestExpectedResults	MMC socket initialised with error KErrInUse.
   1.337 +//! @SYMTestType		CIT
   1.338 +	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.339 +		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   1.340 +		CREATE_OBJECT		MMCSDSocket	mmcsdsocket1
   1.341 +		COMMAND			mmcsdsession1	NewL
   1.342 +		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0011-001-DriverOpen_command01
   1.343 +		COMMAND			mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0011-001-NewL_command02
   1.344 +		COMMAND	!Error=-14	mmcsdsocket1	Init
   1.345 +		COMMAND			mmcsdsession1	Close
   1.346 +		COMMAND			mmcsdsocket1	~
   1.347 +		COMMAND			mmcsdsession1	~
   1.348 +	END_TEST_BLOCK
   1.349 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0012
   1.350 +
   1.351 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0013
   1.352 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0013
   1.353 +//! @SYMAPI			DMMCSocket::InitiatePowerUpSequence();
   1.354 +//! @SYMAuthor			James Mechen
   1.355 +//! @SYMCreationDate		15/05/2008
   1.356 +//! @SYMTestCaseDesc		Initiate Power Up Sequence Test - Initiate power up sequence on the stack.
   1.357 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.358 +//!				2. Open the driver connection
   1.359 +//!				3. Initiate power up sequence on the stack
   1.360 +//!				4. Destroy the object
   1.361 +//! @SYMTestStatus		Implemented
   1.362 +//! @SYMTestPriority		high
   1.363 +//! @SYMTestExpectedResults	Power up sequence initiated with no errors.
   1.364 +//! @SYMTestType		CIT
   1.365 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.366 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.367 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.368 +		COMMAND		mmcsdsession1	NewL
   1.369 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0013-001-DriverOpen_command01
   1.370 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0013-001-NewL_command02
   1.371 +		COMMAND		mmcsdsocket1	InitiatePowerUpSequence
   1.372 +		COMMAND		mmcsdsession1	Close
   1.373 +		COMMAND		mmcsdsocket1	~
   1.374 +		COMMAND		mmcsdsession1	~
   1.375 +	END_TEST_BLOCK
   1.376 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0013
   1.377 +
   1.378 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0014
   1.379 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0014
   1.380 +//! @SYMAPI			DMMCSocket::Reset2();
   1.381 +//! @SYMAuthor			James Mechen
   1.382 +//! @SYMCreationDate		25/06/2008
   1.383 +//! @SYMTestCaseDesc		Reset2 Test - Reset the socket and free up allocated resources, without powering down the stack first.
   1.384 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.385 +//!				2. Open the driver connection
   1.386 +//!				3. Reset the socket and free up allocated resources
   1.387 +//!				4. Destroy the object
   1.388 +//! @SYMTestStatus		Implemented
   1.389 +//! @SYMTestPriority		high
   1.390 +//! @SYMTestExpectedResults	The socket is reset with no errors.
   1.391 +//! @SYMTestType		CIT
   1.392 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.393 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.394 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.395 +		COMMAND		mmcsdsession1	NewL
   1.396 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0014-001-DriverOpen_command01
   1.397 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0014-001-NewL_command02
   1.398 +		COMMAND		mmcsdsocket1	Reset2
   1.399 +		COMMAND		mmcsdsession1	Close
   1.400 +		COMMAND		mmcsdsocket1	~
   1.401 +		COMMAND		mmcsdsession1	~
   1.402 +	END_TEST_BLOCK
   1.403 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0014
   1.404 +
   1.405 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0015
   1.406 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0015
   1.407 +//! @SYMAPI			DMMCSocket::Stack(TInt);
   1.408 +//! @SYMAuthor			James Mechen
   1.409 +//! @SYMCreationDate		25/06/2008
   1.410 +//! @SYMTestCaseDesc		Stack Pointer Test - Get a pointer to a DMMCStack object, for invalid bus number.
   1.411 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.412 +//!				2. Open the driver connection
   1.413 +//!				3. Get a pointer to a DMMCStack object for MMC card number -1
   1.414 +//!				4. Destroy the object
   1.415 +//! @SYMTestStatus		Implemented
   1.416 +//! @SYMTestPriority		high
   1.417 +//! @SYMTestExpectedResults	The stack pointer is correctly returned.
   1.418 +//! @SYMTestType		CIT
   1.419 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.420 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.421 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.422 +		COMMAND		mmcsdsession1	NewL
   1.423 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0015-001-DriverOpen_command01
   1.424 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0015-001-NewL_command02
   1.425 +		COMMAND		mmcsdsocket1	Stack			BASE-BSP-MMC-SOCKET-DRIVER-0015-001-Stack_command03
   1.426 +		COMMAND		mmcsdsession1	Close
   1.427 +		COMMAND		mmcsdsocket1	~
   1.428 +		COMMAND		mmcsdsession1	~
   1.429 +	END_TEST_BLOCK
   1.430 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0015
   1.431 +
   1.432 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0016
   1.433 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0016
   1.434 +//! @SYMAPI			DMMCSocket::Stack(TInt);
   1.435 +//! @SYMAuthor			James Mechen
   1.436 +//! @SYMCreationDate		25/06/2008
   1.437 +//! @SYMTestCaseDesc		Stack Pointer Test - Get a pointer to a DMMCStack object, for invalid bus number.
   1.438 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.439 +//!				2. Open the driver connection
   1.440 +//!				3. Get a pointer to a DMMCStack object for MMC card number 5
   1.441 +//!				4. Destroy the object
   1.442 +//! @SYMTestStatus		Implemented
   1.443 +//! @SYMTestPriority		high
   1.444 +//! @SYMTestExpectedResults	The stack pointer is returned as NULL.
   1.445 +//! @SYMTestType		CIT
   1.446 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.447 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.448 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.449 +		COMMAND		mmcsdsession1	NewL
   1.450 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0016-001-DriverOpen_command01
   1.451 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0010-001-NewL_command02
   1.452 +		COMMAND		mmcsdsocket1	Stack			BASE-BSP-MMC-SOCKET-DRIVER-0016-001-Stack_command03
   1.453 +		COMMAND		mmcsdsession1	Close
   1.454 +		COMMAND		mmcsdsocket1	~
   1.455 +		COMMAND		mmcsdsession1	~
   1.456 +	END_TEST_BLOCK
   1.457 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0016
   1.458 +
   1.459 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0017
   1.460 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0017
   1.461 +//! @SYMAPI			DMMCSocket::ResetInactivity(TInt);
   1.462 +//! @SYMAuthor			James Mechen
   1.463 +//! @SYMCreationDate		26/06/2008
   1.464 +//! @SYMTestCaseDesc		Reset inactivity timer Test - Reset socket's PSU inactivity timer, for invalid bus number.
   1.465 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.466 +//!				2. Open the driver connection
   1.467 +//!				3. Reset socket's PSU inactivity timer for MMC card number -1
   1.468 +//!				4. Verify the bus inactivity count
   1.469 +//!				5. Destroy the object
   1.470 +//! @SYMTestStatus		Implemented
   1.471 +//! @SYMTestPriority		high
   1.472 +//! @SYMTestExpectedResults	PSU inactivity timer is reset with no errors.
   1.473 +//! @SYMTestType		CIT
   1.474 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.475 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.476 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.477 +		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1
   1.478 +		COMMAND		mmcsdsession1	NewL
   1.479 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0017-001-DriverOpen_command02
   1.480 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0017-001-NewL_command03
   1.481 +		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0017-001-NewL_command03
   1.482 +		COMMAND		mmcsdsocket1	ResetInactivity		BASE-BSP-MMC-SOCKET-DRIVER-0017-001-ResetInactivity_command04
   1.483 +		COMMAND		mmcsdpsu1	PsuInfo			BASE-BSP-MMC-SOCKET-DRIVER-0017-001-PsuInfo_command05
   1.484 +		COMMAND		mmcsdsession1	Close
   1.485 +		COMMAND		mmcsdpsu1	~
   1.486 +		COMMAND		mmcsdsocket1	~
   1.487 +		COMMAND		mmcsdsession1	~
   1.488 +	END_TEST_BLOCK
   1.489 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0017
   1.490 +
   1.491 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0018
   1.492 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0018
   1.493 +//! @SYMAPI			DMMCSocket::ResetInactivity(TInt);
   1.494 +//! @SYMAuthor			James Mechen
   1.495 +//! @SYMCreationDate		26/06/2008
   1.496 +//! @SYMTestCaseDesc		Reset inactivity timer Test - Reset socket's PSU inactivity timer, for invalid bus number.
   1.497 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.498 +//!				2. Open the driver connection
   1.499 +//!				3. Reset socket's PSU inactivity timer for MMC card number 5
   1.500 +//!				4. Verify the bus inactivity count
   1.501 +//!				5. Destroy the object
   1.502 +//! @SYMTestStatus		Implemented
   1.503 +//! @SYMTestPriority		high
   1.504 +//! @SYMTestExpectedResults	PSU inactivity timer is reset with no errors.
   1.505 +//! @SYMTestType		CIT
   1.506 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.507 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.508 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.509 +		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1
   1.510 +		COMMAND		mmcsdsession1	NewL
   1.511 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0018-001-DriverOpen_command02
   1.512 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0018-001-NewL_command03
   1.513 +		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0018-001-NewL_command03
   1.514 +		COMMAND		mmcsdsocket1	ResetInactivity		BASE-BSP-MMC-SOCKET-DRIVER-0018-001-ResetInactivity_command04
   1.515 +		COMMAND		mmcsdpsu1	PsuInfo			BASE-BSP-MMC-SOCKET-DRIVER-0018-001-PsuInfo_command05
   1.516 +		COMMAND		mmcsdsession1	Close
   1.517 +		COMMAND		mmcsdpsu1	~
   1.518 +		COMMAND		mmcsdsocket1	~
   1.519 +		COMMAND		mmcsdsession1	~
   1.520 +	END_TEST_BLOCK
   1.521 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0018
   1.522 +
   1.523 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0019
   1.524 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0019
   1.525 +//! @SYMAPI			DMMCSocket::AdjustPartialRead(const TMMCard{ptr}, TUint32, TUint32, TUint32{ptr}, TUint32{ptr});
   1.526 +//! @SYMAuthor			James Mechen
   1.527 +//! @SYMCreationDate		26/06/2008
   1.528 +//! @SYMTestCaseDesc		Adjust Partial Read Test - Calculate minimum range that must be read off card, using invalid inputs.
   1.529 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.530 +//!				2. Open the driver connection
   1.531 +//!				3. Get pointer to card
   1.532 +//!				4. Calculate minimum range that must be read off card, where aStart=0xFFFFFFFE and aEnd=0xFFFFFFFF
   1.533 +//!				5. Destroy the objects
   1.534 +//! @SYMTestStatus		Implemented
   1.535 +//! @SYMTestPriority		high
   1.536 +//! @SYMTestExpectedResults	Minimum range that must be read off card is correctly returned.
   1.537 +//! @SYMTestType		CIT
   1.538 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.539 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.540 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.541 +		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   1.542 +		COMMAND		mmcsdsession1	NewL
   1.543 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0019-001-DriverOpen_command02
   1.544 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0019-001-NewL_command03
   1.545 +		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0019-001-NewL_command03
   1.546 +		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-SOCKET-DRIVER-0019-001-CardP_command04
   1.547 +		COMMAND		mmcsdsocket1	AdjustPartialRead	BASE-BSP-MMC-SOCKET-DRIVER-0019-001-AdjustPartialRead_command05
   1.548 +		COMMAND		mmcsdsession1	Close
   1.549 +		COMMAND		mmcsdstack1	~
   1.550 +		COMMAND		mmcsdsocket1	~
   1.551 +		COMMAND		mmcsdsession1	~
   1.552 +	END_TEST_BLOCK
   1.553 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0019
   1.554 +
   1.555 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0020
   1.556 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0020
   1.557 +//! @SYMAPI			DMMCSocket::AdjustPartialRead(const TMMCard{ptr}, TUint32, TUint32, TUint32{ptr}, TUint32{ptr});
   1.558 +//! @SYMAuthor			James Mechen
   1.559 +//! @SYMCreationDate		26/06/2008
   1.560 +//! @SYMTestCaseDesc		Adjust Partial Read Test - Calculate minimum range that must be read off card, using invalid inputs.
   1.561 +//! @SYMTestActions    		1. Create RMMCSDTestControllerInterface Handle object.
   1.562 +//!				2. Open the driver connection
   1.563 +//!				3. Get pointer to card
   1.564 +//!				4. Calculate minimum range that must be read off card, where aStart=0 and aEnd=0xFFFFFFFF
   1.565 +//!				5. Destroy the objects
   1.566 +//! @SYMTestStatus		Implemented
   1.567 +//! @SYMTestPriority		high
   1.568 +//! @SYMTestExpectedResults	Minimum range that must be read off card is correctly returned.
   1.569 +//! @SYMTestType		CIT
   1.570 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.571 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.572 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.573 +		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   1.574 +		COMMAND		mmcsdsession1	NewL
   1.575 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0020-001-DriverOpen_command02
   1.576 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0020-001-NewL_command03
   1.577 +		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0020-001-NewL_command03
   1.578 +		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-SOCKET-DRIVER-0020-001-CardP_command04
   1.579 +		COMMAND		mmcsdsocket1	AdjustPartialRead	BASE-BSP-MMC-SOCKET-DRIVER-0020-001-AdjustPartialRead_command05
   1.580 +		COMMAND		mmcsdsession1	Close
   1.581 +		COMMAND		mmcsdstack1	~
   1.582 +		COMMAND		mmcsdsocket1	~
   1.583 +		COMMAND		mmcsdsession1	~
   1.584 +	END_TEST_BLOCK
   1.585 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0020
   1.586 +
   1.587 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0021
   1.588 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0021
   1.589 +//! @SYMAPI			DMMCSocket::AdjustPartialRead(const TMMCard{ptr}, TUint32, TUint32, TUint32{ptr}, TUint32{ptr});
   1.590 +//! @SYMAuthor			James Mechen
   1.591 +//! @SYMCreationDate		26/06/2008
   1.592 +//! @SYMTestCaseDesc		Adjust Partial Read Test - Calculate minimum range that must be read off card, using invalid inputs.
   1.593 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.594 +//!				2. Open the driver connection
   1.595 +//!				3. Get pointer to card
   1.596 +//!				4. Calculate minimum range that must be read off card, where aStart=aEnd
   1.597 +//!				5. Destroy the objects
   1.598 +//! @SYMTestStatus		Implemented
   1.599 +//! @SYMTestPriority		high
   1.600 +//! @SYMTestExpectedResults	Minimum range that must be read off card is correctly returned.
   1.601 +//! @SYMTestType		CIT
   1.602 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.603 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.604 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.605 +		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   1.606 +		COMMAND		mmcsdsession1	NewL
   1.607 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0021-001-DriverOpen_command02
   1.608 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0021-001-NewL_command03
   1.609 +		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0021-001-NewL_command03
   1.610 +		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-SOCKET-DRIVER-0021-001-CardP_command04
   1.611 +		COMMAND		mmcsdsocket1	AdjustPartialRead	BASE-BSP-MMC-SOCKET-DRIVER-0021-001-AdjustPartialRead_command05
   1.612 +		COMMAND		mmcsdsession1	Close
   1.613 +		COMMAND		mmcsdstack1	~
   1.614 +		COMMAND		mmcsdsocket1	~
   1.615 +		COMMAND		mmcsdsession1	~
   1.616 +	END_TEST_BLOCK
   1.617 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0021
   1.618 +
   1.619 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0022
   1.620 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0022
   1.621 +//! @SYMAPI			DMMCSocket::AdjustPartialRead(const TMMCard{ptr}, TUint32, TUint32, TUint32{ptr}, TUint32{ptr});
   1.622 +//! @SYMAuthor			James Mechen
   1.623 +//! @SYMCreationDate		26/06/2008
   1.624 +//! @SYMTestCaseDesc		Adjust Partial Read Test - Calculate minimum range that must be read off card, using invalid inputs.
   1.625 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.626 +//!				2. Open the driver connection
   1.627 +//!				3. Get pointer to card
   1.628 +//!				4. Calculate minimum range that must be read off card, where aStart>aEnd
   1.629 +//!				5. Destroy the objects
   1.630 +//! @SYMTestStatus		Implemented
   1.631 +//! @SYMTestPriority		high
   1.632 +//! @SYMTestExpectedResults	Minimum range that must be read off card is correctly returned.
   1.633 +//! @SYMTestType		CIT
   1.634 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.635 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.636 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.637 +		CREATE_OBJECT	MMCSDStack	mmcsdstack1
   1.638 +		COMMAND		mmcsdsession1	NewL
   1.639 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0022-001-DriverOpen_command02
   1.640 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0022-001-NewL_command03
   1.641 +		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0022-001-NewL_command03
   1.642 +		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-SOCKET-DRIVER-0022-001-CardP_command04
   1.643 +		COMMAND		mmcsdsocket1	AdjustPartialRead	BASE-BSP-MMC-SOCKET-DRIVER-0022-001-AdjustPartialRead_command05
   1.644 +		COMMAND		mmcsdsession1	Close
   1.645 +		COMMAND		mmcsdstack1	~
   1.646 +		COMMAND		mmcsdsocket1	~
   1.647 +		COMMAND		mmcsdsession1	~
   1.648 +	END_TEST_BLOCK
   1.649 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0022
   1.650 +
   1.651 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0023
   1.652 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0023
   1.653 +//! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   1.654 +//! @SYMAuthor			James Mechen
   1.655 +//! @SYMCreationDate		27/06/2008
   1.656 +//! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated.
   1.657 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.658 +//!				2. Open the driver connection
   1.659 +//!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordLock
   1.660 +//!				4. Destroy the object
   1.661 +//! @SYMTestStatus		Implemented
   1.662 +//! @SYMTestPriority		high
   1.663 +//! @SYMTestExpectedResults	Store is prepared with no errors.
   1.664 +//! @SYMTestType		CIT
   1.665 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.666 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.667 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.668 +		COMMAND		mmcsdsession1	NewL
   1.669 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0023-001-DriverOpen_command01
   1.670 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0023-001-NewL_command02
   1.671 +		COMMAND		mmcsdsocket1	PrepareStore		BASE-BSP-MMC-SOCKET-DRIVER-0023-001-PrepareStore_command03
   1.672 +		COMMAND		mmcsdsession1	Close
   1.673 +		COMMAND		mmcsdsocket1	~
   1.674 +		COMMAND		mmcsdsession1	~
   1.675 +	END_TEST_BLOCK
   1.676 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0023
   1.677 +
   1.678 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0024
   1.679 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0024
   1.680 +//! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   1.681 +//! @SYMAuthor			James Mechen
   1.682 +//! @SYMCreationDate		27/06/2008
   1.683 +//! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated.
   1.684 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.685 +//!				2. Open the driver connection
   1.686 +//!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordUnlock
   1.687 +//!				4. Destroy the object
   1.688 +//! @SYMTestStatus		Implemented
   1.689 +//! @SYMTestPriority		high
   1.690 +//! @SYMTestExpectedResults	Store is prepared with no errors.
   1.691 +//! @SYMTestType		CIT
   1.692 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.693 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.694 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.695 +		COMMAND		mmcsdsession1	NewL
   1.696 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0024-001-DriverOpen_command01
   1.697 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0024-001-NewL_command02
   1.698 +		COMMAND		mmcsdsocket1	PrepareStore		BASE-BSP-MMC-SOCKET-DRIVER-0024-001-PrepareStore_command03
   1.699 +		COMMAND		mmcsdsession1	Close
   1.700 +		COMMAND		mmcsdsocket1	~
   1.701 +		COMMAND		mmcsdsession1	~
   1.702 +	END_TEST_BLOCK
   1.703 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0024
   1.704 +
   1.705 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0025
   1.706 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0025
   1.707 +//! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   1.708 +//! @SYMAuthor			James Mechen
   1.709 +//! @SYMCreationDate		02/07/2008
   1.710 +//! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated, using NULL password.
   1.711 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.712 +//!				2. Open the driver connection
   1.713 +//!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordLock and NULL password
   1.714 +//!				4. Destroy the object
   1.715 +//! @SYMTestStatus		Implemented
   1.716 +//! @SYMTestPriority		high
   1.717 +//! @SYMTestExpectedResults	Store is prepared with error KErrAccessDenied.
   1.718 +//! @SYMTestType		CIT
   1.719 +	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.720 +		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   1.721 +		CREATE_OBJECT		MMCSDSocket	mmcsdsocket1
   1.722 +		COMMAND			mmcsdsession1	NewL
   1.723 +		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0025-001-DriverOpen_command01
   1.724 +		COMMAND			mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0025-001-NewL_command02
   1.725 +		COMMAND	!Error=-21	mmcsdsocket1	PrepareStore		BASE-BSP-MMC-SOCKET-DRIVER-0025-001-PrepareStore_command03
   1.726 +		COMMAND			mmcsdsession1	Close
   1.727 +		COMMAND			mmcsdsocket1	~
   1.728 +		COMMAND			mmcsdsession1	~
   1.729 +	END_TEST_BLOCK
   1.730 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0025
   1.731 +
   1.732 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0026
   1.733 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0026
   1.734 +//! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   1.735 +//! @SYMAuthor			James Mechen
   1.736 +//! @SYMCreationDate		02/07/2008
   1.737 +//! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated, using NULL password.
   1.738 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.739 +//!				2. Open the driver connection
   1.740 +//!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordClear and NULL password
   1.741 +//!				4. Destroy the object
   1.742 +//! @SYMTestStatus		Implemented
   1.743 +//! @SYMTestPriority		high
   1.744 +//! @SYMTestExpectedResults	Store is prepared with error KErrAccessDenied.
   1.745 +//! @SYMTestType		CIT
   1.746 +	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.747 +		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   1.748 +		CREATE_OBJECT		MMCSDSocket	mmcsdsocket1
   1.749 +		COMMAND			mmcsdsession1	NewL
   1.750 +		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0026-001-DriverOpen_command01
   1.751 +		COMMAND			mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0026-001-NewL_command02
   1.752 +		COMMAND	!Error=-21	mmcsdsocket1	PrepareStore		BASE-BSP-MMC-SOCKET-DRIVER-0026-001-PrepareStore_command03
   1.753 +		COMMAND			mmcsdsession1	Close
   1.754 +		COMMAND			mmcsdsocket1	~
   1.755 +		COMMAND			mmcsdsession1	~
   1.756 +	END_TEST_BLOCK
   1.757 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0026
   1.758 +
   1.759 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0027
   1.760 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0027
   1.761 +//! @SYMAPI			DMMCSocket::PrepareStore(TInt, TInt, TLocalDrivePasswordData{ref});
   1.762 +//! @SYMAuthor			James Mechen
   1.763 +//! @SYMCreationDate		02/07/2008
   1.764 +//! @SYMTestCaseDesc		Prepare Store Test - Prepare store so mappings can be allocated or deallocated, using NULL password.
   1.765 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.766 +//!				2. Open the driver connection
   1.767 +//!				3. Prepare store so mappings can be allocated or deallocated, using operation EPasswordUnlock and NULL password
   1.768 +//!				4. Destroy the object
   1.769 +//! @SYMTestStatus		Implemented
   1.770 +//! @SYMTestPriority		high
   1.771 +//! @SYMTestExpectedResults	Store is prepared with error KErrLocked.
   1.772 +//! @SYMTestType		CIT
   1.773 +	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.774 +		CREATE_OBJECT		MMCSDSession	mmcsdsession1
   1.775 +		CREATE_OBJECT		MMCSDSocket	mmcsdsocket1
   1.776 +		COMMAND			mmcsdsession1	NewL
   1.777 +		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0027-001-DriverOpen_command01
   1.778 +		COMMAND			mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0027-001-NewL_command02
   1.779 +		COMMAND	!Error=-22	mmcsdsocket1	PrepareStore		BASE-BSP-MMC-SOCKET-DRIVER-0027-001-PrepareStore_command03
   1.780 +		COMMAND			mmcsdsession1	Close
   1.781 +		COMMAND			mmcsdsocket1	~
   1.782 +		COMMAND			mmcsdsession1	~
   1.783 +	END_TEST_BLOCK
   1.784 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0027
   1.785 +
   1.786 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0028
   1.787 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0028
   1.788 +//! @SYMAPI			DMMCSocket::iStandby();
   1.789 +//! @SYMAuthor			Saravanakumar
   1.790 +//! @SYMCreationDate		06/05/2008
   1.791 +//! @SYMTestCaseDesc		Checks the Device Standby State
   1.792 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.793 +//!				2. Open the driver connection
   1.794 +//!				3. Check the Device is in Standby mode
   1.795 +//!				4. Destroy the object
   1.796 +//! @SYMTestStatus		Implemented
   1.797 +//! @SYMTestPriority		high
   1.798 +//! @SYMTestExpectedResults	Standby mode EFalse
   1.799 +//! @SYMTestType		CIT
   1.800 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.801 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.802 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.803 +		COMMAND		mmcsdsession1	NewL
   1.804 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0028-001-DriverOpen_command01
   1.805 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0028-001-NewL_command02
   1.806 +		COMMAND		mmcsdsocket1	iStandby_Get		BASE-BSP-MMC-SOCKET-DRIVER-0028-001-iStandby_Get_command03
   1.807 +		COMMAND		mmcsdsession1	Close
   1.808 +		COMMAND		mmcsdsocket1	~
   1.809 +		COMMAND		mmcsdsession1	~
   1.810 +	END_TEST_BLOCK
   1.811 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0028
   1.812 +
   1.813 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0029
   1.814 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0029
   1.815 +//! @SYMAPI			DMMCSocket::iType();
   1.816 +//! @SYMAuthor			Saravanakumar
   1.817 +//! @SYMCreationDate		06/05/2008
   1.818 +//! @SYMTestCaseDesc		Checks the card bus type
   1.819 +//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
   1.820 +//!				2. Open the driver connection
   1.821 +//!				3. Read the Bus type
   1.822 +//!				4. Destroy the object
   1.823 +//! @SYMTestStatus		Implemented
   1.824 +//! @SYMTestPriority		high
   1.825 +//! @SYMTestExpectedResults	Bus type EPBusTypeNone
   1.826 +//! @SYMTestType		CIT
   1.827 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.828 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.829 +		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
   1.830 +		COMMAND		mmcsdsession1	NewL
   1.831 +		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-SOCKET-DRIVER-0029-001-DriverOpen_command01
   1.832 +		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-SOCKET-DRIVER-0029-001-NewL_command02
   1.833 +		COMMAND		mmcsdsocket1	iType_Get		BASE-BSP-MMC-SOCKET-DRIVER-0029-001-iType_Get_command03
   1.834 +		COMMAND		mmcsdsession1	Close
   1.835 +		COMMAND		mmcsdsocket1	~
   1.836 +		COMMAND		mmcsdsession1	~
   1.837 +	END_TEST_BLOCK
   1.838 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0029
   1.839 +
   1.840 +START_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0030
   1.841 +//! @SYMTestCaseID		BASE-BSP-MMC-SOCKET-DRIVER-0030
   1.842 +//! @SYMAPI			FreeLogicalDevice(const TDesC {ref});
   1.843 +//! @SYMAuthor			James Mechen
   1.844 +//! @SYMCreationDate		11/04/2008
   1.845 +//! @SYMTestCaseDesc		Free the Logical Device Driver
   1.846 +//! @SYMTestActions		Free the D_MMCSDIF LDD Driver
   1.847 +//! @SYMTestStatus		Implemented
   1.848 +//! @SYMTestPriority		high
   1.849 +//! @SYMTestExpectedResults	Displayed Power supply information.
   1.850 +//! @SYMTestType		CIT
   1.851 +	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-SOCKET-DRIVER.ini
   1.852 +		CREATE_OBJECT	MMCSDSession	mmcsdsession1
   1.853 +		COMMAND		mmcsdsession1	NewL
   1.854 +		COMMAND		mmcsdsession1	UnLoadDriver		BASE-BSP-MMC-SOCKET-DRIVER-0030-001-UnLoadDriver_command02
   1.855 +		COMMAND		mmcsdsession1	~
   1.856 +	END_TEST_BLOCK
   1.857 +END_TESTCASE			BASE-BSP-MMC-SOCKET-DRIVER-0030