/*  ===========================================================================
 *  Copyright © 2006-2007 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 Get_MimeType_Handler
create tappmanagerprovidertest foobar
foobar getlisttest Application NULL audio/mpeg  0 Result1 0
delete foobar
[Endtest]

[Test]
title Get_Document_Handler
create tappmanagerprovidertest foobar
foobar getlisttest Application c:\data\Hello.txt NULL 0	Result2 0
delete foobar
[Endtest]

[Test]
title Get_ApplicationList
create tappmanagerprovidertest foobar
foobar getlisttest Application NULL	NULL 0 Result3 0
delete foobar
[Endtest]

[Test]
title Get_PackageList
create tappmanagerprovidertest foobar
foobar getlisttest UserInstalledPackage NULL	NULL 0 Result4 0
delete foobar
[Endtest]

[Test]
title LaunchApp_correctUId_synch
create tappmanagerprovidertest foobar
//scheme uid commandline doc mode postion callback expectedresult
foobar launchApp s60uid: 0x101f4d90 NULL NULL NULL NULL NULL 0
delete foobar
[Endtest]

[Test]
title LaunchApp_IncorrectUId1
create tappmanagerprovidertest foobar
foobar launchApp uid: 0x101f4d90 NULL NULL NULL NULL NULL -1
delete foobar
[Endtest]

[Test]
title LaunchApp_IncorrectUId2
create tappmanagerprovidertest foobar
foobar launchApp uid: 101f4d90 NULL NULL NULL NULL NULL -1
delete foobar
[Endtest]

[Test]
title LaunchApp_InorrectUId3
create tappmanagerprovidertest foobar
foobar launchApp s60uid: 0x10100d90 NULL NULL NULL NULL NULL -1
delete foobar
[Endtest]

[Test]
title LaunchApp_Image_commandline_synch
create tappmanagerprovidertest foobar
//scheme uid commandline doc mode postion callback expectedresult
foobar launchApp s60uid: 0x101f4d90 c:\Data\Images\AppTest1.jpg  NULL NULL NULL NULL 0
delete foobar
[Endtest]


[Test]
title LaunchApp_Image_Document_synch
create tappmanagerprovidertest foobar
//scheme uid commandline doc mode postion callback expectedresult
foobar launchApp s60uid: 0x101f4d90 NULL  c:\Data\Images\AppTest2.jpg  NULL NULL NULL 0
delete foobar
[Endtest]


[Test]
title LaunchApp_ChainedMode_synch
create tappmanagerprovidertest foobar
//scheme uid commandline doc mode postion callback expectedresult
foobar launchApp s60uid: 0x101f4d90 NULL  c:\Data\Images\AppTest3.jpg  Chained NULL NULL -1
delete foobar
[Endtest]


[Test]
title LaunchApp_Background_Manual
create tappmanagerprovidertest foobar
//scheme uid commandline doc mode postion callback expectedresult
foobar launchApp s60uid: 0x101f4d90 NULL  c:\Data\Images\AppTest4.jpg  NULL BackGround NULL 0
delete foobar
[Endtest]



[Test]
title LaunchApp_Background_Chained
create tappmanagerprovidertest foobar
//scheme uid commandline doc mode postion callback expectedresult
foobar launchApp s60uid: 0x101f4d90 NULL  c:\Data\Images\AppTest5.jpg  Chained BackGround NULL -1
delete foobar
[Endtest]



[Test]
title LaunchDoc_Path
create tappmanagerprovidertest foobar
//path handle MimeType mode callback expectedresult
foobar launchDoc c:\Data\Images\AppTest6.jpg  NULL NULL NULL NULL  0
delete foobar
[Endtest]


[Test]
title LaunchDoc_IncorrectPath1
create tappmanagerprovidertest foobar
//path handle MimeType mode callback expectedresult
foobar launchDoc c:\Data\Images\Test1.xxx  NULL NULL NULL NULL  -1
delete foobar
[Endtest]


[Test]
title LaunchDoc_IncorrectPath2
create tappmanagerprovidertest foobar
//path handle MimeType mode callback expectedresult
foobar launchDoc c:\Data\AppTest7.jpg  NULL NULL NULL NULL  -1
delete foobar
[Endtest]

[Test]
title LaunchDoc_Handle
create tappmanagerprovidertest foobar
//path handle MimeType mode callback expectedresult
foobar launchDoc NULL c:\Data\Images\AppTest8.jpg   NULL NULL NULL  0
delete foobar
[Endtest]

[Test]
title LaunchDoc_Path_Chained
create tappmanagerprovidertest foobar
//path handle MimeType mode callback expectedresult
foobar launchDoc c:\Data\Images\AppTest8.jpg  NULL NULL Chained  NULL  -1
delete foobar
[Endtest]

[Test]
title LaunchDoc_MIMEType
create tappmanagerprovidertest foobar
//path handle MimeType mode callback expectedresult
foobar launchDoc NULL NULL  image/jpeg NULL  NULL  0
delete foobar
[Endtest]


[Test]
title LaunchDoc_NoInput
create tappmanagerprovidertest foobar
//path handle MimeType mode callback expectedresult
foobar launchDoc NULL NULL NULL NULL NULL  -1
delete foobar
[Endtest]

//[Test]
//title LaunchDoc_Path_Asynch
//create tappmanagerprovidertest foobar
//path handle MimeType mode callback expectedresult
//foobar launchDoc c:\Data\Images\Test1.jpg  NULL NULL NULL callback  0
//delete foobar
//[Endtest]


[Test]
title Get_ApplicationList_Postive
create tappmanagerprovidertest foobar
//content Document MimeType ExpectedResult FileName NoOfUids
foobar getlisttest Application NULL	NULL 0 Result7  2  0x100059ef 0x10005955
delete foobar
[Endtest]

[Test]
title Get_ApplicationList_Negative
create tappmanagerprovidertest foobar
//content Document MimeType ExpectedResult FileName NoOfUids
foobar getlisttest Application NULL	NULL -1 Result8  3  0x100059ef 0x10005955 0x11111111
delete foobar
[Endtest]

//[Test]
//title Initiate Installation
//create tappmanagerprovidertest foobar
//path handle MimeType mode callback expectedresult
//foobar launchDoc c:\msg.sisx  NULL NULL NULL NULL  0
//delete foobar
//[Endtest]

//[Test]
//title Initiate NonNativeInstallation
//create tappmanagerprovidertest foobar
//path handle MimeType mode callback expectedresult
//foobar launchDoc c:\SpruceBlocks.jar  NULL NULL NULL NULL  0
//delete foobar
//[Endtest]