omxilcomp/omxilgeneric/filesource/tests/unit/te_omx_filesource_other.xml
changeset 0 58be5850fb6c
equal deleted inserted replaced
-1:000000000000 0:58be5850fb6c
       
     1 <?xml version="1.0" encoding="UTF-8" ?>
       
     2 <!--
       
     3 	Copyright (c) NOKIA 2009. All rights reserved.
       
     4 	file Source Sink Other tests for OpenMAX IL.
       
     5 	
       
     6 
       
     7 	Expected Result:
       
     8 	BasicOperation				Pass
       
     9 	GetFilenameNoFileSet_filesource		Fail	OMX_ErrorNotReady
       
    10 	GetFilenameOverFlow_filesource		Fail	OMX_ErrorBadParameter	
       
    11 	BasicOperation_nofilename_filesource	Pass
       
    12 -->
       
    13 
       
    14 <TestSet>
       
    15 
       
    16 	<!--  ->  
       
    17 		File Source Other -> 	File Sink Other	 	
       
    18 	-->
       
    19 	<Test name="BasicOperation">
       
    20 		<!-- Simple file read\write testcase: all comps. to IDLE then to EXECUTING then 3 secs later to IDLE
       
    21 			 -->
       
    22 		<LoadComponent comp="filesink" name="OMX.NOKIA.OTHER.FILESINK" />
       
    23 		<LoadComponent comp="filesource" name="OMX.NOKIA.OTHER.FILESOURCE" />
       
    24 		
       
    25 		<SetupTunnel output="filesource:0" input="filesink:0" />
       
    26 		<BufferSupplierOverride output="filesource:0" input="filesink:0" supplier="output" />
       
    27 		
       
    28 		<SetFilename comp="filesink" filename="C:\omxil\data\aac_same_other.stream" />
       
    29 		
       
    30 		<SetFilename comp="filesource" filename="C:\omxil\data\aac.stream" />
       
    31 		<GetFilename comp="filesource" filename="C:\omxil\data\aab.stream"/>	
       
    32 
       
    33 		<IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>
       
    34 		<IgnoreEvent comp="filesource" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>
       
    35 		
       
    36 		<IgnoreEvent comp="filesink" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/>
       
    37 		<IgnoreEvent comp="filesource" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/>
       
    38 		
       
    39 		<AllTransition state="idle" order="auto"/>
       
    40 		<AllTransition state="executing" order="auto" />
       
    41 		<Wait delaytime="3000000" />
       
    42 		<AllTransition state="idle" order="auto"/>
       
    43 		<AllTransition state="loaded" order="auto"/>
       
    44 	</Test>
       
    45 	
       
    46 	
       
    47 	<Test name="GetFilenameNoFileSet_filesource">
       
    48 		<LoadComponent comp="filesource" name="OMX.NOKIA.OTHER.FILESOURCE" />
       
    49 		<!--OMX_ErrorNotReady-->
       
    50 		<ExpectEvent comp="filesource" event="Error" nData1="0x80001010" nData2="0"/>
       
    51 		<GetFilename comp="filesource" filename="C:\omxil\data\aab.stream" expectedomxerr="OMX_ErrorNotReady"/>
       
    52 	</Test>
       
    53 	
       
    54 	<Test name="GetFilenameOverFlow_filesource">
       
    55 		<LoadComponent comp="filesource" name="OMX.NOKIA.OTHER.FILESOURCE" />
       
    56 		<!--OMX_ErrorBadParameter-->
       
    57 		
       
    58 		<SetFilename comp="filesource" filename="C:\omxil\data\aac.stream" />
       
    59 		<IgnoreEvent comp="filesource" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>
       
    60 		
       
    61 		<ExpectEvent comp="filesource" event="Error" nData1="0x80001005" nData2="0" />
       
    62 		<GetFilename comp="filesource" filename="C:\omxil\data\aa.stream" expectedomxerr="OMX_ErrorBadParameter"/>
       
    63 	</Test>
       
    64 	
       
    65 	
       
    66 	<Test name="BasicOperation_nofilename_filesource">
       
    67 		<!-- Simple file read\write testcase: all comps. to IDLE then to EXECUTING then 3 secs later to IDLE
       
    68 		 no filename is set for the file source -->
       
    69 		<LoadComponent comp="filesink" name="OMX.NOKIA.OTHER.FILESINK" />
       
    70 		<LoadComponent comp="filesource" name="OMX.NOKIA.OTHER.FILESOURCE" />
       
    71 
       
    72 		<SetupTunnel output="filesource:0" input="filesink:0" />
       
    73 		<BufferSupplierOverride output="filesource:0" input="filesink:0" supplier="output" />
       
    74 
       
    75 		<SetFilename comp="filesink" filename="C:\omxil\data\aac_other_invalid.stream" />
       
    76 		
       
    77 		<IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>
       
    78 		<IgnoreEvent comp="filesource" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/>
       
    79 
       
    80 		<IgnoreEvent comp="filesink" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/>
       
    81 		<IgnoreEvent comp="filesource" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/>
       
    82 
       
    83 		<AllTransition state="idle" order="auto"/>
       
    84 		<AllTransition state="executing" order="auto" />
       
    85 		<Wait delaytime="3000000" />
       
    86 		<AllTransition state="idle" order="auto"/>
       
    87 		<AllTransition state="loaded" order="auto"/>
       
    88 	</Test>
       
    89 	
       
    90 	
       
    91 </TestSet>
       
    92 
       
    93 
       
    94