os/mm/mmlibs/mmfw/tsrc/mmfunittest/MidiClnt/TS_MMFMIDICLNTsuite.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
sl@0
     2
// Copyright (c) 2004-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
sl@0
    18
// EPOC includes
sl@0
    19
#include <e32base.h>
sl@0
    20
sl@0
    21
// Test system includes
sl@0
    22
#include <testframework.h>
sl@0
    23
sl@0
    24
#include "TSU_MMFMIDICLNT.h"
sl@0
    25
#include "TS_MMFMIDICLNTsuite.h"
sl@0
    26
#include "TestMidiClientUtility.h"
sl@0
    27
#include "TestStepMidiClntAllocFailNew.h"
sl@0
    28
#include "TestStepMidiClntAllocFailOpen.h"
sl@0
    29
#include "TestMidiClientSharedHeap.h"
sl@0
    30
sl@0
    31
sl@0
    32
#define KFileNameKey _S("MidiDrmContent")
sl@0
    33
#define KUnlimitPlayContent _S("midiIdPlayUnlim")
sl@0
    34
sl@0
    35
const TDrmTestParams KDrm0321 =
sl@0
    36
	{
sl@0
    37
	KFileNameKey, 		//iFileNameKey
sl@0
    38
	KUnlimitPlayContent,		//iUniqueId;
sl@0
    39
	ContentAccess::EUnknown,	//iIntent;
sl@0
    40
	KErrCANoPermission,			//iExpectedError;	
sl@0
    41
	TDrmTestParams::EFileName					// iSourceType;
sl@0
    42
	};
sl@0
    43
	
sl@0
    44
const TDrmTestParams KDrm0322 =
sl@0
    45
	{
sl@0
    46
	KFileNameKey,				//iFileNameKey
sl@0
    47
	_S("midiIdNoRights"),		//iUniqueId;
sl@0
    48
	ContentAccess::EPlay,		//iIntent;
sl@0
    49
	KErrCANoRights,			//iExpectedError;	
sl@0
    50
	TDrmTestParams::EFileName					// iSourceType;
sl@0
    51
	};
sl@0
    52
	
sl@0
    53
const TDrmTestParams KDrm0323 =
sl@0
    54
	{
sl@0
    55
	KFileNameKey,		//iFileNameKey
sl@0
    56
	_S("midiIdPlay01"),		//iUniqueId;
sl@0
    57
	ContentAccess::EPlay,		//iIntent;
sl@0
    58
	KErrCANoPermission,			//iExpectedError;	
sl@0
    59
	TDrmTestParams::EFileName,	// iSourceType;
sl@0
    60
	2							// iNumPlayLoops
sl@0
    61
	};
sl@0
    62
		
sl@0
    63
const TDrmTestParams KDrm0324 =
sl@0
    64
	{
sl@0
    65
	KFileNameKey,	//iFileNameKey
sl@0
    66
	_S("Wrong Id"),				//iUniqueId;
sl@0
    67
	ContentAccess::EPlay,		//iIntent;
sl@0
    68
	KErrNotFound,			//iExpectedError;	
sl@0
    69
	TDrmTestParams::EFileName					// iSourceType;
sl@0
    70
	};
sl@0
    71
sl@0
    72
const TDrmTestParams KDrm1011 =
sl@0
    73
	{
sl@0
    74
	KFileNameKey,		//iFileNameKey
sl@0
    75
	KUnlimitPlayContent,		//iUniqueId;
sl@0
    76
	ContentAccess::EPlay,		//iIntent;
sl@0
    77
	KErrNone,			//iExpectedError;	
sl@0
    78
	TDrmTestParams::EFileName					// iSourceType;
sl@0
    79
	};
sl@0
    80
sl@0
    81
const TDrmTestParams KDrm1012 =
sl@0
    82
	{
sl@0
    83
	KFileNameKey,		//iFileNameKey
sl@0
    84
	KUnlimitPlayContent,		//iUniqueId;
sl@0
    85
	ContentAccess::EPlay,		//iIntent;
sl@0
    86
	KErrNone,			//iExpectedError;	
sl@0
    87
	TDrmTestParams::EFileHandle					// iSourceType;
sl@0
    88
	};
sl@0
    89
	
sl@0
    90
const TDrmTestParams KDrm1013 =
sl@0
    91
	{
sl@0
    92
	KFileNameKey,		//iFileNameKey
sl@0
    93
	KUnlimitPlayContent,		//iUniqueId;
sl@0
    94
	ContentAccess::EPlay,		//iIntent;
sl@0
    95
	KErrNone,			//iExpectedError;	
sl@0
    96
	TDrmTestParams::EFileName					// iSourceType;
sl@0
    97
	};
sl@0
    98
	
sl@0
    99
const TDrmTestParams KDrm1014 =
sl@0
   100
	{
sl@0
   101
	KFileNameKey,		//iFileNameKey
sl@0
   102
	KUnlimitPlayContent,		//iUniqueId;
sl@0
   103
	ContentAccess::EPlay,		//iIntent;
sl@0
   104
	KErrNone,			//iExpectedError;	
sl@0
   105
	TDrmTestParams::EFileName,	// iSourceType;
sl@0
   106
	1,							// iNumPlayLoops
sl@0
   107
	TDrmTestParams::EAlloc			// iTestMode
sl@0
   108
	};
sl@0
   109
	
sl@0
   110
const TDrmTestParams KDrm1015 =
sl@0
   111
	{
sl@0
   112
	KFileNameKey,		//iFileNameKey
sl@0
   113
	KUnlimitPlayContent,		//iUniqueId;
sl@0
   114
	ContentAccess::EPlay,		//iIntent;
sl@0
   115
	KErrNone,					//iExpectedError;	
sl@0
   116
	TDrmTestParams::EFileHandle,// iSourceType;
sl@0
   117
	1,							// iNumPlayLoops							
sl@0
   118
	TDrmTestParams::EAlloc		// iTestMode
sl@0
   119
	};
sl@0
   120
	
sl@0
   121
const TDrmTestParams KDrm1016 =
sl@0
   122
	{
sl@0
   123
	KFileNameKey,		//iFileNameKey
sl@0
   124
	KUnlimitPlayContent,		//iUniqueId;
sl@0
   125
	ContentAccess::EPlay,		//iIntent;
sl@0
   126
	KErrNone,					//iExpectedError;	
sl@0
   127
	TDrmTestParams::EFileHandle,// iSourceType;
sl@0
   128
	1							// iNumPlayLoops							
sl@0
   129
	};	
sl@0
   130
sl@0
   131
sl@0
   132
/**
sl@0
   133
 * NewTestSuite is exported at ordinal 1
sl@0
   134
 * this provides the interface to allow schedule test
sl@0
   135
 * to create instances of this test suite
sl@0
   136
 */
sl@0
   137
EXPORT_C CTestSuite* NewTestSuiteL()
sl@0
   138
    {
sl@0
   139
	CTestMmfMidiClntSuite* result = new (ELeave) CTestMmfMidiClntSuite;
sl@0
   140
	CleanupStack::PushL(result);
sl@0
   141
	result->ConstructL();
sl@0
   142
	CleanupStack::Pop(); // result
sl@0
   143
	return result;
sl@0
   144
    }
sl@0
   145
sl@0
   146
/**
sl@0
   147
 * destructor
sl@0
   148
 */
sl@0
   149
CTestMmfMidiClntSuite::~CTestMmfMidiClntSuite()
sl@0
   150
	{
sl@0
   151
	}
sl@0
   152
sl@0
   153
/**
sl@0
   154
 * make a version string available for test system
sl@0
   155
 * @return version string
sl@0
   156
 */
sl@0
   157
TPtrC CTestMmfMidiClntSuite::GetVersion()
sl@0
   158
	{
sl@0
   159
	_LIT(KTxtVersion,"1.0");
sl@0
   160
	return KTxtVersion();
sl@0
   161
	}
sl@0
   162
sl@0
   163
/**
sl@0
   164
 * Constructor for test suite
sl@0
   165
 * this creates all the test steps and 
sl@0
   166
 * stores them inside CTestMmfMidiClntSuite 
sl@0
   167
 */
sl@0
   168
void CTestMmfMidiClntSuite::InitialiseL()
sl@0
   169
	{
sl@0
   170
	// store the name of this test suite 
sl@0
   171
	iSuiteName = _L("MMF_MIDICLNT");
sl@0
   172
sl@0
   173
	//TTimeIntervalMicroSeconds position = TInt64(0);
sl@0
   174
sl@0
   175
	_LIT(KSectionOne, "SectionOne");
sl@0
   176
	_LIT(KSectionTwo, "SectionTwo");
sl@0
   177
	_LIT(KFilename, "filename");
sl@0
   178
sl@0
   179
// POSITIVE TEST
sl@0
   180
	
sl@0
   181
	//Return the state
sl@0
   182
	AddTestStepL( CTestMidiClntGetState::NewL( _L("MM-MMF-MIDICLNT-U-0016"), KSectionOne, KFilename, ETestValid, ETrue));
sl@0
   183
sl@0
   184
	//Open 'maintest.wav'
sl@0
   185
	AddTestStepL( CTestMidiClntOpenFile::NewL( _L("MM-MMF-MIDICLNT-U-0018"), KSectionOne, KFilename, ETrue) );
sl@0
   186
	
sl@0
   187
	//Open Descriptor
sl@0
   188
	AddTestStepL( CTestMidiClntOpenDes::NewL( _L("MM-MMF-MIDICLNT-U-0020"), KSectionOne, KFilename, ETrue) );
sl@0
   189
sl@0
   190
	//Open valid URL - www.yahoo.co.uk
sl@0
   191
	AddTestStepL( CTestMidiClntOpenUrl::NewL( _L("MM-MMF-MIDICLNT-U-0023"), KSectionOne, KFilename, ETrue) );
sl@0
   192
sl@0
   193
	//Closes any currently open resource and deletes any plugins in use
sl@0
   194
	AddTestStepL( CTestMidiClntClose::NewL( _L("MM-MMF-MIDICLNT-U-0027")));
sl@0
   195
sl@0
   196
	//Initialize or resume playback
sl@0
   197
	AddTestStepL( CTestMidiClntPlay::NewL( _L("MM-MMF-MIDICLNT-U-0029"),  ETestValid));
sl@0
   198
sl@0
   199
	//Stops playback of a resource
sl@0
   200
	AddTestStepL( CTestMidiClntStop::NewL( _L("MM-MMF-MIDICLNT-U-0035"), ETestValid));
sl@0
   201
sl@0
   202
	//Play a single note
sl@0
   203
	AddTestStepL( CTestMidiClntPlayNote::NewL( _L("MM-MMF-MIDICLNT-U-0038"), ETestValid));
sl@0
   204
sl@0
   205
	//Stop all notes
sl@0
   206
	AddTestStepL( CTestMidiClntStopNotes::NewL( _L("MM-MMF-MIDICLNT-U-0047"), ETestValid));
sl@0
   207
sl@0
   208
	//Commence playback of a note
sl@0
   209
	AddTestStepL( CTestMidiClntNoteOn::NewL( _L("MM-MMF-MIDICLNT-U-0050"), ETestValid));
sl@0
   210
sl@0
   211
	//Terminate playback of a note
sl@0
   212
	AddTestStepL( CTestMidiClntNoteOff::NewL( _L("MM-MMF-MIDICLNT-U-0056"), ETestValid));
sl@0
   213
sl@0
   214
	//Returns the current tempo
sl@0
   215
	AddTestStepL( CTestMidiClntTempoMicroBeatsPerMinute::NewL( _L("MM-MMF-MIDICLNT-U-0060"), ETestValid));
sl@0
   216
sl@0
   217
	//Sets the tempo
sl@0
   218
	AddTestStepL( CTestMidiClntSetTempo::NewL( _L("MM-MMF-MIDICLNT-U-0062"), ETestValid));
sl@0
   219
sl@0
   220
	//Returns the pitch shift
sl@0
   221
	AddTestStepL( CTestMidiClntGetPitchTranspositionCents::NewL( _L("MM-MMF-MIDICLNT-U-0066"),ETestValid));
sl@0
   222
sl@0
   223
	//Set the pitch shift
sl@0
   224
	AddTestStepL( CTestMidiClntSetPitchTransposition::NewL( _L("MM-MMF-MIDICLNT-U-0072"),ETestValid));
sl@0
   225
sl@0
   226
	//Returns the length of midi resource
sl@0
   227
	AddTestStepL( CTestMidiClntDurationMicroSeconds::NewL( _L("MM-MMF-MIDICLNT-U-0076"), ETestValid));
sl@0
   228
sl@0
   229
	//The length of midi resource by Beats
sl@0
   230
	AddTestStepL( CTestMidiClntDurationMicroBeats::NewL( _L("MM-MMF-MIDICLNT-U-0078"), ETestValid));
sl@0
   231
sl@0
   232
	//Number of tracks
sl@0
   233
	AddTestStepL( CTestMidiClntNumTracks::NewL( _L("MM-MMF-MIDICLNT-U-0080"), ETestValid));
sl@0
   234
sl@0
   235
	//Mutes a particular track
sl@0
   236
	AddTestStepL( CTestMidiClntSetTrackMute::NewL( _L("MM-MMF-MIDICLNT-U-0082"), ETestValid));
sl@0
   237
sl@0
   238
	//Channels Supported
sl@0
   239
	AddTestStepL( CTestChannelsSupported::NewL( _L("MM-MMF-MIDICLNT-U-0085"), ETestValid));
sl@0
   240
sl@0
   241
	//Queries the type
sl@0
   242
	AddTestStepL( CTestMidiClntMimeType::NewL( _L("MM-MMF-MIDICLNT-U-0087"), ETestValid));
sl@0
   243
sl@0
   244
	//Current temporal position
sl@0
   245
	AddTestStepL( CTestMidiClntReturnPositionMicroSeconds::NewL( _L("MM-MMF-MIDICLNT-U-0092"), ETestValid));
sl@0
   246
	
sl@0
   247
	//Change the position
sl@0
   248
	AddTestStepL( CTestMidiClntSetPositionMicroSeconds::NewL( _L("MM-MMF-MIDICLNT-U-0095"), ETestValid));
sl@0
   249
sl@0
   250
	//Current metrical position
sl@0
   251
	AddTestStepL( CTestMidiClntReturnsPositionMicroBeats::NewL( _L("MM-MMF-MIDICLNT-U-0099"), ETestValid));
sl@0
   252
sl@0
   253
	//Change the metrical position
sl@0
   254
	AddTestStepL( CTestMidiClntSetPositionMicroBeats::NewL( _L("MM-MMF-MIDICLNT-U-0102"), ETestValid));
sl@0
   255
sl@0
   256
	//Sets the frequency
sl@0
   257
	AddTestStepL( CTestSetSyncUpdateCallbackInterval::NewL( _L("MM-MMF-MIDICLNT-U-0106"), ETestValid));
sl@0
   258
sl@0
   259
	//Sends a midi message 
sl@0
   260
	AddTestStepL( CTestSendMessage::NewL( _L("MM-MMF-MIDICLNT-U-0111"), ETestValid, _L8("MIDI Message")) );
sl@0
   261
sl@0
   262
	//Sends a mip message 
sl@0
   263
	AddTestStepL( CTestSendMipMessage::NewL( _L("MM-MMF-MIDICLNT-U-0115"), ETestValid) );
sl@0
   264
	
sl@0
   265
	//The number of sound banks
sl@0
   266
	AddTestStepL( CTestNumberOfBanks::NewL( _L("MM-MMF-MIDICLNT-U-0121"),ETestValid));
sl@0
   267
sl@0
   268
	//The identifier of a sound bank
sl@0
   269
	AddTestStepL( CTestGetBankId::NewL( _L("MM-MMF-MIDICLNT-U-0124"),ETestValid));
sl@0
   270
sl@0
   271
	//Loads a custom sound bank
sl@0
   272
	AddTestStepL( CTestLoadCustomBank::NewL( _L("MM-MMF-MIDICLNT-U-0129"),ETestValid));
sl@0
   273
sl@0
   274
	//Removes a custom sound bank
sl@0
   275
//	AddTestStepL( CTestUnloadCustomBank::NewL( _L("MM-MMF-MIDICLNT-U-0133"),ETestValid));
sl@0
   276
sl@0
   277
	//Unload all custom banks  -- DEFERED (No suitable Midi Controller)
sl@0
   278
//	AddTestStepL( CTestUnloadAllCustomBanks::NewL( _L("MM-MMF-MIDICLNT-U-0135"),ETestValid));
sl@0
   279
sl@0
   280
	//Gets the number of instruments
sl@0
   281
	AddTestStepL( CTestNumberOfInstruments::NewL( _L("MM-MMF-MIDICLNT-U-0137"),ETestValid));
sl@0
   282
sl@0
   283
	//Gets the identifier of a instrument
sl@0
   284
	AddTestStepL( CTestGetInstrumentId::NewL( _L("MM-MMF-MIDICLNT-U-0141"),ETestValid));
sl@0
   285
sl@0
   286
	//Gets the name of a instrument
sl@0
   287
	AddTestStepL( CTestReturnsInstrumentName::NewL( _L("MM-MMF-MIDICLNT-U-0146"),ETestValid));
sl@0
   288
sl@0
   289
	//Sets a channel to use the instrument
sl@0
   290
	AddTestStepL( CTestSetInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0148"),ETestValid));
sl@0
   291
sl@0
   292
	//Loads a custom Instrument
sl@0
   293
	AddTestStepL( CTestLoadCustomInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0151"),ETestValid));
sl@0
   294
sl@0
   295
	//Removes a instrument
sl@0
   296
	AddTestStepL( CTestUnloadCustomInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0155"),ETestValid ));
sl@0
   297
sl@0
   298
	//Queries the name of a particular percussion key
sl@0
   299
	AddTestStepL( CTestPercussionKeyName::NewL( _L("MM-MMF-MIDICLNT-U-0159"),ETestValid));
sl@0
   300
	
sl@0
   301
	//Stop Time
sl@0
   302
	AddTestStepL( CTestStopTime::NewL( _L("MM-MMF-MIDICLNT-U-0161"),ETestValid));
sl@0
   303
sl@0
   304
	//Set Stop Time
sl@0
   305
	AddTestStepL( CTestSetStopTime::NewL( _L("MM-MMF-MIDICLNT-U-0163"),ETestValid));
sl@0
   306
sl@0
   307
	//Set the number of times to repeat
sl@0
   308
	AddTestStepL( CTestSetRepeats::NewL( _L("MM-MMF-MIDICLNT-U-0168"),ETestValid));
sl@0
   309
sl@0
   310
	//Gets the polyphony
sl@0
   311
	AddTestStepL( CTestPolyphony::NewL( _L("MM-MMF-MIDICLNT-U-0173"),ETestValid));
sl@0
   312
sl@0
   313
	//volume setting of a channel
sl@0
   314
	AddTestStepL( CTestReturnChannelVolume::NewL( _L("MM-MMF-MIDICLNT-U-0174"), ETestValid));
sl@0
   315
sl@0
   316
	//Set the volume of a channel
sl@0
   317
	AddTestStepL( CTestSetChannelVolume::NewL( _L("MM-MMF-MIDICLNT-U-0177"), ETestValid));
sl@0
   318
sl@0
   319
	//Set the muting state of a channel 
sl@0
   320
	AddTestStepL( CTestSetChannelMute::NewL( _L("MM-MMF-MIDICLNT-U-0181"), ETestValid));
sl@0
   321
sl@0
   322
	//Get the overall volume of the midi client
sl@0
   323
	AddTestStepL( CTestReturnVolume::NewL( _L("MM-MMF-MIDICLNT-U-0183"), ETestValid));
sl@0
   324
sl@0
   325
	//Maximum volume setting
sl@0
   326
	AddTestStepL( CTestReturnMaxVolume::NewL( _L("MM-MMF-MIDICLNT-U-0184"), ETestValid));
sl@0
   327
sl@0
   328
	//Set the overall volume
sl@0
   329
	AddTestStepL( CTestSetVolume::NewL( _L("MM-MMF-MIDICLNT-U-0185"), ETestValid));
sl@0
   330
sl@0
   331
	//Length of time over which the volume is faded up
sl@0
   332
	AddTestStepL( CTestSetVolumeRamp::NewL( _L("MM-MMF-MIDICLNT-U-0188"), ETestValid));
sl@0
   333
sl@0
   334
	//Get the stereo balance value
sl@0
   335
	AddTestStepL( CTestGetBalance::NewL( _L("MM-MMF-MIDICLNT-U-0191"), ETestValid));
sl@0
   336
sl@0
   337
	//Set the stereo balance value
sl@0
   338
	AddTestStepL( CTestSetBalance::NewL( _L("MM-MMF-MIDICLNT-U-0193"), ETestValid));
sl@0
   339
sl@0
   340
	//Set the priority 
sl@0
   341
	AddTestStepL( CTestSetPriority::NewL( _L("MM-MMF-MIDICLNT-U-0197"), ETestValid));
sl@0
   342
sl@0
   343
	//Get the number of meta data entries
sl@0
   344
	AddTestStepL( CTestNumberOfXmfMetaDataEntries::NewL( _L("MM-MMF-MIDICLNT-U-0199"), ETestValid));
sl@0
   345
sl@0
   346
	//Retrieve the specified meta data entry
sl@0
   347
//	AddTestStepL( CTestGetXmfMetaDataEntry::NewL( _L("MM-MMF-MIDICLNT-U-0201"), ETestValid));
sl@0
   348
sl@0
   349
	//Returns the current playback rate
sl@0
   350
	AddTestStepL( CTestMidiClntReturnPlaybackRate::NewL( _L("MM-MMF-MIDICLNT-U-0210"), ETestValid));
sl@0
   351
sl@0
   352
	//Sets the playback rate
sl@0
   353
	AddTestStepL( CTestMidiClntSetPlaybackRate::NewL( _L("MM-MMF-MIDICLNT-U-0211"), ETestValid));
sl@0
   354
sl@0
   355
	//Sets the playback rate [No Resource]	- DEFERRED
sl@0
   356
	//AddTestStepL( CTestMidiClntSetPlaybackRate::NewL( _L("MM-MMF-MIDICLNT-U-0226"), ETestNoResource));
sl@0
   357
	
sl@0
   358
	//Sets the playback rate [Out of range high] - DEFERRED
sl@0
   359
	//AddTestStepL( CTestMidiClntSetPlaybackRate::NewL( _L("MM-MMF-MIDICLNT-U-0227"), ETestOutOfRangeHigh));
sl@0
   360
sl@0
   361
	//Sets the playback rate [Out of range low] - DEFERRED
sl@0
   362
	//AddTestStepL( CTestMidiClntSetPlaybackRate::NewL( _L("MM-MMF-MIDICLNT-U-0228"), ETestOutOfRangeLow));
sl@0
   363
sl@0
   364
	//Query the maximum playback rate
sl@0
   365
	AddTestStepL( CTestMidiClntReturnMaxPlayRate::NewL( _L("MM-MMF-MIDICLNT-U-0213"), ETestValid));
sl@0
   366
sl@0
   367
	//Query the minimum playback rate
sl@0
   368
	AddTestStepL( CTestMidiClntReturnMinPlayRate::NewL( _L("MM-MMF-MIDICLNT-U-0214"), ETestValid));
sl@0
   369
sl@0
   370
	//Plugin required to do negative tests//
sl@0
   371
	//Query the instrument assigned to a specified channel.
sl@0
   372
	AddTestStepL( CTestGetInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0215"), ETestValid));
sl@0
   373
sl@0
   374
	//Loads an individual instrument from descriptor
sl@0
   375
	AddTestStepL( CTestLoadCustomInstrumentData::NewL( _L("MM-MMF-MIDICLNT-U-0219"), ETestValid));
sl@0
   376
sl@0
   377
	// Returns the maximum volume setting
sl@0
   378
	AddTestStepL( CTestMaxChannelVolume::NewL( _L("MM-MMF-MIDICLNT-U-0225"), ETestValid));
sl@0
   379
	
sl@0
   380
	// Checks that the client can hold more than 10 events in its queue
sl@0
   381
	AddTestStepL( CTestMidiClntThirteenMidiEvents::NewL( _L("MM-MMF-MIDICLNT-U-0301"), ETestValid));
sl@0
   382
	
sl@0
   383
	// Checks that the transtion from EMidiStateClosedDisengaged to EMidiStateClosedEngaged is made without any problems.
sl@0
   384
	AddTestStepL( CTestTrasitionFromEClosedToEClosedEngaged::NewL( _L("MM-MMF-MIDICLNT-U-0302"), ETestValid));
sl@0
   385
sl@0
   386
	// Checks that the transtion from EMidiStateClosedDisengaged to ECOpenEngaged is made without any problems.
sl@0
   387
	AddTestStepL( CTestTrasitionFromEClosedToEOpenEngaged::NewL( _L("MM-MMF-MIDICLNT-U-0303"), ETestValid));
sl@0
   388
sl@0
   389
	// Checks that the transtion from EMidiStateOpenEngaged to EMidiStateClosedEngaged is made without any problems.
sl@0
   390
	AddTestStepL( CTestTrasitionFromEOpenEngagedToEClosedEngaged::NewL( _L("MM-MMF-MIDICLNT-U-0304"), ETestValid));
sl@0
   391
	
sl@0
   392
	// Checks that the transtion from EMidiStateClosedEngaged to EMidiStateClosedDisengaged is made without any problems (using Stop()).
sl@0
   393
	AddTestStepL( CTestTrasitionFromEClosedEngagedToEClosed::NewL( _L("MM-MMF-MIDICLNT-U-0305"), ETestValid));
sl@0
   394
sl@0
   395
	AddTestStepL( CTestMidiOpenFileHandleRepeat::NewL( _L("MM-MMF-MIDICLNT-U-0306"), KSectionOne, KFilename, ETrue) );
sl@0
   396
sl@0
   397
// NEGATIVE TEST
sl@0
   398
sl@0
   399
	//Return the state before any initialisation has been done
sl@0
   400
//	AddTestStepL( CTestMidiClntGetState::NewL( _L("MM-MMF-MIDICLNT-U-0017"), KSectionOne, KFilename, ETestNegative, ETrue));
sl@0
   401
sl@0
   402
	//Open 'Invalid File Name'
sl@0
   403
	AddTestStepL( CTestMidiClntOpenFile::NewL( _L("MM-MMF-MIDICLNT-U-0019"), KSectionOne, KFilename, ETrue) );
sl@0
   404
sl@0
   405
	//Open NULL Descriptor
sl@0
   406
	AddTestStepL( CTestMidiClntOpenDes::NewL( _L("MM-MMF-MIDICLNT-U-0021"), KSectionOne, KFilename, ETrue) );
sl@0
   407
sl@0
   408
	//Open Invalid Data Descriptor
sl@0
   409
	AddTestStepL( CTestMidiClntOpenDes::NewL( _L("MM-MMF-MIDICLNT-U-0022"), KSectionOne, KFilename, ETrue) );
sl@0
   410
sl@0
   411
	//Open invalid URL - www.yahoo.coo.uuk
sl@0
   412
	AddTestStepL( CTestMidiClntOpenUrl::NewL( _L("MM-MMF-MIDICLNT-U-0024"), KSectionOne, KFilename, ETrue) );
sl@0
   413
sl@0
   414
	//Open invalid IAP - TInt aIapId = KUseInvalidIap
sl@0
   415
	AddTestStepL( CTestMidiClntOpenUrl::NewL( _L("MM-MMF-MIDICLNT-U-0025"), KSectionOne, KFilename, ETrue) );
sl@0
   416
sl@0
   417
	//Open invalid MIME type - TDesC8& = Invalid MIME Type
sl@0
   418
	AddTestStepL( CTestMidiClntOpenUrl::NewL( _L("MM-MMF-MIDICLNT-U-0026"), KSectionOne, KFilename, ETrue) );
sl@0
   419
sl@0
   420
	//Closes any currently open resource and deletes any plugins in use (No plugin available)
sl@0
   421
	AddTestStepL( CTestMidiClntClose::NewL( _L("MM-MMF-MIDICLNT-U-0028")));
sl@0
   422
sl@0
   423
	//Initiate or resume playback (No plugin available)
sl@0
   424
//	AddTestStepL( CTestMidiClntPlay::NewL( _L("MM-MMF-MIDICLNT-U-0030"),  ETestNoPlugin));
sl@0
   425
	
sl@0
   426
	//Initiate or resume playback (Invalid System State)
sl@0
   427
//	AddTestStepL( CTestMidiClntPlay::NewL( _L("MM-MMF-MIDICLNT-U-0031"), ETestInvalidState));
sl@0
   428
sl@0
   429
	// Disabled until real MIDI controller available
sl@0
   430
	//Stops playback of a resource (No Resource Is Playing)
sl@0
   431
	//AddTestStepL( CTestMidiClntStop::NewL( _L("MM-MMF-MIDICLNT-U-0036"), ETestNoResource));
sl@0
   432
sl@0
   433
	//Stops playback of a resource (No Plugin Available)
sl@0
   434
	AddTestStepL( CTestMidiClntStop::NewL( _L("MM-MMF-MIDICLNT-U-0037"), ETestNoPlugin));
sl@0
   435
sl@0
   436
	//Play a single note (Zero duration)
sl@0
   437
//	AddTestStepL( CTestMidiClntPlayNote::NewL( _L("MM-MMF-MIDICLNT-U-0039"), ETestZeroDurationOutOfRange));
sl@0
   438
sl@0
   439
	//Play a single note (Invalid Channel)
sl@0
   440
	AddTestStepL( CTestMidiClntPlayNote::NewL( _L("MM-MMF-MIDICLNT-U-0040"), ETestInvalidChannelOutOfRange));
sl@0
   441
sl@0
   442
	//Play a single note (Note out of range high)
sl@0
   443
	AddTestStepL( CTestMidiClntPlayNote::NewL( _L("MM-MMF-MIDICLNT-U-0041"), ETestNoteHighOutOfRange));
sl@0
   444
sl@0
   445
	//Play a single note (Note out of range low)
sl@0
   446
	AddTestStepL( CTestMidiClntPlayNote::NewL( _L("MM-MMF-MIDICLNT-U-0042"), ETestNoteLowOutOfRange));
sl@0
   447
sl@0
   448
	//Play a single note (Attack out of range high)
sl@0
   449
	AddTestStepL( CTestMidiClntPlayNote::NewL( _L("MM-MMF-MIDICLNT-U-0043"), ETestAttackHighOutOfRange));
sl@0
   450
sl@0
   451
	//Play a single note (Attack out of range low)
sl@0
   452
	AddTestStepL( CTestMidiClntPlayNote::NewL( _L("MM-MMF-MIDICLNT-U-0044"), ETestAttackLowOutOfRange));
sl@0
   453
sl@0
   454
	//Play a single note (Release out of range high)
sl@0
   455
	AddTestStepL( CTestMidiClntPlayNote::NewL( _L("MM-MMF-MIDICLNT-U-0045"), ETestReleaseHighOutOfRange));
sl@0
   456
sl@0
   457
	//Play a single note (Release out of range low)
sl@0
   458
	AddTestStepL( CTestMidiClntPlayNote::NewL( _L("MM-MMF-MIDICLNT-U-0046"), ETestReleaseLowOutOfRange));
sl@0
   459
sl@0
   460
	//Stop all notes (Invalid Channel Number)
sl@0
   461
	AddTestStepL( CTestMidiClntStopNotes::NewL( _L("MM-MMF-MIDICLNT-U-0048"), ETestInvalidChannelOutOfRange));
sl@0
   462
sl@0
   463
	//Stop all notes (No Note Available)
sl@0
   464
	AddTestStepL( CTestMidiClntStopNotes::NewL( _L("MM-MMF-MIDICLNT-U-0049"), ETestNoNoteAvailable));
sl@0
   465
sl@0
   466
	//Commence playback of a note (Invalid Channel Number)
sl@0
   467
	AddTestStepL( CTestMidiClntNoteOn::NewL( _L("MM-MMF-MIDICLNT-U-0051"), ETestInvalidChannelOutOfRange));
sl@0
   468
sl@0
   469
	//Commence playback of a note (Out of Range Low Note)
sl@0
   470
	AddTestStepL( CTestMidiClntNoteOn::NewL( _L("MM-MMF-MIDICLNT-U-0052"), ETestNoteLowOutOfRange));
sl@0
   471
sl@0
   472
	//Commence playback of a note (Out of Range High Note)
sl@0
   473
	AddTestStepL( CTestMidiClntNoteOn::NewL( _L("MM-MMF-MIDICLNT-U-0053"), ETestNoteHighOutOfRange));
sl@0
   474
sl@0
   475
	//Commence playback of a note (Out of Range Low Velocity)
sl@0
   476
	AddTestStepL( CTestMidiClntNoteOn::NewL( _L("MM-MMF-MIDICLNT-U-0054"), ETestVelocityLowOutOfRange));
sl@0
   477
sl@0
   478
	//Commence playback of a note (Out of Range High Velocity)
sl@0
   479
	AddTestStepL( CTestMidiClntNoteOn::NewL( _L("MM-MMF-MIDICLNT-U-0055"), ETestVelocityHighOutOfRange));
sl@0
   480
sl@0
   481
	//Terminate playback of a note (Invalid Channel Number)
sl@0
   482
	AddTestStepL( CTestMidiClntNoteOff::NewL( _L("MM-MMF-MIDICLNT-U-0057"), ETestInvalidChannelOutOfRange));
sl@0
   483
sl@0
   484
	//Terminate playback of a note (No Note Currently Playing)
sl@0
   485
	AddTestStepL( CTestMidiClntNoteOff::NewL( _L("MM-MMF-MIDICLNT-U-0058"), ETestNoNoteAvailable));
sl@0
   486
sl@0
   487
	//Terminate playback of a note (Selected Note / Velocity Set is different to those playing)
sl@0
   488
//	AddTestStepL( CTestMidiClntNoteOff::NewL( _L("MM-MMF-MIDICLNT-U-0059"), ETestDifferentNoteVelocity));
sl@0
   489
sl@0
   490
	//Returns the current tempo (No Resource is Open)
sl@0
   491
//	AddTestStepL( CTestMidiClntTempoMicroBeatsPerMinute::NewL( _L("MM-MMF-MIDICLNT-U-0061"), ETestNoResource ));
sl@0
   492
sl@0
   493
	//Sets the tempo (Beats Out of Range Low)
sl@0
   494
	AddTestStepL( CTestMidiClntSetTempo::NewL( _L("MM-MMF-MIDICLNT-U-0063"), ETestBeatsLowOutOfRange));
sl@0
   495
sl@0
   496
// Does not calculate errors on out of range values, all values above 0 are a pass, Invalid test
sl@0
   497
	//Sets the tempo (Beats Out of Range High)
sl@0
   498
//	AddTestStepL( CTestMidiClntSetTempo::NewL( _L("MM-MMF-MIDICLNT-U-0064"), ETestBeatsHighOutOfRange));
sl@0
   499
sl@0
   500
	//Sets the tempo (No Resource is Open)
sl@0
   501
//	AddTestStepL( CTestMidiClntSetTempo::NewL( _L("MM-MMF-MIDICLNT-U-0065"), ETestNoResource));
sl@0
   502
sl@0
   503
	//Returns the pitch shift (No Resource is Open)
sl@0
   504
	//AddTestStepL( CTestMidiClntGetPitchTranspositionCents::NewL( _L("MM-MMF-MIDICLNT-U-0067"),ETestNoResource ));
sl@0
   505
sl@0
   506
	//Set the pitch shift (No Resource is Open)
sl@0
   507
	//AddTestStepL( CTestMidiClntSetPitchTransposition::NewL( _L("MM-MMF-MIDICLNT-U-0073"),ETestNoResource ));
sl@0
   508
sl@0
   509
	//Set the pitch shift (Out of Range Value High)
sl@0
   510
	AddTestStepL( CTestMidiClntSetPitchTransposition::NewL( _L("MM-MMF-MIDICLNT-U-0074"),ETestOutOfRangeHigh ));
sl@0
   511
sl@0
   512
	//Set the pitch shift (Out of Range Value Low)
sl@0
   513
//	AddTestStepL( CTestMidiClntSetPitchTransposition::NewL( _L("MM-MMF-MIDICLNT-U-0075"),ETestOutOfRangeLow ));
sl@0
   514
sl@0
   515
	//Returns the length of midi resource (No Resource is Open)
sl@0
   516
//	AddTestStepL( CTestMidiClntDurationMicroSeconds::NewL( _L("MM-MMF-MIDICLNT-U-0077"), ETestNoResource));
sl@0
   517
sl@0
   518
	//The length of midi resource by Beats (No Resource is Open)
sl@0
   519
//	AddTestStepL( CTestMidiClntDurationMicroBeats::NewL( _L("MM-MMF-MIDICLNT-U-0079"), ETestNoResource));
sl@0
   520
sl@0
   521
	// Disabled until real MIDI controller available
sl@0
   522
	//Number of tracks (No Resource is Open)
sl@0
   523
	//AddTestStepL( CTestMidiClntNumTracks::NewL( _L("MM-MMF-MIDICLNT-U-0081"),ETestNoResource));
sl@0
   524
sl@0
   525
	//Mutes a particular track (Invalid Track)
sl@0
   526
	AddTestStepL( CTestMidiClntSetTrackMute::NewL( _L("MM-MMF-MIDICLNT-U-0083"), ETestInvalidTrack));
sl@0
   527
sl@0
   528
	//Mutes a particular track (No Resource is Open)
sl@0
   529
//	AddTestStepL( CTestMidiClntSetTrackMute::NewL( _L("MM-MMF-MIDICLNT-U-0084"), ETestNoResource));
sl@0
   530
sl@0
   531
	// Disabled until real MIDI controller available
sl@0
   532
	//Number of channels (No Resource is Open)
sl@0
   533
	//AddTestStepL( CTestChannelsSupported::NewL( _L("MM-MMF-MIDICLNT-U-0086"),ETestNoResource));
sl@0
   534
sl@0
   535
	//Queries the type (No Resource is Open)
sl@0
   536
//	AddTestStepL( CTestMidiClntMimeType::NewL( _L("MM-MMF-MIDICLNT-U-0088"), ETestNoResource));
sl@0
   537
sl@0
   538
	//Current temporal position (No Resource is Open)
sl@0
   539
//	AddTestStepL( CTestMidiClntReturnPositionMicroSeconds::NewL( _L("MM-MMF-MIDICLNT-U-0093"), ETestNoResource));
sl@0
   540
sl@0
   541
	//Current temporal position (Resource is not Playing)
sl@0
   542
//	AddTestStepL( CTestMidiClntReturnPositionMicroSeconds::NewL( _L("MM-MMF-MIDICLNT-U-0094"), ETestNoResourcePlaying));
sl@0
   543
sl@0
   544
	//Change the position (No Resource is Open)
sl@0
   545
//	AddTestStepL( CTestMidiClntSetPositionMicroSeconds::NewL( _L("MM-MMF-MIDICLNT-U-0096"), ETestNoResource));
sl@0
   546
sl@0
   547
//Taken out as controller does not check values
sl@0
   548
	//Change the position (Out of Range Value Low)
sl@0
   549
//	AddTestStepL( CTestMidiClntSetPositionMicroSeconds::NewL( _L("MM-MMF-MIDICLNT-U-0097"), ETestMicrosecondsLowOutOfRange));
sl@0
   550
sl@0
   551
//Taken out as controller does not check values
sl@0
   552
	//Change the position (Out of Range Value High)
sl@0
   553
//	AddTestStepL( CTestMidiClntSetPositionMicroSeconds::NewL( _L("MM-MMF-MIDICLNT-U-0098"), ETestMicrosecondsHighOutOfRange));
sl@0
   554
sl@0
   555
	//Current metrical position (No Resource is Open)
sl@0
   556
//	AddTestStepL( CTestMidiClntReturnsPositionMicroBeats::NewL( _L("MM-MMF-MIDICLNT-U-0100"), ETestNoResource));
sl@0
   557
sl@0
   558
	//Current metrical position (Resource is not Playing)
sl@0
   559
//	AddTestStepL( CTestMidiClntReturnsPositionMicroBeats::NewL( _L("MM-MMF-MIDICLNT-U-0101"), ETestNoResourcePlaying));
sl@0
   560
sl@0
   561
	//Change the metrical position (No Resource is Open)
sl@0
   562
//	AddTestStepL( CTestMidiClntSetPositionMicroBeats::NewL( _L("MM-MMF-MIDICLNT-U-0103"), ETestNoResource));
sl@0
   563
sl@0
   564
//Taken out as controller does not check values
sl@0
   565
	//Change the metrical position (Out of Range Value Low)
sl@0
   566
//	AddTestStepL( CTestMidiClntSetPositionMicroBeats::NewL( _L("MM-MMF-MIDICLNT-U-0104"), ETestMicrobeatsLowOutOfRange));
sl@0
   567
sl@0
   568
//Taken out as controller does not check values
sl@0
   569
	//Change the metrical position (Out of Range Value High)
sl@0
   570
//	AddTestStepL( CTestMidiClntSetPositionMicroBeats::NewL( _L("MM-MMF-MIDICLNT-U-0105"), ETestMicrobeatsHighOutOfRange ));
sl@0
   571
sl@0
   572
	//Sets the frequency (Both Arguments are Set to Zero)
sl@0
   573
//	AddTestStepL( CTestSetSyncUpdateCallbackInterval::NewL( _L("MM-MMF-MIDICLNT-U-0107"), ETestMicrosecondsMicrobeatsZero));
sl@0
   574
sl@0
   575
	//Sets the frequency (Microseconds Value is Out of Range)
sl@0
   576
	AddTestStepL( CTestSetSyncUpdateCallbackInterval::NewL( _L("MM-MMF-MIDICLNT-U-0108"), ETestMicrosecondsLowOutOfRange));
sl@0
   577
sl@0
   578
	//Sets the frequency (Out of Range Interval Low)
sl@0
   579
	AddTestStepL( CTestSetSyncUpdateCallbackInterval::NewL( _L("MM-MMF-MIDICLNT-U-0109"), ETestMicrobeatsLowOutOfRange));
sl@0
   580
sl@0
   581
// Does not calculate errors on out of range values, all values above 0 are a pass, Invalid test
sl@0
   582
	//Sets the frequency (Out of Range Interval High)
sl@0
   583
//	AddTestStepL( CTestSetSyncUpdateCallbackInterval::NewL( _L("MM-MMF-MIDICLNT-U-0110"), ETestMicrobeatsHighOutOfRange));
sl@0
   584
sl@0
   585
	//Sends a midi message (Call With NULL Message)
sl@0
   586
//	AddTestStepL( CTestSendMessage::NewL( _L("MM-MMF-MIDICLNT-U-0112"), ETestNullMessage, KNullDesC8) );
sl@0
   587
sl@0
   588
	//Sends a midi message (Call With Unsupported Message)
sl@0
   589
//	AddTestStepL( CTestSendMessage::NewL( _L("MM-MMF-MIDICLNT-U-0113"), ETestUnsupported, _L8("Unsupported MIDI Message")) );
sl@0
   590
sl@0
   591
	//Sends a midi message (Call With Corrupt Message)
sl@0
   592
//	AddTestStepL( CTestSendMessage::NewL( _L("MM-MMF-MIDICLNT-U-0114"), ETestCorrupt, _L8("Corrupt MIDI Message")) );
sl@0
   593
sl@0
   594
	//Sends a mip message (Invalid Device ID)
sl@0
   595
//	AddTestStepL( CTestSendMipMessage::NewL( _L("MM-MMF-MIDICLNT-U-0116"), ETestInvalidId ));
sl@0
   596
sl@0
   597
	//Sends a mip message  (NULL Message)
sl@0
   598
//	AddTestStepL( CTestSendMipMessage::NewL( _L("MM-MMF-MIDICLNT-U-0117"), ETestNullMessage) );
sl@0
   599
sl@0
   600
	//Sends a mip message (Unsupported Message)
sl@0
   601
//	AddTestStepL( CTestSendMipMessage::NewL( _L("MM-MMF-MIDICLNT-U-0118"), ETestUnsupported) );
sl@0
   602
sl@0
   603
	// Duplicate requirement
sl@0
   604
	//Sends a mip message (Unsupported Message)
sl@0
   605
//	AddTestStepL( CTestSendMipMessage::NewL( _L("MM-MMF-MIDICLNT-U-0119"), ETestUnsupported ));
sl@0
   606
sl@0
   607
	//Sends a mip message (Corrupt Message)
sl@0
   608
//	AddTestStepL( CTestSendMipMessage::NewL( _L("MM-MMF-MIDICLNT-U-0120"), ETestCorrupt) );
sl@0
   609
sl@0
   610
	//The number of sound banks (No Custom banks Exist)
sl@0
   611
//	AddTestStepL( CTestNumberOfBanks::NewL( _L("MM-MMF-MIDICLNT-U-0122"), ETestNoCustomBanks) );
sl@0
   612
sl@0
   613
	//The number of sound banks (No Standard bank Exist)
sl@0
   614
//	AddTestStepL( CTestNumberOfBanks::NewL( _L("MM-MMF-MIDICLNT-U-0123"), ETestNoStandardBanks ));
sl@0
   615
sl@0
   616
	//The identifier of a sound bank (Invalid Bank Index)
sl@0
   617
//	AddTestStepL( CTestGetBankId::NewL( _L("MM-MMF-MIDICLNT-U-0125"), ETestInvalidIndex) );
sl@0
   618
sl@0
   619
	//The identifier of a sound bank (No Custom Banks Exist)
sl@0
   620
//	AddTestStepL( CTestGetBankId::NewL( _L("MM-MMF-MIDICLNT-U-0126"), ETestNoCustomBanks) );
sl@0
   621
sl@0
   622
	//The identifier of a sound bank  (No Standard Banks Exist)
sl@0
   623
//	AddTestStepL( CTestGetBankId::NewL( _L("MM-MMF-MIDICLNT-U-0127"), ETestNoStandardBanks ));
sl@0
   624
sl@0
   625
	//Loads a custom sound bank (Null Filename)
sl@0
   626
//	AddTestStepL( CTestLoadCustomBank::NewL( _L("MM-MMF-MIDICLNT-U-0130"), ETestNullMessage) );
sl@0
   627
sl@0
   628
	//Loads a custom sound bank (lnvalid Filename)
sl@0
   629
//	AddTestStepL( CTestLoadCustomBank::NewL( _L("MM-MMF-MIDICLNT-U-0131"), ETestInvalidMessage) );
sl@0
   630
sl@0
   631
	//Loads a custom sound bank (Unsupported File)
sl@0
   632
//	AddTestStepL( CTestLoadCustomBank::NewL( _L("MM-MMF-MIDICLNT-U-0132"), ETestUnsupported) );
sl@0
   633
sl@0
   634
	//Removes a custom sound bank (ID of Bank Not Loaded)
sl@0
   635
//	AddTestStepL( CTestUnloadCustomBank::NewL( _L("MM-MMF-MIDICLNT-U-0134"), ETestNotLoaded ));
sl@0
   636
sl@0
   637
	//Gets the number of instruments  (Invalid Bank Index)
sl@0
   638
//	AddTestStepL( CTestNumberOfInstruments::NewL( _L("MM-MMF-MIDICLNT-U-0138"), ETestInvalidIndex ));
sl@0
   639
sl@0
   640
	//Gets the number of instruments  (No Custome Banks Exist)
sl@0
   641
//	AddTestStepL( CTestNumberOfInstruments::NewL( _L("MM-MMF-MIDICLNT-U-0139"), ETestNoCustomBanks ));
sl@0
   642
sl@0
   643
	//Gets the number of instruments  (No Standard Banks Exist)
sl@0
   644
//	AddTestStepL( CTestNumberOfInstruments::NewL( _L("MM-MMF-MIDICLNT-U-0140"), ETestNoStandardBanks ));
sl@0
   645
sl@0
   646
	//Gets the identifier of a instrument  (Invalid Bank ID)
sl@0
   647
//	AddTestStepL( CTestGetInstrumentId::NewL( _L("MM-MMF-MIDICLNT-U-0142"), ETestInvalidId ));
sl@0
   648
sl@0
   649
	//Gets the identifier of a instrument (No Custome Banks Exist)
sl@0
   650
//	AddTestStepL( CTestGetInstrumentId::NewL( _L("MM-MMF-MIDICLNT-U-0143"), ETestNoCustomBanks ));
sl@0
   651
sl@0
   652
	//Gets the identifier of a instrument (No Standard Banks Exist)
sl@0
   653
//	AddTestStepL( CTestGetInstrumentId::NewL( _L("MM-MMF-MIDICLNT-U-0144"), ETestNoStandardBanks ));
sl@0
   654
sl@0
   655
	//Gets the identifier of a instrument (Invalid Program/Instrument Index)
sl@0
   656
//	AddTestStepL( CTestGetInstrumentId::NewL( _L("MM-MMF-MIDICLNT-U-0145"), ETestInvalidIndex ));
sl@0
   657
sl@0
   658
//Check this//
sl@0
   659
	//Change it to return EFail for failing negative test
sl@0
   660
	//Gets the name of a instrument (Invalid Program/Instrument Information)
sl@0
   661
	AddTestStepL( CTestReturnsInstrumentName::NewL( _L("MM-MMF-MIDICLNT-U-0147"), ETestNegative ));
sl@0
   662
//
sl@0
   663
sl@0
   664
	//Sets a channel to use the instrument  (Invalid Channel)
sl@0
   665
//	AddTestStepL( CTestSetInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0149"), ETestInvalidChannel ));
sl@0
   666
sl@0
   667
	//Sets a channel to use the instrument (Invalid Program/Instrument ID)
sl@0
   668
//	AddTestStepL( CTestSetInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0150"), ETestInvalidId ));
sl@0
   669
sl@0
   670
	//Loads a custom Instrument (Invalid Bank ID)
sl@0
   671
//	AddTestStepL( CTestLoadCustomInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0152"), ETestInvalidId ));
sl@0
   672
sl@0
   673
	//Loads a custom Instrument (Load Program/Instrument Already Loaded)
sl@0
   674
//	AddTestStepL( CTestLoadCustomInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0153"), ETestAlreadyLoaded ));
sl@0
   675
sl@0
   676
	//Loads a custom Instrument (Load Unsupported Program/Instrument)
sl@0
   677
//	AddTestStepL( CTestLoadCustomInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0154"), ETestUnsupported ));
sl@0
   678
sl@0
   679
	//Removes a instrument (Invalid Bank ID)
sl@0
   680
//	AddTestStepL( CTestUnloadCustomInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0156"), ETestInvalidId ));
sl@0
   681
sl@0
   682
	//Removes a instrument (ID of Program not Loaded)
sl@0
   683
//	AddTestStepL( CTestUnloadCustomInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0157"), ETestNotLoaded ));
sl@0
   684
sl@0
   685
	//Removes a instrument (Non-unloadable Program/Instrument)
sl@0
   686
//	AddTestStepL( CTestUnloadCustomInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0158"), ETestNotUnloadable ));
sl@0
   687
sl@0
   688
	//Queries the name of a particular percussion key (Invalid Note)
sl@0
   689
//	AddTestStepL( CTestPercussionKeyName::NewL( _L("MM-MMF-MIDICLNT-U-0160"), ETestInvalidId ));
sl@0
   690
sl@0
   691
	// Disabled until real MIDI controller available
sl@0
   692
	//Stop Time (No Midi Resource is Open)
sl@0
   693
	//AddTestStepL( CTestStopTime::NewL( _L("MM-MMF-MIDICLNT-U-0162"),ETestNoResource));
sl@0
   694
sl@0
   695
	//Set Stop Time (Stop time out of range high)
sl@0
   696
	AddTestStepL( CTestSetStopTime::NewL( _L("MM-MMF-MIDICLNT-U-0164"),ETestOutOfRangeHigh));
sl@0
   697
sl@0
   698
	//Set Stop Time (Stop time out of range low)
sl@0
   699
	AddTestStepL( CTestSetStopTime::NewL( _L("MM-MMF-MIDICLNT-U-0165"),ETestOutOfRangeLow));
sl@0
   700
sl@0
   701
	//Set the number of times to repeat (Repeat: Out of Range High, Trailing Silence: Out of Range High)
sl@0
   702
	AddTestStepL( CTestSetRepeats::NewL( _L("MM-MMF-MIDICLNT-U-0169"), ETestOutOfRange ));
sl@0
   703
sl@0
   704
	//It gave no error even it is Channel16. So it should be because no plugin.
sl@0
   705
	//volume setting of a channel (Invalid Channel)  -- DEFERED (No suitable Midi Controller)
sl@0
   706
	AddTestStepL( CTestReturnChannelVolume::NewL( _L("MM-MMF-MIDICLNT-U-0175"), ETestInvalidChannel ));
sl@0
   707
sl@0
   708
	//Set the volume of a channel (Invalid Channel Number)
sl@0
   709
	AddTestStepL( CTestSetChannelVolume::NewL( _L("MM-MMF-MIDICLNT-U-0178"), ETestInvalidChannelOutOfRange));
sl@0
   710
sl@0
   711
	//Set the volume of a channel (Volume out of Range High)
sl@0
   712
	AddTestStepL( CTestSetChannelVolume::NewL( _L("MM-MMF-MIDICLNT-U-0179"), ETestVolumeHighOutOfRange));
sl@0
   713
sl@0
   714
	//Set the volume of a channel (Volume out of Range Low)
sl@0
   715
	AddTestStepL( CTestSetChannelVolume::NewL( _L("MM-MMF-MIDICLNT-U-0180"), ETestVolumeLowOutOfRange));
sl@0
   716
sl@0
   717
//Check this
sl@0
   718
//Is the error message 'NotSupported' corect??
sl@0
   719
	//Set the muting state of a channel (Invalid Channel)
sl@0
   720
	AddTestStepL( CTestSetChannelMute::NewL( _L("MM-MMF-MIDICLNT-U-0182"), ETestInvalidChannelOutOfRange));
sl@0
   721
//
sl@0
   722
sl@0
   723
//Taken out as controller does not check values
sl@0
   724
	//Set the overall volume (Out of Range Volume Low) 
sl@0
   725
//	AddTestStepL( CTestSetVolume::NewL( _L("MM-MMF-MIDICLNT-U-0186"), ETestVolumeLowOutOfRange));
sl@0
   726
sl@0
   727
//Taken out as controller does not check values
sl@0
   728
	//Set the overall volume (Out of Range Volume High) 
sl@0
   729
//	AddTestStepL( CTestSetVolume::NewL( _L("MM-MMF-MIDICLNT-U-0187"), ETestVolumeHighOutOfRange));
sl@0
   730
sl@0
   731
//Taken out as controller does not check values
sl@0
   732
	//Length of time over which the volume is faded up (Out of Range Volume Low) 
sl@0
   733
//	AddTestStepL( CTestSetVolumeRamp::NewL( _L("MM-MMF-MIDICLNT-U-0189"), ETestRampDurationLowOutOfRange));
sl@0
   734
sl@0
   735
//Taken out as controller does not check values
sl@0
   736
	//Length of time over which the volume is faded up (Out of Range Volume High) 
sl@0
   737
//	AddTestStepL( CTestSetVolumeRamp::NewL( _L("MM-MMF-MIDICLNT-U-0190"), ETestRampDurationHighOutOfRange));
sl@0
   738
sl@0
   739
	//Get the stereo balance value (Plugin Does Not Support Balance)
sl@0
   740
//	AddTestStepL( CTestGetBalance::NewL( _L("MM-MMF-MIDICLNT-U-0192"), ETestUnsupported));
sl@0
   741
sl@0
   742
	//Set the stereo balance value  (Plugin Does Not Support Balance)
sl@0
   743
//	AddTestStepL( CTestSetBalance::NewL( _L("MM-MMF-MIDICLNT-U-0194"), ETestUnsupported));
sl@0
   744
sl@0
   745
//Taken out as controller does not check values
sl@0
   746
	//Set the stereo balance value (Out of Range Volume Low)
sl@0
   747
//	AddTestStepL( CTestSetBalance::NewL( _L("MM-MMF-MIDICLNT-U-0195"), ETestBalanceLowOutOfRange));
sl@0
   748
sl@0
   749
//Taken out as controller does not check values
sl@0
   750
	//Set the stereo balance value (Out of Range Volume High)
sl@0
   751
//	AddTestStepL( CTestSetBalance::NewL( _L("MM-MMF-MIDICLNT-U-0196"), ETestBalanceHighOutOfRange));
sl@0
   752
sl@0
   753
//  We need this to confict and cause PreferenceConflictsCannotBeResolved
sl@0
   754
	//Set the priority (Preference Conflicts Cannot be Resolved)  -- DEFERED (Need another Midi Client)
sl@0
   755
//	AddTestStepL( CTestSetPriority::NewL( _L("MM-MMF-MIDICLNT-U-0198"), ETestPreferenceConflictsCannotBeResolved));
sl@0
   756
sl@0
   757
// Taken out we need plugin
sl@0
   758
	//Get the number of meta data entries  (Plugin Does Not Support Metadata)
sl@0
   759
//	AddTestStepL( CTestNumberOfXmfMetaDataEntries::NewL( _L("MM-MMF-MIDICLNT-U-0200"), ETestUnsupported));
sl@0
   760
sl@0
   761
//Causes Access Violation
sl@0
   762
	//Retrieve the specified meta data entry (Invalid Index)
sl@0
   763
//	AddTestStepL( CTestGetXmfMetaDataEntry::NewL( _L("MM-MMF-MIDICLNT-U-0202"), ETestMetaDataIndexInvalid));
sl@0
   764
sl@0
   765
//Causes Access Violation
sl@0
   766
	//Retrieve the specified meta data entry (Plugin Does Not Support Metadata)
sl@0
   767
//	AddTestStepL( CTestGetXmfMetaDataEntry::NewL( _L("MM-MMF-MIDICLNT-U-0203"), ETestUnsupported));
sl@0
   768
	
sl@0
   769
	//Query the instrument (Invalid channel) - DEFERRED
sl@0
   770
	//AddTestStepL( CTestGetInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0216"), ETestInvalidChannel));
sl@0
   771
sl@0
   772
	//Query the instrument (Invalid Id) - DEFERRED
sl@0
   773
	//AddTestStepL( CTestGetInstrument::NewL( _L("MM-MMF-MIDICLNT-U-0217"), ETestInvalidId));
sl@0
   774
sl@0
   775
	//Loads an individual instrument from descriptor (Invalid ID) - DEFERRED
sl@0
   776
	//AddTestStepL( CTestLoadCustomInstrumentData::NewL( _L("MM-MMF-MIDICLNT-U-0220"), ETestInvalidId));
sl@0
   777
sl@0
   778
	//Loads an individual instrument from descriptor (Already loaded) - DEFERRED
sl@0
   779
	//AddTestStepL( CTestLoadCustomInstrumentData::NewL( _L("MM-MMF-MIDICLNT-U-0221"), ETestAlreadyLoaded));
sl@0
   780
sl@0
   781
	//Loads an individual instrument from descriptor (Unsupported / Bad instrument data) - DEFERRED
sl@0
   782
	//AddTestStepL( CTestLoadCustomInstrumentData::NewL( _L("MM-MMF-MIDICLNT-U-0222"), ETestUnsupported));
sl@0
   783
	
sl@0
   784
	AddTestStepL( CTestCheckInterface::NewL( _L("MM-MMF-MIDICLNT-U-0300"), ETestValid));
sl@0
   785
sl@0
   786
	AddTestStepL(CTestStepMidiClntAllocFailNew::NewL());
sl@0
   787
	AddTestStepL(CTestStepMidiClntAllocFailOpenFile::NewL(_L("MM-MMF-MIDICLNT-U-0200-CP")));
sl@0
   788
	AddTestStepL(CTestStepMidiClntAllocFailOpenDes::NewL());
sl@0
   789
	AddTestStepL(CTestStepMidiClntAllocFailOpenUrl::NewL());
sl@0
   790
sl@0
   791
	//MS 3.4 File Handles API
sl@0
   792
	//NEGATIVE TESTS
sl@0
   793
	//Open a MIDI File containing text data and try to perform initialisation ready for playback - (Invalid File).
sl@0
   794
	AddTestStepL( CTestMidiClntOpenFileByHandle::NewL( _L("MM-MMF-MIDICLNT-U-0223"), KSectionTwo, KFilename, ETrue, ETestValid) );
sl@0
   795
	
sl@0
   796
	//POSITIVE TESTS
sl@0
   797
	//Open a file containing midi data and perform initialisation ready for playback.
sl@0
   798
	AddTestStepL( CTestMidiClntOpenFileByHandle::NewL( _L("MM-MMF-MIDICLNT-U-1001"), KSectionOne, KFilename, ETrue, ETestValid) );
sl@0
   799
	//Initiate or resume playback of a previously opened resource.
sl@0
   800
	AddTestStepL( CTestMidiClntPlayFileByHandle::NewL( _L("MM-MMF-MIDICLNT-U-1002")));
sl@0
   801
	
sl@0
   802
	//ALLOC TESTS
sl@0
   803
	//Alloc test to Open a file containing midi data and perform initialisation ready for playback.
sl@0
   804
	AddTestStepL(CTestStepMidiClntAllocFailOpenFile::NewL(_L("MM-MMF-MIDICLNT-U-1003")));
sl@0
   805
	
sl@0
   806
	AddTestStepL(CTestDrmNegative::NewL(_L("MM-MMF-MIDICLNT-U-0321-HP"),ETestNegative ,KDrm0321));
sl@0
   807
	AddTestStepL(CTestDrmNegative::NewL(_L("MM-MMF-MIDICLNT-U-0322-HP"),ETestNegative ,KDrm0322));
sl@0
   808
	AddTestStepL(CTestDrmPlay::NewL(_L("MM-MMF-MIDICLNT-U-0323-HP"),ETestValid ,KDrm0323));
sl@0
   809
	AddTestStepL(CTestDrmNegative::NewL(_L("MM-MMF-MIDICLNT-U-0324-HP"),ETestNegative ,KDrm0324));
sl@0
   810
	AddTestStepL(CTestDrmPlay::NewL(_L("MM-MMF-MIDICLNT-U-1011-HP"),ETestValid ,KDrm1011));
sl@0
   811
	AddTestStepL(CTestDrmPlay::NewL(_L("MM-MMF-MIDICLNT-U-1012-HP"),ETestValid ,KDrm1012));
sl@0
   812
	AddTestStepL(CTestDrmPlayStop::NewL(_L("MM-MMF-MIDICLNT-U-1013-HP"),ETestValid ,KDrm1013));
sl@0
   813
	AddTestStepL(CTestDrmPlay::NewL(_L("MM-MMF-MIDICLNT-U-1014-HP"),ETestValid ,KDrm1014));
sl@0
   814
	AddTestStepL(CTestDrmPlay::NewL(_L("MM-MMF-MIDICLNT-U-1015-HP"),ETestValid ,KDrm1015));
sl@0
   815
	AddTestStepL(CTestDrmPlayWithUI::NewL(_L("MM-MMF-MIDICLNT-U-1016-HP"),ETestValid ,KDrm1016));
sl@0
   816
	
sl@0
   817
	//Play a midifile without opening it and check the status while playing and after it is been  stopped.
sl@0
   818
	AddTestStepL(CTestMidiClntPlayWithoutFile::NewL(_L("MM-MMF-MIDICLNT-U-1020-HP")));
sl@0
   819
	//Open and Play a midifile and check the status while playing and after it is been  stopped.
sl@0
   820
	AddTestStepL(CTestMidiClntOpenAndPlayFile::NewL(_L("MM-MMF-MIDICLNT-U-1021-HP"),KSectionOne, KFilename));
sl@0
   821
	
sl@0
   822
	//Open and play multiple concurrent midi objects, using shared heap mode, to check we don't run out of heaps
sl@0
   823
	AddTestStepL(CTestMidiClntMultiSharedHeap::NewL(_L("MM-MMF-MIDICLNT-U-2000-HP"),KSectionOne, KFilename, EFalse));
sl@0
   824
	AddTestStepL(CTestMidiClntMultiSharedHeap::NewL(_L("MM-MMF-MIDICLNT-U-2001-HP"),KSectionOne, KFilename, ETrue));
sl@0
   825
	
sl@0
   826
	// repeatedly create and delete multiple concurrent midi objects, using shared heap mode, to check no chunks are leaked
sl@0
   827
	AddTestStepL(CTestMidiClntRepeatMultiSharedHeap::NewL(_L("MM-MMF-MIDICLNT-U-2002-HP"),KSectionOne, KFilename, EFalse));
sl@0
   828
	AddTestStepL(CTestMidiClntRepeatMultiSharedHeap::NewL(_L("MM-MMF-MIDICLNT-U-2003-HP"),KSectionOne, KFilename, ETrue));
sl@0
   829
}
sl@0
   830
sl@0
   831