//
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description: 
//
//

// IID numbers for interfaces to mention during object creation
//	 XA_IID_NULL                    	1
//	 XA_IID_OBJECT                    	2
//	 XA_IID_CONFIGEXTENSION             3
//	 XA_IID_DYNAMICINTERFACEMANAGEMENT  4
//	 XA_IID_ENGINE                    	5
//	 XA_IID_THREADSYNC                  6
//	 XA_IID_PLAY                    	7
//	 XA_IID_PLAYBACKRATE                8
//	 XA_IID_PREFETCHSTATUS              9
//	 XA_IID_SEEK                    	10
//	 XA_IID_VOLUME                    	11
//	 XA_IID_IMAGECONTROLS               12
//	 XA_IID_IMAGEEFFECTS                13
//	 XA_IID_VIDEOPOSTPROCESSING         14
//	 XA_IID_RECORD                    	15
//	 XA_IID_SNAPSHOT                    16
//	 XA_IID_METADATAEXTRACTION          17
//	 XA_IID_METADATAINSERTION           18
//	 XA_IID_METADATATRAVERSAL           19
//	 XA_IID_DYNAMICSOURCE               20
//	 XA_IID_CAMERACAPABILITIES          21
//	 XA_IID_CAMERA                    	22
//	 XA_IID_AUDIOIODEVICECAPABILITIES   23
//	 XA_IID_DEVICEVOLUME                24
//	 XA_IID_EQUALIZER                   25
//	 XA_IID_OUTPUTMIX                   26
//	 XA_IID_RADIO                    	27
//	 XA_IID_RDS                         28
//	 XA_IID_VIBRA                    	29
//	 XA_IID_LED                         30
//	 XA_IID_AUDIODECODERCAPABILITIES    31
//	 XA_IID_AUDIOENCODER                32
//	 XA_IID_AUDIOENCODERCAPABILITIES    33
//	 XA_IID_IMAGEENCODERCAPABILITIES    34
//	 XA_IID_IMAGEDECODERCAPABILITIES    35
//	 XA_IID_IMAGEENCODER                36
//	 XA_IID_VIDEODECODERCAPABILITIES    37
//	 XA_IID_VIDEOENCODER                38
//	 XA_IID_VIDEOENCODERCAPABILITIES    39
//	 XA_IID_STREAMINFORMATION           40


[Test]
title 2.1 EngItf CreateCameraDevice
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
allownextresult 12
ALImpl al_engitf_CreateCameraDevice 0 1
//ALImpl al_objitf_Destroy 9
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 2.2 EngItf CreateRadioDvice
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
allownextresult 12
ALImpl al_engitf_CreateRadioDevice
//ALImpl al_objitf_Destroy 6
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 2.3 EngItf CreateLEDDevice
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
allownextresult 12
ALImpl al_engitf_CreateLEDDevice 0 1
//ALImpl al_objitf_Destroy 2
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 2.4 EngItf CreateVibraDevice
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
allownextresult 12
ALImpl al_engitf_CreateVibraDevice 0 1
//ALImpl al_objitf_Destroy 3
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.5 EngItf CreateMediaPlayer
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.wav
ALImpl al_SetDataFormat 1 audio/wav 15
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataLocator 3 1 2910736386 0
ALImpl al_SetDataFormat 1 audio/wav 15
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Destroy 4
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.6 EngItf CreateMediaRecorder
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/record.wav
ALImpl al_SetDataFormat 1 audio/wav 15
ALImpl al_SetDataSink 1 1 5
ALImpl al_SetDataLocator 3 1 2910736385 1
ALImpl al_SetDataSource 3 1 1
ALImpl al_engitf_CreateMediaRecorder
ALImpl al_objitf_Destroy 5
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 2.7 EngItf CreateOutputMix
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
allownextresult 12
ALImpl al_engitf_CreateOutputMix
//ALImpl al_objitf_Destroy 7
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.8 EngItf CreateMetaDataExtractor
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mp3 9
ALImpl al_SetDataSource 1 1 3
ALImpl al_engitf_CreateMetadataExtractor 1 17
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.9 EngItf CreateExtensionObject
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
allownextresult 12
ALImpl al_engitf_CreateExtensionObject 0 1
//ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.10 EngItf GetImplInfo
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_engitf_GetImplementationInfo
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 2.11 EngItf QuerySupportedProfiles
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_engitf_QuerySupportedProfiles
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.12 EngItf QueryNumSupportedInterfaces
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_engitf_QueryNumSupportedInterfaces 1
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.13 EngItf QuerySupportedInterfaces
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_engitf_QuerySupportedInterfaces 1 0
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.14 EngItf QueryNumSupportedExtension
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_engitf_QueryNumSupportedExtension
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.15 EngItf QuerySupportedExtension
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
allownextresult 2
ALImpl al_engitf_QuerySupportedExtension 0
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.16 EngItf IsExtensionSupported
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_engitf_IsExtensionSupported TestExtn
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.17 EngItf QueryLEDCapabilities
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_engitf_QueryLEDCapabilities
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]

[Test]
title 2.18 EngItf QueryVibraCapabilities
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_engitf_QueryVibraCapabilities
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest]