[Define]
Local 1
Streaming 0
ETrue 1
EFalse 0

ELocalVideoFile  0
ELocalAudioFile  1
ELocalRamFile    2
ELocalSdpFile    3
EUrl             4
ELocalAudioPlaylist  5
EProgressiveDownload 6
EFlashVideoFile      7
ELocalAsxFile        8
EUnidentified        9

NoPathNeeded 0
PathNeeded 1

No  0
Yes 1

ERFile 1
ERFile64 0

[Enddefine]

[Test]
title 1 MediaRecognizer - IdentifyMediaType via filename 1
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileName ELocalVideoFile test.3gp PathNeeded
delete PlaybackHelperTest
[Endtest]

[Test]
title 2 MediaRecognizer - IdentifyMediaType via 32-bit file handle
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileHandle ERFile ELocalVideoFile test.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 3 MediaRecognizer - IdentifyMediaType via filename 2
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileName ELocalAsxFile asx_v3.asx PathNeeded
delete PlaybackHelperTest
[Endtest]

[Test]
title 4 MediaRecognizer - IdentifyMediaType via 32-bit file handle
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileHandle ERFile ELocalAsxFile asx_v3.asx
delete PlaybackHelperTest
[Endtest]

[Test]
title 5 MediaRecognizer - IdentifyMediaType via filename 3
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileName EUnidentified rtsp:\/\/1.1.1.1/1.3gp NoPathNeeded
delete PlaybackHelperTest
[Endtest]

[Test]
title 6 MediaRecognizer - MimeType via filename
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest MimeTypeViaFileName video/3gpp test.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 7 MediaRecognizer - MimeType via 32-bit file handle
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest MimeTypeViaFileHandle ERFile video/3gpp test.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 8 MediaRecognizer - IsValidStreamingPrefix, TRUE
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IsValidStreamingPrefix ETrue rtsp:\/\/1.1.1.1/1.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 9 MediaRecognizer - IsValidStreamingPrefix, FALSE
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IsValidStreamingPrefix EFalse rts:\/\/1.1.1.1/1.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 10 MediaRecognizer - IsValidUrlPrefix TDesC
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IsValidUrlPrefix1 ETrue rtspu:\/\/1.1.1.1/1.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 11 MediaRecognizer - IsValidUrlPrefix TDesC8
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IsValidUrlPrefix2 ETrue rtspt:\/\/1.1.1.1/1.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 12 MediaRecognizer - FreeFilehandleForRecognizer - after IdentifyMediaTypeViaFileHandle via RFile
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileHandle ERFile ELocalVideoFile test.3gp
PlaybackHelperTest FreeFilehandleForRecognizer
delete PlaybackHelperTest
[Endtest]

[Test]
title 13 MediaRecognizer - FreeFilehandleForRecognizer - after IdentifyMediaTypeViaFileHandle via RFile
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileHandle ERFile ELocalVideoFile test.3gp
PlaybackHelperTest FreeFilehandleForRecognizer
delete PlaybackHelperTest
[Endtest]

[Test]
title 14 MediaRecognizer - FreeFilehandleForRecognizer - no handle reserved
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest FreeFilehandleForRecognizer
delete PlaybackHelperTest
[Endtest]

[Test]
title 15 StreamingLinkModel - OpenLinkFile via filename
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenLinkFile1 multiple_streaming_link.ram
delete PlaybackHelperTest
[Endtest]

[Test]
title 16 StreamingLinkModel - OpenLinkFile1 via file handle
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenLinkFile2 multiple_streaming_link.ram
delete PlaybackHelperTest
[Endtest]

[Test]
title 17 StreamingLinkModel - GetNextLink
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenLinkFile1 multiple_streaming_link.ram
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/1.3gp
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/2.rm
delete PlaybackHelperTest
[Endtest]

[Test]
title 18 StreamingLinkModel - MaxLinkLength
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenLinkFile1 multiple_streaming_link.ram
PlaybackHelperTest MaxLinkLength 117
delete PlaybackHelperTest
[Endtest]

[Test]
title 19 StreamingLinkModel - CreateNewLinkFile
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest CreateNewLinkFile created.ram rtsp:\/\/1.1.1.1/1.3gp rtsp:\/\/1.1.1.1/2.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 20 StreamingLinkModel - MultiLinksCount
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenLinkFile1 multiple_streaming_link.ram
PlaybackHelperTest MultiLinksCount 6
delete PlaybackHelperTest
[Endtest]

[Test]
title 21 StreamingLinkModel - ResetLinkCount
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenLinkFile1 multiple_streaming_link.ram
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/1.3gp
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/2.rm
PlaybackHelperTest ResetLinkCount
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/1.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 22 StreamingLinkModel - ResetLinkCount, GetNextLink not called
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenLinkFile1 multiple_streaming_link.ram
PlaybackHelperTest ResetLinkCount
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/1.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 23 StreamingLinkModel - ResetLinkCount, end of file
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenLinkFile1 multiple_streaming_link.ram
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/1.3gp
PlaybackHelperTest ResetLinkCount
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/2.rm
PlaybackHelperTest ResetLinkCount
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/3.3gp
PlaybackHelperTest ResetLinkCount
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/4.rm
PlaybackHelperTest ResetLinkCount
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/5.3gp
PlaybackHelperTest ResetLinkCount
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/6.rm
PlaybackHelperTest ResetLinkCount
PlaybackHelperTest GetNextLink Streaming rtsp:\/\/1.1.1.1/1.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 24 StreamingLinkModel - FreeFilehandleForLink
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenLinkFile1 multiple_streaming_link.ram
PlaybackHelperTest FreeFilehandleForLink
delete PlaybackHelperTest
[Endtest]

[Test]
title 25 StreamingLinkModel - FreeFilehandleForLink, no handle reserved
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest FreeFilehandleForLink
delete PlaybackHelperTest
[Endtest]

[Test]
title 26 StreamingLinkModel - OpenAsxLink via filename - ASX v2
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_v2.asx
delete PlaybackHelperTest
[Endtest]

[Test]
title 27 StreamingLinkModel - OpenAsxLink via file handle - ASX v2
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_v2.asx
delete PlaybackHelperTest
[Endtest]

[Test]
title 28 StreamingLinkModel - OpenAsxLink via filename - ASX v3
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_v3.asx
delete PlaybackHelperTest
[Endtest]

[Test]
title 29 StreamingLinkModel - OpenAsxLink via file handle - ASX v3
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_v3.asx
delete PlaybackHelperTest
[Endtest]

[Test]
title 30 StreamingLinkModel - MultiLinksCount, OpenAsxLink via filename - ASX v2
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_v2.asx
PlaybackHelperTest MultiLinksCount 2
delete PlaybackHelperTest
[Endtest]

[Test]
title 31 StreamingLinkModel - MultiLinksCount, OpenAsxLink via file handle - ASX v2
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_v2.asx
PlaybackHelperTest MultiLinksCount 2
delete PlaybackHelperTest
[Endtest]

[Test]
title 32 StreamingLinkModel - MultiLinksCount, OpenAsxLink via filename - ASX v3
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_v3.asx
PlaybackHelperTest MultiLinksCount 12
delete PlaybackHelperTest
[Endtest]

[Test]
title 33 StreamingLinkModel - MultiLinksCount, OpenAsxLink via file handle - ASX v3
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_v3.asx
PlaybackHelperTest MultiLinksCount 12
delete PlaybackHelperTest
[Endtest]

[Test]
title 34 StreamingLinkModel - GetNextLink, OpenAsxLink via filename - ASX v2
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_v2.asx
PlaybackHelperTest GetNextLink Streaming http:\/\/10.48.2.56:443/WMTest/256k_WMV9_QCIF_WMA9_30fps.wmv?MSWMExt=.asf
delete PlaybackHelperTest
[Endtest]

[Test]
title 35 StreamingLinkModel - GetNextLink, OpenAsxLink via filename - ASX v3
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_v3.asx
PlaybackHelperTest GetNextLink Streaming http:\/\/10.48.2.56:443/WMTest/256k_WMV9_QCIF_WMA9_30fps.wmv
delete PlaybackHelperTest
[Endtest]

[Test]
title 36 DevSoundIf - GetNumberOfVolumeSteps
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest GetNumberOfVolumeSteps 
delete PlaybackHelperTest
[Endtest]

[Test]
title 37 StreamingLinkModel - IsSeekable, OpenAsxLink via filename - ASX v3
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest OpenAsxLinkViaFileName asx_seek_v3.asx
PlaybackHelperTest GetNextLink Streaming http:\/\/10.48.2.56:443/WMTest/256k_WMV9_QCIF_WMA9_30fps.wmv
PlaybackHelperTest IsSeekable No
PlaybackHelperTest GetNextLink Streaming http:\/\/10.48.2.56:443/WMTest/256k_WMV9_QCIF_WMA9_30fps.wmv
PlaybackHelperTest IsSeekable Yes
delete PlaybackHelperTest
[Endtest]

[Test]
title 38 MediaRecognizer - IdentifyMediaType via 64-bit file handle
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileHandle ERFile64 ELocalVideoFile test.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 39 MediaRecognizer - IdentifyMediaType via 64-bit file handle
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileHandle ERFile64 ELocalAsxFile asx_v3.asx
delete PlaybackHelperTest
[Endtest]

[Test]
title 40 MediaRecognizer - MimeType via 64-bit file handle
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest MimeTypeViaFileHandle ERFile64 video/3gpp test.3gp
delete PlaybackHelperTest
[Endtest]

[Test]
title 41 MediaRecognizer - FreeFilehandleForRecognizer - after IdentifyMediaTypeViaFileHandle via RFile64
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileHandle ERFile64 ELocalVideoFile test.3gp
PlaybackHelperTest FreeFilehandleForRecognizer
delete PlaybackHelperTest
[Endtest]

[Test]
title 42 MediaRecognizer - FreeFilehandleForRecognizer - after IdentifyMediaTypeViaFileHandle via RFile64
create PlaybackHelperTest PlaybackHelperTest
PlaybackHelperTest IdentifyMediaTypeViaFileHandle ERFile64 ELocalVideoFile test.3gp
PlaybackHelperTest FreeFilehandleForRecognizer
delete PlaybackHelperTest
[Endtest]
