F//  ===========================================================================
//  Copyright © 2005-2006 Nokia Corporation.
//  This material, including documentation and any related
//  computer programs, is protected by copyright controlled by
//  Nokia Corporation. All rights are reserved. Copying,
//  including reproducing, storing, adapting or translating, any
//  or all of this material requires the prior written consent of
//  Nokia Corporation. This material also contains confidential
//  information which may not be disclosed to others without the
//  prior written consent of Nokia Corporation.
// ============================================================================
//
[Test]
title  MG_GetFilesInfo_Sound_FileSize_100_NULL_FileName_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Sound FileSize 100 NULL FileName Ascending 5 100 0
delete foobar
[Endtest]

[Test]
title  Loading_twice_MG_GetFilesInfo_Sound_FileSize_100_NULL_FileName_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Sound FileSize 100 NULL FileName Ascending 6 0
delete foobar
[Endtest]


[Test]
title  MG_GetFilesInfo_Image_FileSize_10_5_FileSize_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Image FileSize 10 5 FileSize Ascending 0 -1
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_FileSize_NULL_NULL_FileName_Ascending_-1
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music FileSize NULL NULL FileName Ascending 0 -1
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Sound_FileSize_100_NULL_FileName_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Sound FileSize 100 NULL FileName Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Video_NULL_NULL_NULL_FileName_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Video NULL NULL NULL FileName Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Video_NULL_NULL_NULL_FileName_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo StreamingURL NULL NULL NULL FileName Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_StreamingURL_FileDate_20070220:_20070323:_NULL_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo StreamingURL FileDate 20070220: 20070323: NULL Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_Artist_NULL_NULL_Artist_Ascending_-1
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music Artist NULL NULL Artist Ascending 0 -1
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_Artist_NULL_MLTR_Artist_Ascending__-1
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music Artist NULL MLTR Artist Ascending 0 -1
delete foobar
[Endtest]


[Test]
title  MG_GetFilesInfo_Music_Artist_MLTR_NULL_Artist_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music Artist MLTR NULL Artist Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_Artist_MLTR_800_Artist_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music Artist MLTR 800 Artist Ascending 0 0
delete foobar
[Endtest]


[Test]
title  MG_GetFilesInfo_Music_Artist_800_NULL_Artist_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music Artist 800 NULL Artist Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_SongName_Words_NULL_Artist_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music SongName Words NULL Artist Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_TrackNumber_1_NULL_Genre_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music TrackNumber 1 NULL Genre Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_Genre_Pop_NULL_SongName_Descending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music Genre Pop NULL SongName Descending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_Composer_Pop_NULL_Composer_Descending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music Composer Pop NULL Composer Descending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_LinkFirstURL_Words_NULL_Composer_Descending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music LinkFirstURL Words NULL Composer Descending 0 -1
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_NULL_NULL_NULL_LinkFirstURL_Ascending_-1
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music NULL NULL NULL LinkFirstURL Ascending 0 -1
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_NULL_NULL_NULL_FileNameAndPath_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music NULL NULL NULL FileNameAndPath Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_MimeType_audio/mpeg_MimeType_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music MimeType audio/mpeg NULL MimeType Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_FileSize_NULL_3500000_NULL_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music FileSize NULL 3500000 NULL Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_FileSize_3500000_NULL_NULL_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music FileSize 3500000 NULL NULL Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_FileDate_20070100:_NULL_Composer_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music FileDate 20070100: NULL Composer Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Music_FileDate_NULL_20070100:_NULL_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Music FileDate NULL 20070100: NULL Ascending 0 -1
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Video_LinkFirstURL_150_NULL_FileName_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Video LinkFirstURL 150 NULL FileName Ascending 0 -1
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Video_FileDate_NULL_NULL_FileName_Descending_-1
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Video FileDate NULL NULL FileName Descending 0 -1
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Video_FileSize_100_100000_FileName_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Video FileSize 100 100000 FileName Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Video_FileDate_20070221:_NULL_FileSize_Descending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Video FileDate 20070221: NULL FileSize Descending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_StreamingURL_FileSize_NULL_2000_NULL_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo StreamingURL FileSize NULL 2000 NULL Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_StreamingURL_LinkFirstURL rtsp:\/\/link1_NULL_NULL_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo StreamingURL LinkFirstURL rtsp:\/\/link1 NULL NULL Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_StreamingURL_FileNameAndPath_C:\Data\Dlink.ram_NULL_NULL_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo StreamingURL FileNameAndPath C:\Data\Dlink.ram NULL NULL Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Image_FileSize_0_1100000_FileName_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Image FileSize 0 1100000 FileName Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_GetFilesInfo_Image_FileSize_0_1100000_FileName_0_Ascending_0
create tmediamgmtprovidertest foobar
foobar InterfaceClass GetList FileInfo Image FileSize 0 1100000 FileName Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_FileInfo_Image_FileSize_0_1100000_FileName_Ascending_Asynch_0
create tmediamgmtprovidertest foobar
//Testfunction  command, DataSourceName, Mediatype, Filterdata, startval, endval,
//sortingfiled,  sortingorder, Asynch= 0/cancel=1/synch=2, expectedresult,
foobar InterfaceClass GetList FileInfo Image FileSize 0 1100000 FileName Ascending 0 0
delete foobar
[Endtest]

[Test]
title  MG_IncorrectCommand_FileInfo_Image_FileSize_0_1100000_FileName_Asc_ asynch
create tmediamgmtprovidertest foobar
//Testfunction  command, DataSourceName, Mediatype, Filterdata, startval, endval,
//sortingfiled,  sortingorder, Asynch= 0/cancel=1/synch=2, expectedresult,
foobar InterfaceClass IncorrectCommand FileInfo Image FileSize 0 1100000 FileName Ascending 0 -1
delete foobar
[Endtest]

[Test]
title  MG_IncorrectDataSource_Image_FileSize_0_1100000_FileName_Asc_asynch
create tmediamgmtprovidertest foobar
//Testfunction  command, DataSourceName, Mediatype, Filterdata, startval, endval,
//sortingfiled,  sortingorder, Asynch= 0/cancel=1/synch=2, expectedresult,
foobar InterfaceClass GetList IncorrectDataSource Image FileSize 0 1100000 FileName Ascending 0 -1
delete foobar
[Endtest]

[Test]
title  MG_cancel_FileInfo_Image_FileSize_0_1100000_FileName_Asc
create tmediamgmtprovidertest foobar
//Testfunction  command, DataSourceName, Mediatype, Filterdata, startval, endval,
//sortingfiled,  sortingorder, Asynch= 0/cancel=1/synch=2, expectedresult,
foobar InterfaceClass GetList FileInfo Image FileSize 0 1100000 FileName Ascending 1 0
delete foobar
[Endtest]

[Test]
title  MG_b2b_FileInfo_Image_FileSize_0_1100000_FileName_Asc
create tmediamgmtprovidertest foobar
//Testfunction  command, DataSourceName, Mediatype, Filterdata, startval, endval,
//sortingfiled,  sortingorder, Asynch= 0/cancel=1/synch=2/backtobackrequest= 3, expectedresult,
foobar InterfaceClass GetList FileInfo Image FileSize 0 1100000 FileName Ascending 3 -1
delete foobar
[Endtest]

[Test]
title  MG_Synch_FileInfo_Image_FileSize_0_1100000_FileName_Asc
create tmediamgmtprovidertest foobar
//Testfunction  command, DataSourceName, Mediatype, Filterdata, startval, endval,
//sortingfiled,  sortingorder, Asynch= 0/cancel=1/synch=2/backtobackrequest= 3, expectedresult,
foobar InterfaceClass GetList FileInfo Image FileSize 0 1100000 FileName Ascending 2 -1
delete foobar
[Endtest]

[Test]
title  MG_Close_FileInfo_Image_FileSize_0_1100000_FileName_Asc
create tmediamgmtprovidertest foobar
//Testfunction  command, DataSourceName, Mediatype, Filterdata, startval, endval,
//sortingfiled,  sortingorder, Asynch= 0/cancel=1/synch=2/backtobackrequest= 3/close =4, expectedresult,
foobar InterfaceClass GetList FileInfo Image FileSize 0 1100000 FileName Ascending 4 0
delete foobar
[Endtest]