os/boardsupport/haitest/bspsvs/suite/bsp/mmc/scripts/BASE-BSP-MMC-STACK-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.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description:
sl@0
    15
//
sl@0
    16
sl@0
    17
LOAD_SUITE	T_mmcsd -SharedData
sl@0
    18
sl@0
    19
sl@0
    20
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0001
sl@0
    21
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0001
sl@0
    22
//! @SYMAPI			User::LoadLogicalDevice(const TDesC {ref});
sl@0
    23
//! @SYMAuthor			Matt Flowers
sl@0
    24
//! @SYMCreationDate		17/04/2008
sl@0
    25
//! @SYMTestCaseDesc		Load Logical Device Driver.
sl@0
    26
//! @SYMTestActions		Load D_MMCSDIF LDD Driver
sl@0
    27
//! @SYMTestStatus		Implemented
sl@0
    28
//! @SYMTestPriority		high
sl@0
    29
//! @SYMTestExpectedResults	KErrNone
sl@0
    30
//! @SYMTestType		CIT
sl@0
    31
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
    32
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
    33
		COMMAND		mmcsdsession1	NewL
sl@0
    34
		COMMAND		mmcsdsession1	LoadDriver		BASE-BSP-MMC-STACK-DRIVER-0001-001-LoadDriver_command02
sl@0
    35
		COMMAND		mmcsdsession1	~
sl@0
    36
	END_TEST_BLOCK
sl@0
    37
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0001
sl@0
    38
sl@0
    39
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0002
sl@0
    40
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0002
sl@0
    41
//! @SYMAPI			DPBusSocket::PowerUp();
sl@0
    42
//! @SYMAuthor			James Mechen
sl@0
    43
//! @SYMCreationDate		11/08/2008
sl@0
    44
//! @SYMTestCaseDesc		Powers up the socket
sl@0
    45
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
    46
//!				2. Open the driver connection
sl@0
    47
//!				3. Get state of the socket
sl@0
    48
//!				4. Power up the socket
sl@0
    49
//!				5. Get state of the socket
sl@0
    50
//!				6. Destroy the object
sl@0
    51
//! @SYMTestStatus		Implemented
sl@0
    52
//! @SYMTestPriority		high
sl@0
    53
//! @SYMTestExpectedResults	Socket successfully powered up with no error
sl@0
    54
//! @SYMTestType		CIT
sl@0
    55
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
    56
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
    57
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
    58
		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
sl@0
    59
		CREATE_OBJECT	MMCSDPsu	mmcsdpsu1
sl@0
    60
		COMMAND		mmcsdsession1	NewL
sl@0
    61
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0002-001-DriverOpen_command02
sl@0
    62
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0002-001-NewL_command03
sl@0
    63
		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-STACK-DRIVER-0002-001-NewL_command03
sl@0
    64
		COMMAND		mmcsdpsu1	NewL			BASE-BSP-MMC-STACK-DRIVER-0002-001-NewL_command03
sl@0
    65
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0002-001-CardP_command04
sl@0
    66
		COMMAND		mmcsdsocket1	iState_Get		BASE-BSP-MMC-STACK-DRIVER-0002-001-iState_Get_command05
sl@0
    67
		COMMAND		mmcsdpsu1 	VccState  		BASE-BSP-MMC-STACK-DRIVER-0002-001-VccState_command06
sl@0
    68
		COMMAND		mmcsdpsu1 	SetState  		BASE-BSP-MMC-STACK-DRIVER-0002-001-SetState_command07
sl@0
    69
		COMMAND		mmcsdpsu1 	VccState  		BASE-BSP-MMC-STACK-DRIVER-0002-001-VccState_command08
sl@0
    70
		COMMAND		mmcsdsocket1	iState_Get		BASE-BSP-MMC-STACK-DRIVER-0002-001-iState_Get_command09
sl@0
    71
		COMMAND		mmcsdsocket1	PowerUp
sl@0
    72
		OUTSTANDING
sl@0
    73
		COMMAND		mmcsdsocket1	iState_Get		BASE-BSP-MMC-STACK-DRIVER-0002-001-iState_Get_command11
sl@0
    74
		COMMAND		mmcsdpsu1	VccState		BASE-BSP-MMC-STACK-DRIVER-0002-001-VccState_command12
sl@0
    75
		COMMAND		mmcsdsession1	Close
sl@0
    76
		COMMAND		mmcsdpsu1	~
sl@0
    77
		COMMAND		mmcsdsocket1	~
sl@0
    78
		COMMAND		mmcsdstack1	~
sl@0
    79
		COMMAND		mmcsdsession1	~
sl@0
    80
	END_TEST_BLOCK
sl@0
    81
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0002
sl@0
    82
sl@0
    83
sl@0
    84
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0003
sl@0
    85
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0003
sl@0
    86
//! @SYMAPI			DMMCStack::PasswordStore();
sl@0
    87
//! @SYMAuthor			Matt Flowers
sl@0
    88
//! @SYMCreationDate		17/06/2008
sl@0
    89
//! @SYMTestCaseDesc		Write to / Read from Password Store.
sl@0
    90
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
    91
//!				2. Open the driver connection
sl@0
    92
//!				3. Select the card
sl@0
    93
//!				4. Write to Password Store
sl@0
    94
//!				5. Read from Password Store
sl@0
    95
//!				6. Write to Password Store
sl@0
    96
//!				7. Read from Password Store
sl@0
    97
//!				8. Destroy the object
sl@0
    98
//! @SYMTestStatus		Implemented
sl@0
    99
//! @SYMTestPriority		high
sl@0
   100
//! @SYMTestExpectedResults	Password store written to / read from with no errors.
sl@0
   101
//! @SYMTestType		CIT
sl@0
   102
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   103
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   104
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   105
		COMMAND		mmcsdsession1	NewL
sl@0
   106
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0003-001-DriverOpen_command01
sl@0
   107
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0003-001-NewL_command02
sl@0
   108
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0003-001-CardP_command03
sl@0
   109
		COMMAND		mmcsdstack1	WritePasswordStore	BASE-BSP-MMC-STACK-DRIVER-0003-001-WritePasswordStore_command04
sl@0
   110
		COMMAND		mmcsdstack1	ReadPasswordStore	BASE-BSP-MMC-STACK-DRIVER-0003-001-ReadPasswordStore_command05
sl@0
   111
		COMMAND		mmcsdstack1	WritePasswordStore	BASE-BSP-MMC-STACK-DRIVER-0003-001-WritePasswordStore_command06
sl@0
   112
		COMMAND		mmcsdstack1	ReadPasswordStore	BASE-BSP-MMC-STACK-DRIVER-0003-001-ReadPasswordStore_command07
sl@0
   113
		COMMAND		mmcsdsession1	Close
sl@0
   114
		COMMAND		mmcsdstack1	~
sl@0
   115
		COMMAND		mmcsdsession1	~
sl@0
   116
	END_TEST_BLOCK
sl@0
   117
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0003
sl@0
   118
sl@0
   119
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0004
sl@0
   120
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0004
sl@0
   121
//! @SYMAPI			DMMCSession::SetupCIMReadBlock(TMMCArgument, TUint32, TUint8 {ptr});
sl@0
   122
//!				DMMCSession::SetupCIMWriteBlock(TMMCArgument, TUint32, TUint8 {ptr});
sl@0
   123
//! @SYMAuthor			James Mechen
sl@0
   124
//! @SYMCreationDate		25/07/2008
sl@0
   125
//! @SYMTestCaseDesc		Concurrent read/write sector test.
sl@0
   126
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   127
//!				2. Open the driver connection
sl@0
   128
//!				3. Select the card
sl@0
   129
//!				4. Write to sector 12 of the card
sl@0
   130
//!				5. Read from sector 12 of the card and verify contents
sl@0
   131
//!				6. Write to sector 13 of the card
sl@0
   132
//!				7. Read from sector 13 of the card and verify contents
sl@0
   133
//!				8. Write to sector 14 of the card
sl@0
   134
//!				9. Read from sector 14 of the card and verify contents
sl@0
   135
//!				10. Destroy the object
sl@0
   136
//! @SYMTestStatus		Implemented
sl@0
   137
//! @SYMTestPriority		high
sl@0
   138
//! @SYMTestExpectedResults	Sectors correctly written and read with no errors.
sl@0
   139
//! @SYMTestType		CIT
sl@0
   140
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   141
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   142
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   143
		COMMAND		mmcsdsession1	NewL
sl@0
   144
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0004-001-DriverOpen_command01
sl@0
   145
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0004-001-NewL_command02
sl@0
   146
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0004-001-CardP_command03
sl@0
   147
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0004-001-WriteSector_command04
sl@0
   148
		OUTSTANDING
sl@0
   149
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0004-001-ReadSector_command05
sl@0
   150
		OUTSTANDING
sl@0
   151
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0004-001-WriteSector_command06
sl@0
   152
		OUTSTANDING
sl@0
   153
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0004-001-ReadSector_command07
sl@0
   154
		OUTSTANDING
sl@0
   155
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0004-001-WriteSector_command08
sl@0
   156
		OUTSTANDING
sl@0
   157
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0004-001-ReadSector_command09
sl@0
   158
		OUTSTANDING
sl@0
   159
		COMMAND		mmcsdsession1	Close
sl@0
   160
		COMMAND		mmcsdstack1	~
sl@0
   161
		COMMAND		mmcsdsession1	~
sl@0
   162
	END_TEST_BLOCK
sl@0
   163
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0004
sl@0
   164
sl@0
   165
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0005
sl@0
   166
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0005
sl@0
   167
//! @SYMAPI			DMMCSession::SetupCIMWriteBlock(TMMCArgument, TUint32, TUint8 {ptr});
sl@0
   168
//! @SYMAuthor			James Mechen
sl@0
   169
//! @SYMCreationDate		25/07/2008
sl@0
   170
//! @SYMTestCaseDesc		Multiple write sector test.
sl@0
   171
//! @SYMTestActions    		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   172
//!				2. Open the driver connection
sl@0
   173
//!				3. Select the card
sl@0
   174
//!				4. Write to sector 12 of the card
sl@0
   175
//!				5. Write to sector 13 of the card
sl@0
   176
//!				6. Write to sector 13 of the card
sl@0
   177
//!				7. Read from sector 12 of the card and verify contents
sl@0
   178
//!				8. Read from sector 13 of the card and verify contents
sl@0
   179
//!				9. Destroy the object
sl@0
   180
//! @SYMTestStatus		Implemented
sl@0
   181
//! @SYMTestPriority		high
sl@0
   182
//! @SYMTestExpectedResults	Sectors correctly written with no errors.
sl@0
   183
//! @SYMTestType		CIT
sl@0
   184
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   185
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   186
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   187
		COMMAND		mmcsdsession1	NewL
sl@0
   188
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0005-001-DriverOpen_command01
sl@0
   189
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0005-001-NewL_command02
sl@0
   190
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0005-001-CardP_command03
sl@0
   191
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0005-001-WriteSector_command04
sl@0
   192
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0005-001-WriteSector_command05
sl@0
   193
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0005-001-WriteSector_command06
sl@0
   194
		OUTSTANDING
sl@0
   195
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0005-001-ReadSector_command07
sl@0
   196
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0005-001-ReadSector_command08
sl@0
   197
		OUTSTANDING
sl@0
   198
		COMMAND		mmcsdsession1	Close
sl@0
   199
		COMMAND		mmcsdstack1	~
sl@0
   200
		COMMAND		mmcsdsession1	~
sl@0
   201
	END_TEST_BLOCK
sl@0
   202
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0005
sl@0
   203
sl@0
   204
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0006
sl@0
   205
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0006
sl@0
   206
//! @SYMAPI			DMMCSession::SetupCIMReadBlock(TMMCArgument, TUint32, TUint8 {ptr});
sl@0
   207
//! @SYMAuthor			James Mechen
sl@0
   208
//! @SYMCreationDate		17/04/2008
sl@0
   209
//! @SYMTestCaseDesc		Multiple read sector test.
sl@0
   210
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   211
//!				2. Open the driver connection
sl@0
   212
//!				3. Select the card
sl@0
   213
//!				4. Write to sector 12 of the card
sl@0
   214
//!				5. Write to sector 13 of the card
sl@0
   215
//!				6. Read from sector 12 of the card and verify contents
sl@0
   216
//!				7. Read from sector 13 of the card and verify contents
sl@0
   217
//!				8. Read from sector 13 of the card and verify contents
sl@0
   218
//!				9. Destroy the object
sl@0
   219
//! @SYMTestStatus		Implemented
sl@0
   220
//! @SYMTestPriority		high
sl@0
   221
//! @SYMTestExpectedResults	All sectors read correctly with no errors.
sl@0
   222
//! @SYMTestType		CIT
sl@0
   223
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   224
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   225
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   226
		COMMAND		mmcsdsession1	NewL
sl@0
   227
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0006-001-DriverOpen_command01
sl@0
   228
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0006-001-NewL_command02
sl@0
   229
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0006-001-CardP_command03
sl@0
   230
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0006-001-WriteSector_command04
sl@0
   231
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0006-001-WriteSector_command05
sl@0
   232
		OUTSTANDING
sl@0
   233
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0006-001-ReadSector_command06
sl@0
   234
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0006-001-ReadSector_command07
sl@0
   235
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0006-001-ReadSector_command08
sl@0
   236
		OUTSTANDING
sl@0
   237
		COMMAND		mmcsdsession1	Close
sl@0
   238
		COMMAND		mmcsdstack1	~
sl@0
   239
		COMMAND		mmcsdsession1	~
sl@0
   240
	END_TEST_BLOCK
sl@0
   241
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0006
sl@0
   242
sl@0
   243
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0007
sl@0
   244
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0007
sl@0
   245
//! @SYMAPI			DMMCStack::AdjustPartialRead(const TMMCard {ptr}, TUint32, TUint32, TUint32{ptr}, TUint32 {ptr});
sl@0
   246
//! @SYMAuthor			Matt Flowers
sl@0
   247
//! @SYMCreationDate		28/04/2008
sl@0
   248
//! @SYMTestCaseDesc		Adjust Partial Read Test - Get minimum range that must be read off card.
sl@0
   249
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   250
//!				2. Open the driver connection
sl@0
   251
//!				3. Select the card
sl@0
   252
//!				4. Get minimum range that must be read off card
sl@0
   253
//!				5. Get minimum range that must be read off card
sl@0
   254
//!				6. Get minimum range that must be read off card
sl@0
   255
//!				7. Get minimum range that must be read off card
sl@0
   256
//!				8. Destroy the object
sl@0
   257
//! @SYMTestStatus		Implemented
sl@0
   258
//! @SYMTestPriority		high
sl@0
   259
//! @SYMTestExpectedResults	The minimum range that must be read off card is correctly returned with no errors.
sl@0
   260
//! @SYMTestType		CIT
sl@0
   261
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   262
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   263
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   264
		COMMAND		mmcsdsession1	NewL
sl@0
   265
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0007-001-DriverOpen_command01
sl@0
   266
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0007-001-NewL_command02
sl@0
   267
		COMMAND 	mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0007-001-CardP_command03
sl@0
   268
		COMMAND 	mmcsdstack1 	AdjustPartialRead	BASE-BSP-MMC-STACK-DRIVER-0007-001-AdjustPartialRead_command04
sl@0
   269
		COMMAND 	mmcsdstack1 	AdjustPartialRead	BASE-BSP-MMC-STACK-DRIVER-0007-001-AdjustPartialRead_command05
sl@0
   270
		COMMAND 	mmcsdstack1 	AdjustPartialRead	BASE-BSP-MMC-STACK-DRIVER-0007-001-AdjustPartialRead_command06
sl@0
   271
		COMMAND 	mmcsdstack1 	AdjustPartialRead	BASE-BSP-MMC-STACK-DRIVER-0007-001-AdjustPartialRead_command07
sl@0
   272
		COMMAND		mmcsdsession1	Close
sl@0
   273
		COMMAND		mmcsdstack1	~
sl@0
   274
		COMMAND		mmcsdsession1	~
sl@0
   275
	END_TEST_BLOCK
sl@0
   276
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0007
sl@0
   277
sl@0
   278
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0008
sl@0
   279
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0008
sl@0
   280
//! @SYMAPI			DMMCStack::HasSessionsQueued();
sl@0
   281
//! @SYMAuthor			James Mechen
sl@0
   282
//! @SYMCreationDate		06/05/2008
sl@0
   283
//! @SYMTestCaseDesc		Has Sessions Queued Test - Get whether any of the session queues have submitted session engaged.
sl@0
   284
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   285
//!				2. Open the driver connection
sl@0
   286
//!				3. Get whether any of the session queues have submitted session engaged
sl@0
   287
//!				4. Select the card
sl@0
   288
//!				5. Write to sector 7 of the card
sl@0
   289
//!				6. Get whether any of the session queues have submitted session engaged
sl@0
   290
//!				7. Destroy the object
sl@0
   291
//! @SYMTestStatus		Implemented
sl@0
   292
//! @SYMTestPriority		high
sl@0
   293
//! @SYMTestExpectedResults	Sessions Queued status correctly returned with no errors.
sl@0
   294
//! @SYMTestType		CIT
sl@0
   295
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   296
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   297
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   298
		COMMAND		mmcsdsession1	NewL
sl@0
   299
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0008-001-DriverOpen_command01
sl@0
   300
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0008-001-NewL_command02
sl@0
   301
		COMMAND		mmcsdstack1 	HasSessionsQueued	BASE-BSP-MMC-STACK-DRIVER-0008-001-HasSessionsQueued_command03
sl@0
   302
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0008-001-CardP_command04
sl@0
   303
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0008-001-WriteSector_command05
sl@0
   304
		COMMAND		mmcsdstack1 	HasSessionsQueued	BASE-BSP-MMC-STACK-DRIVER-0008-001-HasSessionsQueued_command06
sl@0
   305
		OUTSTANDING
sl@0
   306
		COMMAND		mmcsdsession1	Close
sl@0
   307
		COMMAND		mmcsdstack1	~
sl@0
   308
		COMMAND		mmcsdsession1	~
sl@0
   309
	END_TEST_BLOCK
sl@0
   310
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0008
sl@0
   311
sl@0
   312
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0009
sl@0
   313
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0009
sl@0
   314
//! @SYMAPI			DMMCStack::EffectiveModes();
sl@0
   315
//! @SYMAuthor			Matt Flowers
sl@0
   316
//! @SYMCreationDate		28/06/2008
sl@0
   317
//! @SYMTestCaseDesc		Effective modes tests
sl@0
   318
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   319
//!				2. Open the driver connection
sl@0
   320
//!				3. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   321
//!				4. Remove mode
sl@0
   322
//!				5. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   323
//!				6. Set Bus Clock mode
sl@0
   324
//!				7. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   325
//!				8. Set Busy TimeOut mode
sl@0
   326
//!				9. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   327
//!				10. Set CRC Retries mode
sl@0
   328
//!				11. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   329
//!				12. Set Data TimeOut mode
sl@0
   330
//!				13. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   331
//!				14. Set mode
sl@0
   332
//!				15. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   333
//!				16. Set Op Cond Busy Timeout mode
sl@0
   334
//!				17. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   335
//!				18. Set Poll Attempts mode
sl@0
   336
//!				19. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   337
//!				20. Set Response TimeOut In Ticks mode
sl@0
   338
//!				21. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   339
//!				22. Set Ticks Clock In mode
sl@0
   340
//!				23. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   341
//!				24. Set Ticks Clock Out mode
sl@0
   342
//!				25. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   343
//!				26. Set TimeOut Retries mode
sl@0
   344
//!				27. Get the modes which the DMMCStack object serving this session will consider as effective
sl@0
   345
//!				28. Destroy the object
sl@0
   346
//! @SYMTestStatus		Implemented
sl@0
   347
//! @SYMTestPriority		high
sl@0
   348
//! @SYMTestExpectedResults	EffectiveModes altered correctly with no errors
sl@0
   349
//! @SYMTestType		CIT
sl@0
   350
	START_TEST_BLOCK	100		T_mmcsd					\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   351
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   352
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   353
		COMMAND		mmcsdsession1	NewL
sl@0
   354
		COMMAND		mmcsdsession1	DriverOpen				BASE-BSP-MMC-STACK-DRIVER-0009-001-DriverOpen_command01
sl@0
   355
		COMMAND		mmcsdstack1	NewL					BASE-BSP-MMC-STACK-DRIVER-0009-001-NewL_command02
sl@0
   356
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command03
sl@0
   357
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command04
sl@0
   358
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command05
sl@0
   359
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command06
sl@0
   360
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command07
sl@0
   361
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command08
sl@0
   362
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command09
sl@0
   363
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command10
sl@0
   364
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command11
sl@0
   365
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command12
sl@0
   366
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command13
sl@0
   367
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command14
sl@0
   368
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command15
sl@0
   369
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command16
sl@0
   370
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command17
sl@0
   371
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command18
sl@0
   372
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command19
sl@0
   373
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command20
sl@0
   374
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command21
sl@0
   375
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command22
sl@0
   376
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command23
sl@0
   377
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command24
sl@0
   378
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command25
sl@0
   379
		COMMAND		mmcsdstack1	AlterEffectiveModes			BASE-BSP-MMC-STACK-DRIVER-0009-001-AlterEffectiveModes_command26
sl@0
   380
		COMMAND		mmcsdstack1	EffectiveModes				BASE-BSP-MMC-STACK-DRIVER-0009-001-EffectiveModes_command27
sl@0
   381
		COMMAND		mmcsdsession1	Close
sl@0
   382
		COMMAND		mmcsdstack1	~
sl@0
   383
		COMMAND		mmcsdsession1	~
sl@0
   384
	END_TEST_BLOCK
sl@0
   385
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0009
sl@0
   386
sl@0
   387
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0010
sl@0
   388
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0010
sl@0
   389
//! @SYMAPI			DMMCStack::CardP();
sl@0
   390
//! @SYMAuthor			M Flowers
sl@0
   391
//! @SYMCreationDate		06/05/2008
sl@0
   392
//! @SYMTestCaseDesc		Negative test for select card - calls DMMCStackCardP with an invalid card number
sl@0
   393
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   394
//!				2. Open the driver connection
sl@0
   395
//!				3. Select an invalid card
sl@0
   396
//!				4. Write to a sector of the card
sl@0
   397
//!				5. Select an invalid card
sl@0
   398
//!				6. Write to a sector of the card
sl@0
   399
//!				7. Destroy the object
sl@0
   400
//! @SYMTestStatus		Implemented
sl@0
   401
//! @SYMTestPriority		high
sl@0
   402
//! @SYMTestExpectedResults	CardP returns NULL and WriteSector returns KErrNotReady
sl@0
   403
//! @SYMTestType		CIT
sl@0
   404
	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   405
		CREATE_OBJECT		MMCSDSession	mmcsdsession1
sl@0
   406
		CREATE_OBJECT		MMCSDStack	mmcsdstack1
sl@0
   407
		COMMAND			mmcsdsession1	NewL
sl@0
   408
		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0010-001-DriverOpen_command01
sl@0
   409
		COMMAND			mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0010-001-NewL_command02
sl@0
   410
		COMMAND			mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0010-001-CardP_command03
sl@0
   411
		COMMAND	!AsyncError=-18	mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0010-001-WriteSector_command04
sl@0
   412
		OUTSTANDING
sl@0
   413
		COMMAND 		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0010-001-CardP_command05
sl@0
   414
		COMMAND	!AsyncError=-18	mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0010-001-WriteSector_command06
sl@0
   415
		OUTSTANDING
sl@0
   416
		COMMAND			mmcsdsession1	Close
sl@0
   417
		COMMAND			mmcsdstack1	~
sl@0
   418
		COMMAND			mmcsdsession1	~
sl@0
   419
	END_TEST_BLOCK
sl@0
   420
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0010
sl@0
   421
sl@0
   422
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0011
sl@0
   423
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0011
sl@0
   424
//! @SYMAPI			TMMCard::CSD();
sl@0
   425
//! @SYMAuthor			James Mechen
sl@0
   426
//! @SYMCreationDate		15/07/2008
sl@0
   427
//! @SYMTestCaseDesc		CSD Test - Read the CSD
sl@0
   428
//! @SYMTestActions    		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   429
//!				2. Open the driver connection
sl@0
   430
//!				3. Select the card
sl@0
   431
//!				4. Read the CSD
sl@0
   432
//!				7. Destroy the object
sl@0
   433
//! @SYMTestStatus		Implemented
sl@0
   434
//! @SYMTestPriority		high
sl@0
   435
//! @SYMTestExpectedResults	CSD correctly returned with no errors
sl@0
   436
//! @SYMTestType		CIT
sl@0
   437
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   438
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   439
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   440
		COMMAND		mmcsdsession1	NewL
sl@0
   441
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0011-001-DriverOpen_command01
sl@0
   442
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0011-001-NewL_command02
sl@0
   443
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0011-001-CardP_command03
sl@0
   444
		COMMAND		mmcsdstack1	ReadCSD
sl@0
   445
		COMMAND		mmcsdsession1	Close
sl@0
   446
		COMMAND		mmcsdstack1	~
sl@0
   447
		COMMAND		mmcsdsession1	~
sl@0
   448
	END_TEST_BLOCK
sl@0
   449
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0011
sl@0
   450
sl@0
   451
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0012
sl@0
   452
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0012
sl@0
   453
//! @SYMAPI			DMMCSession::SetupCIMReadBlock(TMMCArgument, TUint32, TUint8 {ptr});
sl@0
   454
//! @SYMAuthor			James Mechen
sl@0
   455
//! @SYMCreationDate		15/07/2008
sl@0
   456
//! @SYMTestCaseDesc		Multiple read/write sector test.
sl@0
   457
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   458
//!				2. Open the driver connection
sl@0
   459
//!				3. Select the card
sl@0
   460
//!				4. Write to a sector of the card
sl@0
   461
//!				5. Read from a sector of the card
sl@0
   462
//!				6. Write to a sector of the card
sl@0
   463
//!				7. Read from a sector of the card
sl@0
   464
//!				8. Write to a sector of the card
sl@0
   465
//!				9. Read from a sector of the card
sl@0
   466
//!				10. Destroy the object
sl@0
   467
//! @SYMTestStatus		Implemented
sl@0
   468
//! @SYMTestPriority		high
sl@0
   469
//! @SYMTestExpectedResults	Sectors correctly written and read with no errors.
sl@0
   470
//! @SYMTestType		CIT
sl@0
   471
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   472
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   473
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   474
		COMMAND		mmcsdsession1	NewL
sl@0
   475
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0012-001-DriverOpen_command01
sl@0
   476
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0012-001-NewL_command02
sl@0
   477
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0012-001-CardP_command03
sl@0
   478
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0012-001-WriteSector_command04
sl@0
   479
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0012-001-ReadSector_command05
sl@0
   480
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0012-001-WriteSector_command06
sl@0
   481
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0012-001-ReadSector_command07
sl@0
   482
		COMMAND		mmcsdstack1	WriteSector		BASE-BSP-MMC-STACK-DRIVER-0012-001-WriteSector_command08
sl@0
   483
		COMMAND		mmcsdstack1	ReadSector		BASE-BSP-MMC-STACK-DRIVER-0012-001-ReadSector_command09
sl@0
   484
		OUTSTANDING
sl@0
   485
		COMMAND		mmcsdsession1	Close
sl@0
   486
		COMMAND		mmcsdstack1	~
sl@0
   487
		COMMAND		mmcsdsession1	~
sl@0
   488
	END_TEST_BLOCK
sl@0
   489
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0012
sl@0
   490
sl@0
   491
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0013
sl@0
   492
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0013
sl@0
   493
//! @SYMAPI			TMMCard::ExtendedCSD();
sl@0
   494
//! @SYMAuthor			James Mechen
sl@0
   495
//! @SYMCreationDate		15/07/2008
sl@0
   496
//! @SYMTestCaseDesc		Extended CSD Test - Read the Extended CSD
sl@0
   497
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   498
//!				2. Open the driver connection
sl@0
   499
//!				3. Select the card
sl@0
   500
//!				4. Read the Extended CSD
sl@0
   501
//!				7. Destroy the object
sl@0
   502
//! @SYMTestStatus		Implemented
sl@0
   503
//! @SYMTestPriority		high
sl@0
   504
//! @SYMTestExpectedResults	CSD correctly returned with no errors
sl@0
   505
//! @SYMTestType		CIT
sl@0
   506
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   507
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   508
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   509
		COMMAND		mmcsdsession1	NewL
sl@0
   510
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0013-001-DriverOpen_command01
sl@0
   511
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0013-001-NewL_command02
sl@0
   512
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0013-001-CardP_command03
sl@0
   513
		COMMAND		mmcsdstack1	ReadExtCSD
sl@0
   514
		COMMAND		mmcsdsession1	Close
sl@0
   515
		COMMAND		mmcsdstack1	~
sl@0
   516
		COMMAND		mmcsdsession1	~
sl@0
   517
	END_TEST_BLOCK
sl@0
   518
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0013
sl@0
   519
sl@0
   520
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0014
sl@0
   521
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0014
sl@0
   522
//! @SYMAPI			DMMCStack::CardP(TUint);
sl@0
   523
//! @SYMAuthor			Matt Flowers
sl@0
   524
//! @SYMCreationDate		30/04/2008
sl@0
   525
//! @SYMTestCaseDesc		Card Pointer Test - Get pointer to a card.
sl@0
   526
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   527
//!				2. Open the driver connection
sl@0
   528
//!				3. Get pointer to card
sl@0
   529
//!				4. Get card info
sl@0
   530
//!				5. Destroy the object
sl@0
   531
//! @SYMTestStatus		Implemented
sl@0
   532
//! @SYMTestPriority		high
sl@0
   533
//! @SYMTestExpectedResults	Pointer to card correctly returned with no errors.
sl@0
   534
//! @SYMTestType		CIT
sl@0
   535
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   536
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   537
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   538
		COMMAND		mmcsdsession1	NewL
sl@0
   539
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0014-001-DriverOpen_command01
sl@0
   540
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0014-001-NewL_command02
sl@0
   541
		COMMAND 	mmcsdstack1 	CardP			BASE-BSP-MMC-STACK-DRIVER-0014-001-CardP_command03
sl@0
   542
		COMMAND 	mmcsdstack1 	CardInfo		BASE-BSP-MMC-STACK-DRIVER-0014-001-CardInfo_command04
sl@0
   543
		COMMAND 	mmcsdstack1 	CardIsPresent		BASE-BSP-MMC-STACK-DRIVER-0014-001-CardIsPresent_command05
sl@0
   544
		COMMAND 	mmcsdstack1 	CardIsReady		BASE-BSP-MMC-STACK-DRIVER-0014-001-CardIsReady_command06
sl@0
   545
		COMMAND 	mmcsdstack1 	CardIsLocked		BASE-BSP-MMC-STACK-DRIVER-0014-001-CardIsLocked_command07
sl@0
   546
		COMMAND		mmcsdsession1	Close
sl@0
   547
		COMMAND		mmcsdstack1	~
sl@0
   548
		COMMAND		mmcsdsession1	~
sl@0
   549
	END_TEST_BLOCK
sl@0
   550
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0014
sl@0
   551
sl@0
   552
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0015
sl@0
   553
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0015
sl@0
   554
//! @SYMAPI			DMMCStack::CardP(TUint);
sl@0
   555
//! @SYMAuthor			James Mechen
sl@0
   556
//! @SYMCreationDate		25/07/2008
sl@0
   557
//! @SYMTestCaseDesc		Card Pointer Test - Get pointer to a card using invalid card numbers.
sl@0
   558
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   559
//!				2. Open the driver connection
sl@0
   560
//!				3. Get pointer to card with correct card number
sl@0
   561
//!				4. Get pointer to card with card number -1
sl@0
   562
//!				5. Get pointer to card with card number 5
sl@0
   563
//!				6. Get pointer to card with correct card number
sl@0
   564
//!				7. Destroy the object
sl@0
   565
//! @SYMTestStatus		Implemented
sl@0
   566
//! @SYMTestPriority		high
sl@0
   567
//! @SYMTestExpectedResults	Pointer to card correctly returned with no errors.
sl@0
   568
//! @SYMTestType		CIT
sl@0
   569
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   570
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   571
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   572
		COMMAND		mmcsdsession1	NewL
sl@0
   573
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0015-001-DriverOpen_command01
sl@0
   574
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0015-001-NewL_command02
sl@0
   575
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0015-001-CardP_command03
sl@0
   576
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0015-001-CardP_command04
sl@0
   577
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0015-001-CardP_command05
sl@0
   578
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0015-001-CardP_command06
sl@0
   579
		COMMAND		mmcsdsession1	Close
sl@0
   580
		COMMAND		mmcsdstack1	~
sl@0
   581
		COMMAND		mmcsdsession1	~
sl@0
   582
	END_TEST_BLOCK
sl@0
   583
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0015
sl@0
   584
sl@0
   585
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0016
sl@0
   586
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0016
sl@0
   587
//! @SYMAPI			DMMCStack::MaxCardsInStack();
sl@0
   588
//! @SYMAuthor			Matt Flowers
sl@0
   589
//! @SYMCreationDate		02/05/2008
sl@0
   590
//! @SYMTestCaseDesc		Max Cards In Stack Test - Get the max number of MultiMediaCards which could ever be present.
sl@0
   591
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   592
//!				2. Open the driver connection
sl@0
   593
//!				3. Get the max number of MultiMediaCards which could ever be present
sl@0
   594
//!				4. Destroy the object
sl@0
   595
//! @SYMTestStatus		Implemented
sl@0
   596
//! @SYMTestPriority		high
sl@0
   597
//! @SYMTestExpectedResults	Correct max number of MMC cards returned with no errors.
sl@0
   598
//! @SYMTestType		CIT
sl@0
   599
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   600
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   601
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   602
		COMMAND		mmcsdsession1	NewL
sl@0
   603
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0016-001-DriverOpen_command01
sl@0
   604
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0016-001-NewL_command02
sl@0
   605
		COMMAND		mmcsdstack1	MaxCardsInStack		BASE-BSP-MMC-STACK-DRIVER-0016-001-MaxCardsInStack_command03
sl@0
   606
		COMMAND		mmcsdsession1	Close
sl@0
   607
		COMMAND		mmcsdstack1	~
sl@0
   608
		COMMAND		mmcsdsession1	~
sl@0
   609
	END_TEST_BLOCK
sl@0
   610
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0016
sl@0
   611
sl@0
   612
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0017
sl@0
   613
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0017
sl@0
   614
//! @SYMAPI			DMMCStack::MMCSocket();
sl@0
   615
//! @SYMAuthor			Matt Flowers
sl@0
   616
//! @SYMCreationDate		02/05/2008
sl@0
   617
//! @SYMTestCaseDesc		Socket Pointer Test - Get pointer to associated socket.
sl@0
   618
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   619
//!				2. Open the driver connection
sl@0
   620
//!				3. Get pointer to associated socket
sl@0
   621
//!				4. Destroy the object
sl@0
   622
//! @SYMTestStatus		Implemented
sl@0
   623
//! @SYMTestPriority		high
sl@0
   624
//! @SYMTestExpectedResults	Pointer to socket correctly returned with no errors.
sl@0
   625
//! @SYMTestType		CIT
sl@0
   626
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   627
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   628
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   629
		CREATE_OBJECT	MMCSDSocket	mmcsdsocket1
sl@0
   630
		COMMAND		mmcsdsession1	NewL
sl@0
   631
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0017-001-DriverOpen_command01
sl@0
   632
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0017-001-NewL_command02
sl@0
   633
		COMMAND		mmcsdsocket1	NewL			BASE-BSP-MMC-STACK-DRIVER-0017-001-NewL_command02
sl@0
   634
		COMMAND		mmcsdstack1	MMCSocket		BASE-BSP-MMC-STACK-DRIVER-0017-001-Socket_command03
sl@0
   635
		COMMAND		mmcsdsession1	Close
sl@0
   636
		COMMAND		mmcsdsocket1	~
sl@0
   637
		COMMAND		mmcsdstack1	~
sl@0
   638
		COMMAND		mmcsdsession1	~
sl@0
   639
	END_TEST_BLOCK
sl@0
   640
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0017
sl@0
   641
sl@0
   642
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0018
sl@0
   643
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0018
sl@0
   644
//! @SYMAPI			DMMCStack::InitStackInProgress();
sl@0
   645
//! @SYMAuthor			Matt Flowers
sl@0
   646
//! @SYMCreationDate		06/05/2008
sl@0
   647
//! @SYMTestCaseDesc		Init Stack In Progress Test - Get initialisation state of the stack.
sl@0
   648
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   649
//!				2. Open the driver connection
sl@0
   650
//!				3. Get initialisation state of the stack
sl@0
   651
//!				4. Destroy the object
sl@0
   652
//! @SYMTestStatus		Implemented
sl@0
   653
//! @SYMTestPriority		high
sl@0
   654
//! @SYMTestExpectedResults	Initialisation state of the stack correctly returned with no errors.
sl@0
   655
//! @SYMTestType		CIT
sl@0
   656
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   657
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   658
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   659
		COMMAND		mmcsdsession1	NewL
sl@0
   660
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0018-001-DriverOpen_command01
sl@0
   661
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0018-001-NewL_command02
sl@0
   662
		COMMAND		mmcsdstack1	InitStackInProgress	BASE-BSP-MMC-STACK-DRIVER-0018-001-InitStackInProgress_command03
sl@0
   663
		COMMAND		mmcsdsession1	Close
sl@0
   664
		COMMAND		mmcsdstack1	~
sl@0
   665
		COMMAND		mmcsdsession1	~
sl@0
   666
	END_TEST_BLOCK
sl@0
   667
END_TESTCASE 			BASE-BSP-MMC-STACK-DRIVER-0018
sl@0
   668
sl@0
   669
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0019
sl@0
   670
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0019
sl@0
   671
//! @SYMAPI			DMMCStack::BufferInfo(TUint8 {ptr ref}, TInt {ref}, TInt {ref});
sl@0
   672
//! @SYMAuthor			Matt Flowers
sl@0
   673
//! @SYMCreationDate		30/04/2008
sl@0
   674
//! @SYMTestCaseDesc		Buffer Info Test - Retrieve the DMA-capable buffer start and length and calculate the minor buffer length.
sl@0
   675
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   676
//!				2. Open the driver connection
sl@0
   677
//!				3. Retrieve the DMA-capable buffer start and length and calculate the minor buffer length
sl@0
   678
//!				4. Destroy the object
sl@0
   679
//! @SYMTestStatus		Implemented
sl@0
   680
//! @SYMTestPriority		high
sl@0
   681
//! @SYMTestExpectedResults	Buffer info correctly returned with no errors.
sl@0
   682
//! @SYMTestType		CIT
sl@0
   683
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   684
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   685
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   686
		COMMAND		mmcsdsession1	NewL
sl@0
   687
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0019-001-DriverOpen_command01
sl@0
   688
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0019-001-NewL_command02
sl@0
   689
		COMMAND		mmcsdstack1	BufferInfo		BASE-BSP-MMC-STACK-DRIVER-0019-001-BufferInfo_command03
sl@0
   690
		COMMAND		mmcsdsession1	Close
sl@0
   691
		COMMAND		mmcsdstack1	~
sl@0
   692
		COMMAND		mmcsdsession1	~
sl@0
   693
	END_TEST_BLOCK
sl@0
   694
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0019
sl@0
   695
sl@0
   696
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0020
sl@0
   697
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0020
sl@0
   698
//! @SYMAPI			DMMCStack::ProgramPeriodInMilliSeconds();
sl@0
   699
//! @SYMAuthor			Matt Flowers
sl@0
   700
//! @SYMCreationDate		06/05/2008
sl@0
   701
//! @SYMTestCaseDesc		Poll timer period Test - Get the poll timer period.
sl@0
   702
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   703
//!				2. Open the driver connection
sl@0
   704
//!				3. Get the poll timer period
sl@0
   705
//!				4. Destroy the object
sl@0
   706
//! @SYMTestStatus		Implemented
sl@0
   707
//! @SYMTestPriority		high
sl@0
   708
//! @SYMTestExpectedResults	The poll timer period is correctly returned with no errors.
sl@0
   709
//! @SYMTestType		CIT
sl@0
   710
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   711
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   712
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   713
		COMMAND		mmcsdsession1	NewL
sl@0
   714
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0020-001-DriverOpen_command01
sl@0
   715
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0020-001-NewL_command02
sl@0
   716
		COMMAND 	mmcsdstack1 	ProgramPeriodMs		BASE-BSP-MMC-STACK-DRIVER-0020-001-ProgramPeriodMs_command03
sl@0
   717
		COMMAND		mmcsdsession1	Close
sl@0
   718
		COMMAND		mmcsdstack1	~
sl@0
   719
		COMMAND		mmcsdsession1	~
sl@0
   720
	END_TEST_BLOCK
sl@0
   721
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0020
sl@0
   722
sl@0
   723
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0021
sl@0
   724
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0021
sl@0
   725
//! @SYMAPI			DMMCStack:: GetBufferInfo(TUint8 {ptr ptr}, TInt {ptr});
sl@0
   726
//! @SYMAuthor			James Mechen
sl@0
   727
//! @SYMCreationDate		17/04/2008
sl@0
   728
//! @SYMTestCaseDesc		Get Buffer Info Test - Get details of buffer allocated by socket for data transfer operations.
sl@0
   729
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   730
//!				2. Open the driver connection
sl@0
   731
//!				3. Get details of buffer allocated by socket for data transfer operations
sl@0
   732
//!				4. Destroy the object
sl@0
   733
//! @SYMTestStatus		Implemented
sl@0
   734
//! @SYMTestPriority		high
sl@0
   735
//! @SYMTestExpectedResults	Details of buffer correctly returned with no errors.
sl@0
   736
//! @SYMTestType		CIT
sl@0
   737
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   738
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   739
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   740
		COMMAND		mmcsdsession1	NewL
sl@0
   741
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0021-001-DriverOpen_command01
sl@0
   742
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0021-001-NewL_command02
sl@0
   743
		COMMAND		mmcsdstack1	GetBufferInfo		BASE-BSP-MMC-STACK-DRIVER-0021-001-GetBufferInfo_command03
sl@0
   744
		COMMAND		mmcsdsession1	Close
sl@0
   745
		COMMAND		mmcsdstack1	~
sl@0
   746
		COMMAND		mmcsdsession1	~
sl@0
   747
	END_TEST_BLOCK
sl@0
   748
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0021
sl@0
   749
sl@0
   750
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0022
sl@0
   751
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0022
sl@0
   752
//! @SYMAPI			DMMCStack::MachineInfo(TMMCMachineInfo {ref});
sl@0
   753
//! @SYMAuthor			Matt Flowers
sl@0
   754
//! @SYMCreationDate		06/05/2008
sl@0
   755
//! @SYMTestCaseDesc		Machine Info Test - Get the platform specific configuration information.
sl@0
   756
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   757
//!				2. Open the driver connection
sl@0
   758
//!				3. Get the platform specific configuration information
sl@0
   759
//!				4. Destroy the object
sl@0
   760
//! @SYMTestStatus		Implemented
sl@0
   761
//! @SYMTestPriority		high
sl@0
   762
//! @SYMTestExpectedResults	Platform specific configuration information correctly returned with no errors.
sl@0
   763
//! @SYMTestType		CIT
sl@0
   764
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   765
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   766
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   767
		COMMAND		mmcsdsession1	NewL
sl@0
   768
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0022-001-DriverOpen_command01
sl@0
   769
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0022-001-NewL_command02
sl@0
   770
		COMMAND		mmcsdstack1	MachineInfo		BASE-BSP-MMC-STACK-DRIVER-0022-001-MachineInfo_command03
sl@0
   771
		COMMAND		mmcsdsession1	Close
sl@0
   772
		COMMAND		mmcsdstack1	~
sl@0
   773
		COMMAND		mmcsdsession1	~
sl@0
   774
	END_TEST_BLOCK
sl@0
   775
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0022
sl@0
   776
sl@0
   777
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0023
sl@0
   778
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0023
sl@0
   779
//! @SYMAPI			DMMCStack::DemandPagingInfo(TDemandPagingInfo {ref});
sl@0
   780
//! @SYMAuthor			James Mechen
sl@0
   781
//! @SYMCreationDate		18/04/2008
sl@0
   782
//! @SYMTestCaseDesc		Demand Paging Info Test - Demand paging info.
sl@0
   783
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   784
//!				2. Open the driver connection
sl@0
   785
//!				3. Demand paging info
sl@0
   786
//!				4. Destroy the object
sl@0
   787
//! @SYMTestStatus		Implemented
sl@0
   788
//! @SYMTestPriority		high
sl@0
   789
//! @SYMTestExpectedResults	Paging info obtained with KErrNotSupported.
sl@0
   790
//! @SYMTestType		CIT
sl@0
   791
	START_TEST_BLOCK		100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   792
		CREATE_OBJECT		MMCSDSession	mmcsdsession1
sl@0
   793
		CREATE_OBJECT		MMCSDStack	mmcsdstack1
sl@0
   794
		COMMAND			mmcsdsession1	NewL
sl@0
   795
		COMMAND			mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0023-001-DriverOpen_command01
sl@0
   796
		COMMAND			mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0023-001-NewL_command02
sl@0
   797
		COMMAND	!Error=-5	mmcsdstack1	DemandPagingInfo
sl@0
   798
		COMMAND			mmcsdsession1	Close
sl@0
   799
		COMMAND			mmcsdstack1	~
sl@0
   800
		COMMAND			mmcsdsession1	~
sl@0
   801
	END_TEST_BLOCK
sl@0
   802
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0023
sl@0
   803
sl@0
   804
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0024
sl@0
   805
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0024
sl@0
   806
//! @SYMAPI			DMMCStack::AllocSession(const TMMCCallBack {ref});
sl@0
   807
//! @SYMAuthor			Matt Flowers
sl@0
   808
//! @SYMCreationDate		29/04/2008
sl@0
   809
//! @SYMTestCaseDesc		Allocate Session Test
sl@0
   810
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   811
//!				2. Open the driver connection
sl@0
   812
//!				3. Allocate Session
sl@0
   813
//!				4. Destroy the object
sl@0
   814
//! @SYMTestStatus		Implemented
sl@0
   815
//! @SYMTestPriority		high
sl@0
   816
//! @SYMTestExpectedResults	Session allocated with no errors.
sl@0
   817
//! @SYMTestType		CIT
sl@0
   818
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   819
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   820
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   821
		COMMAND		mmcsdsession1	NewL
sl@0
   822
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0024-001-DriverOpen_command01
sl@0
   823
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0024-001-NewL_command02
sl@0
   824
		COMMAND		mmcsdstack1	AllocSession
sl@0
   825
		COMMAND		mmcsdsession1	Close
sl@0
   826
		COMMAND		mmcsdstack1	~
sl@0
   827
		COMMAND		mmcsdsession1	~
sl@0
   828
	END_TEST_BLOCK
sl@0
   829
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0024
sl@0
   830
sl@0
   831
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0025
sl@0
   832
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0025
sl@0
   833
//! @SYMAPI			DMMCStack::AdjustPartialRead(const TMMCard {ptr}, TUint32, TUint32, TUint32{ptr}, TUint32 {ptr});
sl@0
   834
//! @SYMAuthor			James Mechen
sl@0
   835
//! @SYMCreationDate		28/07/2008
sl@0
   836
//! @SYMTestCaseDesc		Adjust Partial Read Test - Get minimum range that must be read off card using invalid inputs.
sl@0
   837
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   838
//!				2. Open the driver connection
sl@0
   839
//!				3. Select the card
sl@0
   840
//!				4. Get minimum range that must be read off card, where aStart=0xFFFFFFFE and aEnd=0xFFFFFFFF
sl@0
   841
//!				8. Destroy the object
sl@0
   842
//! @SYMTestStatus		Implemented
sl@0
   843
//! @SYMTestPriority		high
sl@0
   844
//! @SYMTestExpectedResults	The minimum range that must be read off card is correctly returned with no errors.
sl@0
   845
//! @SYMTestType		CIT
sl@0
   846
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   847
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   848
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   849
		COMMAND		mmcsdsession1	NewL
sl@0
   850
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0025-001-DriverOpen_command01
sl@0
   851
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0025-001-NewL_command02
sl@0
   852
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0025-001-CardP_command03
sl@0
   853
		COMMAND		mmcsdstack1	AdjustPartialRead	BASE-BSP-MMC-STACK-DRIVER-0025-001-AdjustPartialRead_command04
sl@0
   854
		COMMAND		mmcsdsession1	Close
sl@0
   855
		COMMAND		mmcsdstack1	~
sl@0
   856
		COMMAND		mmcsdsession1	~
sl@0
   857
	END_TEST_BLOCK
sl@0
   858
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0025
sl@0
   859
sl@0
   860
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0026
sl@0
   861
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0026
sl@0
   862
//! @SYMAPI			DMMCStack::AdjustPartialRead(const TMMCard {ptr}, TUint32, TUint32, TUint32{ptr}, TUint32 {ptr});
sl@0
   863
//! @SYMAuthor			James Mechen
sl@0
   864
//! @SYMCreationDate		28/07/2008
sl@0
   865
//! @SYMTestCaseDesc		Adjust Partial Read Test - Get minimum range that must be read off card using invalid inputs.
sl@0
   866
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   867
//!				2. Open the driver connection
sl@0
   868
//!				3. Select the card
sl@0
   869
//!				4. Get minimum range that must be read off card, where aStart=0 and aEnd=0xFFFFFFFF
sl@0
   870
//!				8. Destroy the object
sl@0
   871
//! @SYMTestStatus		Implemented
sl@0
   872
//! @SYMTestPriority		high
sl@0
   873
//! @SYMTestExpectedResults	The minimum range that must be read off card is correctly returned with no errors.
sl@0
   874
//! @SYMTestType		CIT
sl@0
   875
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   876
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   877
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   878
		COMMAND		mmcsdsession1	NewL
sl@0
   879
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0026-001-DriverOpen_command01
sl@0
   880
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0026-001-NewL_command02
sl@0
   881
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0026-001-CardP_command03
sl@0
   882
		COMMAND		mmcsdstack1	AdjustPartialRead	BASE-BSP-MMC-STACK-DRIVER-0026-001-AdjustPartialRead_command04
sl@0
   883
		COMMAND		mmcsdsession1	Close
sl@0
   884
		COMMAND		mmcsdstack1	~
sl@0
   885
		COMMAND		mmcsdsession1	~
sl@0
   886
	END_TEST_BLOCK
sl@0
   887
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0026
sl@0
   888
sl@0
   889
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0027
sl@0
   890
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0027
sl@0
   891
//! @SYMAPI			DMMCStack::AdjustPartialRead(const TMMCard {ptr}, TUint32, TUint32, TUint32{ptr}, TUint32 {ptr});
sl@0
   892
//! @SYMAuthor			James Mechen
sl@0
   893
//! @SYMCreationDate		28/07/2008
sl@0
   894
//! @SYMTestCaseDesc		Adjust Partial Read Test - Get minimum range that must be read off card using invalid inputs.
sl@0
   895
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   896
//!				2. Open the driver connection
sl@0
   897
//!				3. Select the card
sl@0
   898
//!				4. Get minimum range that must be read off card, where where aStart=aEnd
sl@0
   899
//!				8. Destroy the object
sl@0
   900
//! @SYMTestStatus		Implemented
sl@0
   901
//! @SYMTestPriority		high
sl@0
   902
//! @SYMTestExpectedResults	The minimum range that must be read off card is correctly returned with no errors.
sl@0
   903
//! @SYMTestType		CIT
sl@0
   904
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   905
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   906
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   907
		COMMAND		mmcsdsession1	NewL
sl@0
   908
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0027-001-DriverOpen_command01
sl@0
   909
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0027-001-NewL_command02
sl@0
   910
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0027-001-CardP_command03
sl@0
   911
		COMMAND		mmcsdstack1	AdjustPartialRead	BASE-BSP-MMC-STACK-DRIVER-0027-001-AdjustPartialRead_command04
sl@0
   912
		COMMAND		mmcsdsession1	Close
sl@0
   913
		COMMAND		mmcsdstack1	~
sl@0
   914
		COMMAND		mmcsdsession1	~
sl@0
   915
	END_TEST_BLOCK
sl@0
   916
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0027
sl@0
   917
sl@0
   918
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0028
sl@0
   919
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0028
sl@0
   920
//! @SYMAPI			DMMCStack::AdjustPartialRead(const TMMCard {ptr}, TUint32, TUint32, TUint32{ptr}, TUint32 {ptr});
sl@0
   921
//! @SYMAuthor			James Mechen
sl@0
   922
//! @SYMCreationDate		28/07/2008
sl@0
   923
//! @SYMTestCaseDesc		Adjust Partial Read Test - Get minimum range that must be read off card using invalid inputs.
sl@0
   924
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   925
//!				2. Open the driver connection
sl@0
   926
//!				3. Select the card
sl@0
   927
//!				4. Get minimum range that must be read off card, where where aStart>aEnd
sl@0
   928
//!				8. Destroy the object
sl@0
   929
//! @SYMTestStatus		Implemented
sl@0
   930
//! @SYMTestPriority		high
sl@0
   931
//! @SYMTestExpectedResults	The minimum range that must be read off card is correctly returned with no errors.
sl@0
   932
//! @SYMTestType		CIT
sl@0
   933
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   934
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   935
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   936
		COMMAND		mmcsdsession1	NewL
sl@0
   937
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0028-001-DriverOpen_command01
sl@0
   938
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0028-001-NewL_command02
sl@0
   939
		COMMAND		mmcsdstack1	CardP			BASE-BSP-MMC-STACK-DRIVER-0028-001-CardP_command03
sl@0
   940
		COMMAND		mmcsdstack1	AdjustPartialRead	BASE-BSP-MMC-STACK-DRIVER-0028-001-AdjustPartialRead_command04
sl@0
   941
		COMMAND		mmcsdsession1	Close
sl@0
   942
		COMMAND		mmcsdstack1	~
sl@0
   943
		COMMAND		mmcsdsession1	~
sl@0
   944
	END_TEST_BLOCK
sl@0
   945
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0028
sl@0
   946
sl@0
   947
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0029
sl@0
   948
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0029
sl@0
   949
//! @SYMAPI			DMMCStack::ReportPowerUp();
sl@0
   950
//! @SYMAuthor			Matt Flowers
sl@0
   951
//! @SYMCreationDate		19/05/2008
sl@0
   952
//! @SYMTestCaseDesc		ReportPowerUp
sl@0
   953
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   954
//!				2. Open the driver connection
sl@0
   955
//!				3. Report that that power up operation has successfully completed.
sl@0
   956
//!				4. Destroy the object
sl@0
   957
//! @SYMTestStatus		Implemented
sl@0
   958
//! @SYMTestPriority		high
sl@0
   959
//! @SYMTestExpectedResults	Power up reported with no errors.
sl@0
   960
//! @SYMTestType		CIT
sl@0
   961
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   962
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   963
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   964
		COMMAND		mmcsdsession1	NewL
sl@0
   965
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0029-001-DriverOpen_command01
sl@0
   966
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0029-001-NewL_command02
sl@0
   967
		COMMAND		mmcsdstack1	ReportPowerUp
sl@0
   968
		COMMAND		mmcsdsession1	Close
sl@0
   969
		COMMAND		mmcsdstack1	~
sl@0
   970
		COMMAND		mmcsdsession1	~
sl@0
   971
	END_TEST_BLOCK
sl@0
   972
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0029
sl@0
   973
sl@0
   974
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0030
sl@0
   975
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0030
sl@0
   976
//! @SYMAPI			DMMCStack::ReportPowerDown();
sl@0
   977
//! @SYMAuthor			Matt Flowers
sl@0
   978
//! @SYMCreationDate		19/05/2008
sl@0
   979
//! @SYMTestCaseDesc		ReportPowerDown
sl@0
   980
//! @SYMTestActions		1. Create RMMCSDTestControllerInterface Handle object.
sl@0
   981
//!				2. Open the driver connection
sl@0
   982
//!				3. Report that that power down operation has successfully completed.
sl@0
   983
//!				4. Destroy the object
sl@0
   984
//! @SYMTestStatus		Implemented
sl@0
   985
//! @SYMTestPriority		high
sl@0
   986
//! @SYMTestExpectedResults	Power down reported with no errors.
sl@0
   987
//! @SYMTestType		CIT
sl@0
   988
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
   989
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
   990
		CREATE_OBJECT	MMCSDStack	mmcsdstack1
sl@0
   991
		COMMAND		mmcsdsession1	NewL
sl@0
   992
		COMMAND		mmcsdsession1	DriverOpen		BASE-BSP-MMC-STACK-DRIVER-0030-001-DriverOpen_command01
sl@0
   993
		COMMAND		mmcsdstack1	NewL			BASE-BSP-MMC-STACK-DRIVER-0030-001-NewL_command02
sl@0
   994
		COMMAND		mmcsdstack1	ReportPowerDown
sl@0
   995
		COMMAND		mmcsdsession1	Close
sl@0
   996
		COMMAND		mmcsdstack1	~
sl@0
   997
		COMMAND		mmcsdsession1	~
sl@0
   998
	END_TEST_BLOCK
sl@0
   999
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0030
sl@0
  1000
sl@0
  1001
START_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0031
sl@0
  1002
//! @SYMTestCaseID		BASE-BSP-MMC-STACK-DRIVER-0031
sl@0
  1003
//! @SYMAPI			FreeLogicalDevice(const TDesC {ref});
sl@0
  1004
//! @SYMAuthor			James Mechen
sl@0
  1005
//! @SYMCreationDate		17/04/2008
sl@0
  1006
//! @SYMTestCaseDesc		Free the Logical Device Driver
sl@0
  1007
//! @SYMTestActions		Free the D_MMCSDIF LDD Driver
sl@0
  1008
//! @SYMTestStatus		Implemented
sl@0
  1009
//! @SYMTestPriority		high
sl@0
  1010
//! @SYMTestExpectedResults	logical device driver unloaded.
sl@0
  1011
//! @SYMTestType		CIT
sl@0
  1012
	START_TEST_BLOCK	100		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-STACK-DRIVER.ini
sl@0
  1013
		CREATE_OBJECT	MMCSDSession	mmcsdsession1
sl@0
  1014
		COMMAND		mmcsdsession1	NewL
sl@0
  1015
		COMMAND		mmcsdsession1	UnLoadDriver		BASE-BSP-MMC-STACK-DRIVER-0031-001-UnloadDriver_command03
sl@0
  1016
		COMMAND		mmcsdsession1	~
sl@0
  1017
	END_TEST_BLOCK
sl@0
  1018
END_TESTCASE			BASE-BSP-MMC-STACK-DRIVER-0031