os/boardsupport/haitest/bspsvs/suite/bsp/mmc/scripts/BASE-BSP-MMC-MEDIACHANGE-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
sl@0
    18
sl@0
    19
sl@0
    20
START_TESTCASE			BASE-BSP-MMC-DRIVER-MediaChange-0001
sl@0
    21
//! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MediaChange-0001
sl@0
    22
//! @SYMTestCaseDesc		Load Logical Device Driver.
sl@0
    23
//! @SYMTestPriority		high
sl@0
    24
//! @SYMTestActions		Load D_MMCSDIF LDD Driver
sl@0
    25
//! @SYMTestExpectedResults	KErrNone
sl@0
    26
//! @SYMTestType		CIT
sl@0
    27
//! @SYMCreationDate		6/5/2008
sl@0
    28
//! @SYMAuthor			Saravanakumar
sl@0
    29
//! @SYMTestStatus		Implemented
sl@0
    30
//! @SYMAPI			User::LoadLogicalDevice(const TDesC {ref});
sl@0
    31
	START_TEST_BLOCK	100			T_mmcsd    		\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER.ini
sl@0
    32
		CREATE_OBJECT	MMCSDSession		mmcsdsession1
sl@0
    33
		COMMAND		mmcsdsession1		NewL
sl@0
    34
		COMMAND		mmcsdsession1		LoadDriver		BASE-BSP-MMC-DRIVER-LDDName-CMD0001
sl@0
    35
		COMMAND		mmcsdsession1		~
sl@0
    36
	END_TEST_BLOCK
sl@0
    37
END_TESTCASE			BASE-BSP-MMC-DRIVER-MediaChange-0001
sl@0
    38
sl@0
    39
sl@0
    40
START_TESTCASE			BASE-BSP-MMC-DRIVER-MediaChange-0002
sl@0
    41
//! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MediaChange-0002
sl@0
    42
//! @SYMTestCaseDesc		Reads the Media Status
sl@0
    43
//! @SYMTestPriority		high
sl@0
    44
//! @SYMTestActions		1. Open the Driver handle
sl@0
    45
//!				2. Checks the Current Media State.
sl@0
    46
//!				3. Display Door Opened or Closed.
sl@0
    47
//!				4. Close the driver handle
sl@0
    48
//! @SYMTestExpectedResults	KErrNone
sl@0
    49
//! @SYMTestType		CIT
sl@0
    50
//! @SYMCreationDate		6/5/2008
sl@0
    51
//! @SYMAuthor			Saravanakumar
sl@0
    52
//! @SYMTestStatus		Implemented
sl@0
    53
//! @SYMAPI			DMMCMediaChange::MediaState();
sl@0
    54
	START_TEST_BLOCK	100			T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER.ini
sl@0
    55
		CREATE_OBJECT	MMCSDSession		mmcsdsession1
sl@0
    56
		CREATE_OBJECT	MMCSDMediaChange	mmcsdmediachange1
sl@0
    57
		COMMAND		mmcsdsession1		NewL
sl@0
    58
		COMMAND		mmcsdsession1		DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
sl@0
    59
		COMMAND		mmcsdmediachange1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
sl@0
    60
		COMMAND		mmcsdmediachange1	MediaState		BASE-BSP-MMC-DRIVER-InitMediaState-CMD0002
sl@0
    61
		COMMAND		mmcsdsession1		Close
sl@0
    62
		COMMAND		mmcsdmediachange1	~
sl@0
    63
		COMMAND		mmcsdsession1		~
sl@0
    64
	END_TEST_BLOCK
sl@0
    65
END_TESTCASE			BASE-BSP-MMC-DRIVER-MediaChange-0002
sl@0
    66
sl@0
    67
sl@0
    68
START_TESTCASE			BASE-BSP-MMC-DRIVER-MediaChange-0003
sl@0
    69
//! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MediaChange-0003
sl@0
    70
//! @SYMTestCaseDesc		Count of media events yet to be acknowledged
sl@0
    71
//! @SYMTestPriority		high
sl@0
    72
//! @SYMTestActions		1. Open the Driver handle
sl@0
    73
//!				2. Read the Replay count value
sl@0
    74
//!				3. Validate the count
sl@0
    75
//!				4. Close the driver handle
sl@0
    76
//! @SYMTestExpectedResults	Replay Count
sl@0
    77
//! @SYMTestType		CIT
sl@0
    78
//! @SYMCreationDate		6/5/2008
sl@0
    79
//! @SYMAuthor			Saravanakumar
sl@0
    80
//! @SYMTestStatus		Implemented
sl@0
    81
//! @SYMAPI			DMMCMediaChange::iReplyCount()
sl@0
    82
	START_TEST_BLOCK	100	 		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER.ini
sl@0
    83
		CREATE_OBJECT	MMCSDSession		mmcsdsession1
sl@0
    84
		CREATE_OBJECT	MMCSDMediaChange	mmcsdmediachange1
sl@0
    85
		COMMAND		mmcsdsession1		NewL
sl@0
    86
		COMMAND		mmcsdsession1		DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
sl@0
    87
		COMMAND		mmcsdmediachange1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
sl@0
    88
		COMMAND		mmcsdmediachange1	ReplayCount		BASE-BSP-MMC-DRIVER-ReplayEventCount-CMD0003
sl@0
    89
		COMMAND		mmcsdsession1		Close
sl@0
    90
		COMMAND		mmcsdmediachange1	~
sl@0
    91
		COMMAND		mmcsdsession1		~
sl@0
    92
	END_TEST_BLOCK
sl@0
    93
END_TESTCASE			BASE-BSP-MMC-DRIVER-MediaChange-0003
sl@0
    94
sl@0
    95
sl@0
    96
START_TESTCASE			BASE-BSP-MMC-DRIVER-MediaChange-0004
sl@0
    97
//! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MediaChange-0004
sl@0
    98
//! @SYMTestCaseDesc		UnLoad Logical Device Driver.
sl@0
    99
//! @SYMTestPriority		high
sl@0
   100
//! @SYMTestActions		Load  D_MMCSDIF LDD Driver
sl@0
   101
//! @SYMTestExpectedResults	KErrNone
sl@0
   102
//! @SYMTestType		CIT
sl@0
   103
//! @SYMCreationDate		1/4/2008
sl@0
   104
//! @SYMAuthor			Saravanakumar
sl@0
   105
//! @SYMTestStatus		Implemented
sl@0
   106
//! @SYMAPI			User::FreeLogicalDevice(const TDesC {ref})
sl@0
   107
	START_TEST_BLOCK	100	 		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER.ini
sl@0
   108
		CREATE_OBJECT	MMCSDSession		mmcsdsession1
sl@0
   109
		COMMAND		mmcsdsession1		NewL
sl@0
   110
		COMMAND		mmcsdsession1		UnLoadDriver		BASE-BSP-MMC-DRIVER-LDDName-CMD0001
sl@0
   111
		COMMAND		mmcsdsession1		~
sl@0
   112
	END_TEST_BLOCK
sl@0
   113
END_TESTCASE			BASE-BSP-MMC-DRIVER-MediaChange-0004