omxilcomp/omxilgeneric/filesource/tests/unit/te_omx_filesource_image.xml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 20:13:57 +0300
changeset 0 58be5850fb6c
permissions -rw-r--r--
Revision: 2010wk32 Kit: 201035

<?xml version="1.0" encoding="UTF-8" ?>
<!--
	Copyright (c) NOKIA 2009. All rights reserved.
	file Source Sink Image tests for OpenMAX IL.
	

	Expected Result:
	BasicOperation				Pass
	GetFilenameNoFileSet_filesource		Fail	OMX_ErrorNotReady
	GetFilenameOverFlow_filesource		Fail	OMX_ErrorBadParameter
	BasicOperation_nofilename_filesource	Pass
-->

<TestSet>

	<!--  ->  
		File Source Image -> 	File Sink Image	 	
	-->
	<Test name="BasicOperation">
		<!-- Simple file read\write testcase: all comps. to IDLE then to EXECUTING then 3 secs later to IDLE
			 -->
		<LoadComponent comp="filesink" name="OMX.NOKIA.IMAGE.FILESINK" />
		<LoadComponent comp="filesource" name="OMX.NOKIA.IMAGE.FILESOURCE" />
		
		<SetupTunnel output="filesource:0" input="filesink:0" />
		<BufferSupplierOverride output="filesource:0" input="filesink:0" supplier="output" />
		
		<SetFilename comp="filesink" filename="C:\omxil\data\aac_same_image.stream" />
		
		<SetFilename comp="filesource" filename="C:\omxil\data\aac.stream" />
		<GetFilename comp="filesource" filename="C:\omxil\data\aab.stream"/>	

		<IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>
		<IgnoreEvent comp="filesource" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>
		
		<IgnoreEvent comp="filesink" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/>
		<IgnoreEvent comp="filesource" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/>
		
		<AllTransition state="idle" order="auto"/>
		<AllTransition state="executing" order="auto" />
		<Wait delaytime="3000000" />
		<AllTransition state="idle" order="auto"/>
		<AllTransition state="loaded" order="auto"/>
	</Test>
	
	
	<Test name="GetFilenameNoFileSet_filesource">
		<LoadComponent comp="filesource" name="OMX.NOKIA.IMAGE.FILESOURCE" />
		<!--OMX_ErrorNotReady-->
		<ExpectEvent comp="filesource" event="Error" nData1="0x80001010" nData2="0"/>
		<GetFilename comp="filesource" filename="C:\omxil\data\aab.stream" expectedomxerr="OMX_ErrorNotReady"/>
	</Test>
	
	<Test name="GetFilenameOverFlow_filesource">
		<LoadComponent comp="filesource" name="OMX.NOKIA.IMAGE.FILESOURCE" />
		<!--OMX_ErrorBadParameter-->
		
		<SetFilename comp="filesource" filename="C:\omxil\data\aac.stream" />
		<IgnoreEvent comp="filesource" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>
		
		<ExpectEvent comp="filesource" event="Error" nData1="0x80001005" nData2="0" />
		<GetFilename comp="filesource" filename="C:\omxil\data\aa.stream" expectedomxerr="OMX_ErrorBadParameter"/>
	</Test>
	
	
	<Test name="BasicOperation_nofilename_filesource">
		<!-- Simple file read\write testcase: all comps. to IDLE then to EXECUTING then 3 secs later to IDLE
		 no filename is set for the file source -->
		<LoadComponent comp="filesink" name="OMX.NOKIA.IMAGE.FILESINK" />
		<LoadComponent comp="filesource" name="OMX.NOKIA.IMAGE.FILESOURCE" />

		<SetupTunnel output="filesource:0" input="filesink:0" />
		<BufferSupplierOverride output="filesource:0" input="filesink:0" supplier="output" />

		<SetFilename comp="filesink" filename="C:\omxil\data\aac_image_invalid.stream" />
		
		<IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>
		<IgnoreEvent comp="filesource" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>

		<IgnoreEvent comp="filesink" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/>
		<IgnoreEvent comp="filesource" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/>

		<AllTransition state="idle" order="auto"/>
		<AllTransition state="executing" order="auto" />
		<Wait delaytime="3000000" />
		<AllTransition state="idle" order="auto"/>
		<AllTransition state="loaded" order="auto"/>
	</Test>
	
	
</TestSet>