omxilcomp/omxilgeneric/filesink/tests/unit/te_omx_filesink_other.xml
author hgs
Thu, 14 Oct 2010 10:22:53 +0100
changeset 4 46e224560be8
parent 0 58be5850fb6c
permissions -rw-r--r--
2010wk42

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

	Expected Result:
	BasicOperation				Pass
	GetFilenameNoFileSet_filesink		Fail	OMX_ErrorNotReady
	GetFilenameOverFlow_filesink		Fail	OMX_ErrorBadParameter	
	BasicOperation_nofilename_filesink	Pass
-->

<TestSet>

	<!--  ->  
		File Source Other -> 	File Sink Other	 	
	-->
	<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.OTHER.FILESINK" />
		<LoadComponent comp="filesource" name="OMX.NOKIA.OTHER.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_other.stream" />
		
		<SetFilename comp="filesource" filename="C:\omxil\data\aac.stream" />
		<GetFilename comp="filesink" filename="C:\omxil\data\aab_same_other.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_filesink">
		<LoadComponent comp="filesink" name="OMX.NOKIA.OTHER.FILESINK" />
		<!--OMX_ErrorNotReady-->
		<ExpectEvent comp="filesink" event="Error" nData1="0x80001010" nData2="0"/>
		<GetFilename comp="filesink" filename="C:\omxil\data\aab.stream" expectedomxerr="OMX_ErrorNotReady"/>
	</Test>
	
	<Test name="GetFilenameOverFlow_filesink">
		<LoadComponent comp="filesink" name="OMX.NOKIA.OTHER.FILESINK" />
		<!--OMX_ErrorBadParameter-->
		
		<SetFilename comp="filesink" filename="C:\omxil\data\aac.stream" />
		<IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>
		
		<ExpectEvent comp="filesink" event="Error" nData1="0x80001005" nData2="0" />
		<GetFilename comp="filesink" filename="C:\omxil\data\aa.stream" expectedomxerr="OMX_ErrorBadParameter"/>
	</Test>
	
	
	<Test name="BasicOperation_nofilename_filesink">
		<!-- 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 sink -->
		<LoadComponent comp="filesink" name="OMX.NOKIA.OTHER.FILESINK" />
		<LoadComponent comp="filesource" name="OMX.NOKIA.OTHER.FILESOURCE" />

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

		<SetFilename comp="filesource" filename="C:\omxil\data\aac.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>