/*  ===========================================================================
 *  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 GetListNoFilter
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Finish 0 GetListNoFilter1
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Category Finish 0 GetListNoFilter2
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Database Finish 0 GetListNoFilter3
delete foobar
[Endtest]

[Test]
title OrganiseTypeIdCheck
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Int 20 Finish 1003 OrganiseTypeIdCheck1
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Int 20 OperationType Int 20 Finish 1002 OrganiseTypeIdCheck2
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map End OperationType Int 20 Finish 1003 OrganiseTypeIdCheck3
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id Real 1 End OperationType Int 20 Finish 1002 OrganiseTypeIdCheck4
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 2 IdList Int 20 End OperationType Int 20 Finish 1002 OrganiseTypeIdCheck5
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 2 IdList List End End OperationType Int 20 Finish 1012 OrganiseTypeIdCheck6
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 2 IdList List Int 1 End End OperationType Int 20 Finish 1002 OrganiseTypeIdCheck7
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 2 IdList List UnicodeString 10000 Int 20 End End OperationType Int 20 Finish 1002 OrganiseTypeIdCheck8
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 2 IdList List UnicodeString 10000 End DatabaseURI Int 20 End OperationType Int 20 Finish 1002 OrganiseTypeIdCheck9
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 2 IdList List UnicodeString 10000 UnicodeString 20 End End OperationType Int 1 Finish 1002 OrganiseTypeIdCheck10
delete foobar
[Endtest]

//1000 mem leak
[Test]
title OrganiseHugeCategoryId
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End OperationType Int 1 Finish 1000 OrganiseHugeCategoryId
delete foobar
[Endtest]

//1000 mem leak
[Test]
title OrganiseHugeLandmarkId
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 20 IdList List UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End End OperationType Int 1 Finish 1000 OrganiseHugeLandmarkId
delete foobar
[Endtest]

[Test]
title OrganiseHugeOpType
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 20 IdList List UnicodeString 20 End End OperationType UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok Finish 1000 OrganiseHugeOpType
//foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 1 IdList List UnicodeString 1 End End OperationType UnicodeString Associate Finish 0 OrganiseHugeOpType
delete foobar
[Endtest]

//1000 mem leak
[Test]
title OrganiseNullCategoryId
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString Null End OperationType Int 1 Finish 1000 OrganiseNullCategoryId
delete foobar
[Endtest]

//1000 mem leak
[Test]
title OrganiseNullLandmarkId
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 20 IdList List UnicodeString Null End End OperationType Int 1 Finish 1000 OrganiseNullLandmarkId
delete foobar
[Endtest]

[Test]
title OrganiseNullOpType
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 20 IdList List UnicodeString 20 End End OperationType UnicodeString Null Finish 1000 OrganiseNullOpType
delete foobar
[Endtest]

//mem leak
[Test]
title OrganiseNullDBUri
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 20 IdList List UnicodeString 20 End DatabaseURI UnicodeString Null End OperationType UnicodeString Associate Finish 1012 OrganiseNullDBUri
delete foobar
[Endtest]

[Test]
title OrganiseNoOpType
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 20 IdList List UnicodeString 20 End End Finish 1003 OrganiseNoOpType
delete foobar
[Endtest]

//mem leak
[Test]
title OrganiseInvalidCatInvalidLid1
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 2000 IdList List UnicodeString 20000 End DatabaseURI UnicodeString Null End OperationType UnicodeString Associate Finish 1012 OrganiseInvalidCatInvalidLid1
delete foobar
[Endtest]

//mem leak
[Test]
title OrganiseInvalidCatInvalidLid2
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Organise 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 2000 IdList List UnicodeString 20000 End DatabaseURI UnicodeString Null End OperationType UnicodeString Disassociate Finish 1012 OrganiseInvalidCatInvalidLid2
delete foobar
[Endtest]

[Test]
title ImportTypeIdCheck
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Import 0 NULL  Type UnicodeString Landmark Data Int 20 Finish 1002 ImportTypeIdCheck1
foobar CheckInputArgumentType Service.Landmarks IDataSource Import 0 NULL  Type UnicodeString Landmark Data Map End Finish 1003 ImportTypeIdCheck2
foobar CheckInputArgumentType Service.Landmarks IDataSource Import 0 NULL  Type UnicodeString Landmark Data Map MimeType Real 1 End Finish 1002 ImportTypeIdCheck3
foobar CheckInputArgumentType Service.Landmarks IDataSource Import 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml SourceFile Int 20 End Finish 1002 ImportTypeIdCheck4
delete foobar
[Endtest]

//1002 mem leak
[Test]
title ImportHugeSourceFileName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Import 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml SourceFile UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1002 ImportHugeSourceFileName
delete foobar
[Endtest]

//1002 mem leak
[Test]
title ImportNullSourceFileName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Import 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml SourceFile UnicodeString Null End Finish 1000 ImportNullSourceFileName
delete foobar
[Endtest]

[Test]
title ImportHugeMimeType
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Import 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1004 ImportHugeMimeType
delete foobar
[Endtest]

[Test]
title ImportNullMimeType
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Import 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString Null End Finish 1000 ImportNullMimeType
delete foobar
[Endtest]

//1012 mem leak
[Test]
title ImportNonexistingSourceFileName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Import 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml SourceFile UnicodeString c:\no_file End Finish 1012 ImportNonexistingSourceFileName
delete foobar
[Endtest]

//1017 mem leak
[Test]
title ImportInvalidSourceFileName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Import 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml SourceFile UnicodeString no_file End Finish 1017 ImportInvalidSourceFileName
delete foobar
[Endtest]

[Test]
title ExportTypeIdCheck
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Int 20 Finish 1002 ExportTypeIdCheck1
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map End Finish 1003 ExportTypeIdCheck2
foobar RemoveFile c:\tmpfile1.lmx 
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map DestinationFile UnicodeString c:\tmpfile1.lmx MimeType Real 1 End Finish 1002 ExportTypeIdCheck3
//foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml IdList List UnicodeString 1 End DestinationFile Int 20 End Finish 1002 ExportTypeIdCheck4
//mem leak
foobar RemoveFile c:\eposTest2.lmx 
foobar RemoveFile c:\eposTestid.lmx
foobar RemoveFile c:\eposTest.lmx
foobar RemoveFile c:\eposTest1.lmx
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml IdList Map End DestinationFile UnicodeString c:\eposTest2.lmx End Finish 1002 ExportTypeIdCheck5
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml DestinationFile UnicodeString c:\eposTestid.lmx IdList List End End Finish 1012 ExportTypeIdCheck6
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml DestinationFile UnicodeString c:\eposTest.lmx IdList List Int 20 End End Finish 1002 ExportTypeIdCheck7
//foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml DestinationFile UnicodeString c:\eposTest1.lmx IdList List UnicodeString 1 End DatabaseURI Real 0 End Finish 1002 ExportTypeIdCheck8
delete foobar
[Endtest]

/*//1002 mem leak
//to be changed
[Test]
title ExportHugeDestFileName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml IdList List UnicodeString 1 End DestinationFile UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1002 ExportHugeDestFileName
delete foobar
[Endtest]*/

//1004 mem leak
[Test]
title ExportHugeMimeType
create tproviderlmarktest foobar
foobar RemoveFile c:\tmpfile2.lmx
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map DestinationFile UnicodeString c:\tmpfile2.lmx MimeType UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayoksdnnsdfnsdnfsdnfkljsalkjjwijewjklasjdlkjasjdjhsalkdjsalkjdlaskjdlskajdlksaj End Finish 1004 ExportHugeMimeType
delete foobar
[Endtest]

[Test]
title ExportHugeLid
create tproviderlmarktest foobar
foobar RemoveFile c:\eposTest123.lmx
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml DestinationFile UnicodeString c:\eposTest123.lmx IdList List UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayoksdnnsdfnsdnfsdnfkljsalkjjwijewjklasjdlkjasjdjhsalkdjsalkjdlaskjdlskajdlksaj End End Finish 1000 ExportHugeLid
delete foobar
[Endtest]

/*//mem leak
//to be changed
[Test]
title ExportNullFileName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml IdList List UnicodeString 1 End DestinationFile UnicodeString Null End Finish 1002 ExportNullFileName
delete foobar
[Endtest]*/

//mem leak
[Test]
title ExportNullMimeType
create tproviderlmarktest foobar
foobar RemoveFile c:\tmpfile3.lmx
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map DestinationFile UnicodeString c:\tmpfile3.lmx MimeType UnicodeString NUll End Finish 1004 ExportNullMimeType
delete foobar
[Endtest]

[Test]
title ExportNullLid
create tproviderlmarktest foobar
foobar RemoveFile c:\eposTestxyz.lmx
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml DestinationFile UnicodeString c:\eposTestxyz.lmx IdList List UnicodeString Null End End Finish 1000 ExportNullLid
delete foobar
[Endtest]

//1004 mem leak 
[Test]
title ExportInvalidMimeType
create tproviderlmarktest foobar
foobar RemoveFile c:\tmpfile4.lmx
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map DestinationFile UnicodeString c:\tmpfile4.lmx MimeType UnicodeString invalid End Finish 1004 ExportInvalidMimeType
delete foobar
[Endtest]

/*//1017 mem leak
//to be changed
[Test]
title ExportInvalidFileName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmarkcollection+xml IdList List UnicodeString 1 End DestinationFile UnicodeString test End Finish 1017 ExportInvalidFileName
delete foobar
[Endtest]*/

//1004 mem leak
[Test]
title ExportNoIdList
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Export 0 NULL  Type UnicodeString Landmark Data Map MimeType UnicodeString application/vnd.nokia.landmark+wbxml DestinationFile UnicodeString c:\test End Finish 1004 ExportNoIdList
delete foobar
[Endtest]

[Test]
title DeleteLMTypeIdCheck
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type Int 20 Finish 1003 DeleteLMTypeIdCheck1
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Landmark Data Int 20 Finish 1002 DeleteLMTypeIdCheck2
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Landmark Data Map End Finish 1003 DeleteLMTypeIdCheck3
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 17 DatabaseURI Real 0 End Finish 1002 DeleteLMTypeIdCheck4
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Landmark Data Map id Int 0 End Finish 1002 DeleteLMTypeIdCheck5
delete foobar
[Endtest]

[Test]
title DeleteCTTypeIdCheck
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Category Data Int 20 Finish 1002 DeleteCTTypeIdCheck1
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Category Data Map End Finish 1003 DeleteCTTypeIdCheck2
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Category Data Map id UnicodeString 27 DatabaseURI Real 0 End Finish 1002 DeleteCTTypeIdCheck3
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Category Data Map id Int 0 End Finish 1002 DeleteCTTypeIdCheck4
delete foobar
[Endtest]

[Test]
title DeleteLMNullLid
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString Null End Finish 1000 DeleteLMNullLid
delete foobar
[Endtest]

[Test]
title DeleteCTNullCid
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Category Data Map id UnicodeString Null End Finish 1000 DeleteCTNullCid
delete foobar
[Endtest]

[Test]
title DeleteLMHugeLid
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1000 DeleteLMHugeLid
delete foobar
[Endtest]

[Test]
title DeleteCTHugeCid
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Category Data Map id UnicodeString 77777777777777777777777777777777777777777777777777777777777777777702232323334347348734734374374837447847728742472472472472487247247247247272408248248242482482482482482405373857357385739857357357358773958739587395739587359873598739837598375938752328136283628376287624786284624862462462487628 End Finish 1000 DeleteCTHugeCid
delete foobar
[Endtest]

//mem leak
[Test]
title DeleteLMInvalidDB
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 1 DatabaseURI UnicodeString test End Finish 1002 DeleteLMInvalidDB
delete foobar
[Endtest]

//mem leak
[Test]
title DeleteCTInvalidDB
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Category Data Map id UnicodeString 1 DatabaseURI UnicodeString test End Finish 1002 DeleteCTInvalidDB
delete foobar
[Endtest]

[Test]
title DeleteLMNonexistingEntry
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 1000 End Finish 0 DeleteLMNonexistingEntry
delete foobar
[Endtest]

[Test]
title DeleteCTNonexistingEntry
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Category Data Map id UnicodeString 1000 End Finish 0 DeleteCTNonexistingEntry
delete foobar
[Endtest]

//user:11 panic due to huge dburi value
[Test]
title DeleteLMHugeDBValue
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 1 DatabaseURI UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1002 DeleteLMHugeDBValue
delete foobar
[Endtest]

[Test]
title DeleteCTMultipleCid
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Delete 0 NULL  Type UnicodeString Category Data Map id UnicodeString 1000 CategoryId UnicodeString 1 End Finish 0 DeleteCTMultipleCid
delete foobar
[Endtest]

 //user:11 panic
 [Test]
title GetlistLMHugeDBString
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map DatabaseURI UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1002 GetlistLMHugeDBString
delete foobar
[Endtest]

// 1002 mem leak
[Test]
title GetlistLMHugeLandmarkName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map LandmarkName UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1002 GetlistLMHugeLandmarkName
delete foobar
[Endtest]

// 1002 mem leak
[Test]
title GetlistCTHugeLandmarkName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Category Filter Map CategoryName UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1002 GetlistCTHugeLandmarkName
delete foobar
[Endtest]

// 1002 mem leak
[Test]
title GetlistLMHugeLandmarkDesc
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map LandmarkDesc UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1002 GetlistLMHugeLandmarkDesc
delete foobar
[Endtest]

// 1004 mem leak
[Test]
title GetlistDBHugeProtocol
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Database Filter Map DbProtocol UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1004 GetlistDBHugeProtocol
delete foobar
[Endtest]

 //Mem leak
 [Test]
title GetlistDBInvalidProtocol
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Database Filter Map DbProtocol UnicodeString Roshan End Finish 1004 GetlistDBInvalidProtocol
delete foobar
[Endtest]

[Test]
title GetlistCTInvalidMaximumMatches
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Category Filter Map MaximumMatches Int 0 End Finish 1000 GetlistCTInvalidMaximumMatches
delete foobar
[Endtest]

[Test]
title GetlistCTInvalidPrevmatch
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Category Filter Map PreviousMatchesOnly Bool -25 End Finish 1002 GetlistCTInvalidPrevmatch
delete foobar
[Endtest]

[Test]
title GetlistCTNullCatName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Category Filter Map CategoryName UnicodeString Null End Finish 0 GetlistCTNullCatName
delete foobar
[Endtest]
 
[Test]
title GetlistCTInvalidSortOrder
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Category Filter Map CategoryName UnicodeString Nocategory End Sort Map Order UnicodeString Noorder End Finish 1000 GetlistCTInvalidSortOrder
delete foobar
[Endtest]

// if sort order is ascending it leaves
[Test]
title GetlistLMInvalidSortOrder
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map CategoryName UnicodeString Nocategory End Sort Map Order UnicodeString nothing End Finish 1000 GetlistLMInvalidSortOrder
delete foobar
[Endtest]

[Test]
title GetlistLMNullValueCheck
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map LandmarkName UnicodeString Null End Finish 0 GetlistLMNullValueCheck1
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map LandmarkDesc UnicodeString Null End Finish 0 GetlistLMNullValueCheck2
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map CategoryName UnicodeString Null End Finish 0 GetlistLMNullValueCheck3
delete foobar
[Endtest]

//mem leak
[Test]
title GetlistLMInvalidDB
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map DatabaseURI UnicodeString po$$ End Finish 1002 GetlistLMInvalidDB
delete foobar
[Endtest]

//mem leak
[Test]
title GetlistLMHugeCatName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map CategoryName UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1002 GetlistLMHugeCatName
delete foobar
[Endtest]

[Test]
title GetlistLMInvalidPos
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map LandmarkPosition Map Latitude Real 1 Longitude Real 1 End End Finish 0 GetlistLMInvalidPos
delete foobar
[Endtest]

[Test]
title GetlistLMInvalidMatches
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map LandmarkPosition Map Latitude Real 1 Longitude Real 1 End MaximumDistance Real 1 MaximumMatches Int -5400 End Finish 1000 GetlistLMInvalidMatches
delete foobar
[Endtest]

[Test]
title GetlistLMInvalidDist
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map LandmarkPosition Map Latitude Real 0 Longitude Real 0 MaximumDistance Real 0 End MaximumMatches Int 0 End Finish 1000 GetlistLMInvalidDist
delete foobar
[Endtest]

[Test]
title GetlistLMInvalidBoundedArea
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map BoundedArea Map NorthLatitude Real 1 SouthLatitude Real 1 EastLongitude Real 1 WestLongitude Real 1 End End Finish 1002 GetlistLMInvalidBoundedArea
delete foobar
[Endtest]

[Test]
title AddInvalidContentType
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString 100 Data UnicodeString Roshan Finish 1000 AddInvalidContentType
delete foobar
[Endtest]

[Test]
title AddNoInputData
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL Finish 1003 AddNoInputData
delete foobar
[Endtest]

[Test]
title AddInvalidDataField
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data UnicodeString Roshan Finish 1002 AddInvalidDataField
delete foobar
[Endtest]

[Test]
title AddMissingDataField
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Finish 1003 AddMissingDataField
delete foobar
[Endtest]

// currently resulting in panic
[Test]
title AddLMInvalidCoverageIconFile
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map CoverageRadius Real 1 IconFile UnicodeString -25.8 IconIndex Int -400 End Finish 1000 AddLMInvalidCoverageIconFile1
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map CoverageRadius Real 0 IconFile UnicodeString -25.8 IconIndex Int -400 End Finish 1000 AddLMInvalidCoverageIconFile2
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map IconFile UnicodeString -25 IconIndex Int 400 End Finish 1003 AddLMInvalidCoverageIconFile3
//foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map DatabaseURI UnicodeString c:$$pos.ldb CoverageRadius UnicodeString Roshan IconFile UnicodeString -25.8 IconIndex Int -400 End Finish 0
delete foobar
[Endtest]

// memory leak as variant is not reset
[Test]
title AddLMInvalidDB
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map DatabaseURI UnicodeString 255.34 End Finish 1002 AddLMInvalidDB
delete foobar
[Endtest]


[Test]
title UpdateNonExistentLM
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map id UnicodeString 3000 End Finish 1012 UpdateNonExistentLM
delete foobar
[Endtest]

//memory leak and dburi not read before landmarkID
[Test]
title UpdateLMInvalidDB
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map End Finish 0 UpdateLMInvalidDB1
foobar CheckInputArgumentType Service.Landmarks IDataSource Update 0 NULL  Type UnicodeString Landmark Data Map DatabaseURI UnicodeString 255.34 id UnicodeString 1 LandmarkName UnicodeString Nolandmark End Finish 1002 UpdateLMInvalidDB2
delete foobar
[Endtest]

[Test]
title UpdateNonExistentCT
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Category Data Map id UnicodeString 3500 End Finish 1012 UpdateNonExistentCT
delete foobar
[Endtest]

//memory leak
[Test]
title UpdateCTInvalidDb
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Category Data Map DatabaseURI UnicodeString 255.34 id UnicodeString 2 End Finish 1002 UpdateCTInvalidDb
delete foobar
[Endtest]

// if max distance < 0 panic
// Not sure what cat Info is needed for add landmark
[Test]
title AddLMInvalidCatInfo
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map CategoryInfo List UnicodeString invalid UnicodeString hello End End Finish 1000 AddLMInvalidCatInfo1
//foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL  Type UnicodeString Landmark Filter Map MaximumDistance Real 1 LandmarkPosition Map Latitude Int -26000 Longitude Int -30000 End End Finish 1002 AddLMInvalidCatInfo2
delete foobar
[Endtest]

// panic if coverage radius < 0
[Test]
title AddLMInvalidCoverageRadius
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map CoverageRadius Real 1 End Finish 1000 AddLMInvalidCoverageRadius
delete foobar
[Endtest]

// panic if HAccuracy < 0 and VAccuracy < 0
[Test]
title AddLMInvalidPositionInfo
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkPosition Map Latitude Real 1 Longitude Real 1 Altitude Real 1 HAccuracy Real 1 VAccuracy Real 1 End End Finish 1000 AddLMInvalidPositionInfo
delete foobar
[Endtest]

// Memory leak as variant not reset
[Test]
title AddCTNoIconIndex
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Category Data Map CategoryName UnicodeString NoIconFilecategory IconFile UnicodeString qgn_graf_s60_logo.svg End Finish 1003 AddCTNoIconIndex
delete foobar
[Endtest]

// panics if icon mask index < KPosLmIconMaskNotUsed
[Test]
title AddCTInvalidIconMaskIndex
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Category Data Map CategoryName UnicodeString NoIconFilecategory IconFile UnicodeString qgn_graf_s60_logo.svg IconMaskIndex Int -250 IconIndex Int 20 End Finish 1000 AddCTInvalidIconMaskIndex
delete foobar
[Endtest]

[Test]
title AddLMTypeIDCheck
create tproviderlmarktest foobar
//For ContentType
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString 25 Data Map LandmarkName UnicodeString TypeIdLM End Finish 1000 AddLMTypeIDCheck1
// For Data Field
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Int 200 Finish 1002 AddLMTypeIDCheck2
// For Landmark name
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkName Real 1 End Finish 1002 AddLMTypeIDCheck3
// For DBUri
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map DatabaseURI Real 0 End Finish 1002 AddLMTypeIDCheck4
// For Landmark ID
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map id Int 20 End Finish 1002 AddLMTypeIDCheck5
// For category Info
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map CategoryInfo Int 20 End Finish 1002 AddLMTypeIDCheck6
// For Landmark position 
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkPosition Int 200 End Finish 1002 AddLMTypeIDCheck7
// For Landmark position data
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkPosition Map Latitude Int 25 End End Finish 1003 AddLMTypeIDCheck8
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkPosition Map Longitude Int 25 End End Finish 1003 AddLMTypeIDCheck9
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkPosition Map Latitude Real 0 Longitude Real 1 Altitude Int 20 End End Finish 0 AddLMTypeIDCheck10
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkPosition Map Latitude Real 0 Longitude Real 1 HAccuracy UnicodeString a End End Finish 1002 AddLMTypeIDCheck11
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkPosition Map Latitude Real 0 Longitude Real 1 VAccuracy UnicodeString b End End Finish 1002 AddLMTypeIDCheck12
//foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkPosition Map Latitude Real 0 Longitude Real 1 TStamp Int 1 End End Finish 1002 AddLMTypeIDCheck13
// For Coverage radius
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map CoverageRadius Int 0 End Finish 0 AddLMTypeIDCheck14
// For IconFile
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map IconFile Real 1 End Finish 1002 AddLMTypeIDCheck15
// For Icon Index - results in memory leak
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map IconFile UnicodeString qgn_graf_s60_logo.svg IconIndex Real 1 End Finish 1002 AddLMTypeIDCheck16
// For landmark fields
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkFields Int 0 End Finish 1002 AddLMTypeIDCheck17
// For landmark fields data
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkFields Map City Real 1 End End Finish 1002 AddLMTypeIDCheck18
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkFields Map Street Int 100 End End Finish 1002 AddLMTypeIDCheck19
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkFields Map BuildingName Real 1 End End Finish 1002 AddLMTypeIDCheck20
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkFields Map District Int 1 End End Finish 1002 AddLMTypeIDCheck21
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkFields Map AreaCode Real 1 End End Finish 1002 AddLMTypeIDCheck22
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkFields Map Telephone Int 1 End End Finish 1002 AddLMTypeIDCheck23
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkFields Map Country Real 0 End End Finish 1002 AddLMTypeIDCheck24
delete foobar
[Endtest]

[Test]
title AddLMNoInputData
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map End Finish 0 AddLMNoInputData
delete foobar
[Endtest]

// Memory leak
[Test]
title AddLMHugeCityData
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkFields Map City UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End End Finish 1002 AddLMHugeCityData
delete foobar
[Endtest]

[Test]
title AddLMWithInfoNoName
create tproviderlmarktest foobar
//foobar CheckInputArgumentType service InterfcaeName Command Synchronousbit Callback varname vartype value Finish expectedvalue
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkFields Map City UnicodeString Bangalore End End Finish 0 AddLMWithInfoNoName
delete foobar
[Endtest]

[Test]
title AddCTTypeIDCheck
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Category Data Int 2000 Finish 1002 AddCTTypeIDCheck1
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Category Data Map CategoryName Real 1 End Finish 1002 AddCTTypeIDCheck2
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Category Data Map CategoryName UnicodeString Test id Int 200 End Finish 1002 AddCTTypeIDCheck3
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Category Data Map CategoryName UnicodeString Test IconFile Int 200 End Finish 1002 AddCTTypeIDCheck4
//memory leak for below two
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Category Data Map CategoryName UnicodeString Test IconFile UnicodeString qgn_graf_s60_logo.svg IconIndex Real 1 End Finish 1002 AddCTTypeIDCheck5
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Category Data Map CategoryName UnicodeString Test IconFile UnicodeString qgn_graf_s60_logo.svg IconIndex Int 17 IconMaskIndex Real -300 End Finish 1002 AddCTTypeIDCheck6
delete foobar
[Endtest]

//1002 mem leak
[Test]
title AddLMHugeLName
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map LandmarkName UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok End Finish 1002 AddLMHugeLName
delete foobar
[Endtest]

//1002 mem leak
[Test]
title AddLMHugeIconFile
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource Add 0 NULL  Type UnicodeString Landmark Data Map IconFile UnicodeString HiThisisRoshanfromNokiaIndiaPvtLtd.IhopeyouaredoingfinebecauseIalwaysdofineandexpectthesamefromyou.Thisbringstothepointthatwhyiaskedyouthisstupidquestionwheniknowthaturfine.Nokiaisagreatcompanyanditpresentsgreatopportunity##$$$$&&&-=+++~~~@@@@@sothatsitfrommeletscontinueontheworkfortodayok IconIndex Int 20 IconMaskIndex Int 20 End Finish 1002 AddLMHugeIconFile
delete foobar
[Endtest]

[Test]
title GetListLMTypeIdCheck
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map DatabaseURI Real 0 End Finish 1002 GetListLMTypeIdCheck1
// memory leak
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map MaximumMatches UnicodeString 25 End Finish 1002 GetListLMTypeIdCheck2
// mem leak
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map PreviousMatchesOnly UnicodeString yes End Finish 1002 GetListLMTypeIdCheck3
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map LandmarkName Real 1 End Finish 1002 GetListLMTypeIdCheck4
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map LandmarkDesc Int 1 End Finish 1002 GetListLMTypeIdCheck5
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map LandmarkPosition Int 1 End Finish 1002 GetListLMTypeIdCheck6
//mem leak
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map LandmarkPosition Map End End Finish 1003 GetListLMTypeIdCheck7
//mem leak
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map LandmarkPosition Map Latitude UnicodeString test End End Finish 1002 GetListLMTypeIdCheck8
// mem leak
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map LandmarkPosition Map Latitude Real 0 Longitude UnicodeString test End End Finish 1002 GetListLMTypeIdCheck9
//mem leak
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map LandmarkPosition Map Latitude Real 0 Longitude Real 0 End CoverageRadiusOption UnicodeString radius End Finish 1002 GetListLMTypeIdCheck10
//mem leak
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map LandmarkPosition Map Latitude Real 0 Longitude Real 0 End MaximumDistance UnicodeString distance End Finish 1002 GetListLMTypeIdCheck11
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map CategoryName Real 0 End Finish 1002 GetListLMTypeIdCheck12
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map BoundedArea Int 0 End Finish 1002 GetListLMTypeIdCheck13
//mem leak
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map BoundedArea Map End End Finish 1003 GetListLMTypeIdCheck14
//all 4 mem leak
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map BoundedArea Map NorthLatitude UnicodeString nlatitude End End Finish 1002 GetListLMTypeIdCheck15
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map BoundedArea Map NorthLatitude Real 0 SouthLatitude UnicodeString slatitude End End Finish 1002 GetListLMTypeIdCheck16
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map BoundedArea Map NorthLatitude Real 0 SouthLatitude Real 0 EastLongitude UnicodeString elatitude End End Finish 1002 GetListLMTypeIdCheck17
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Filter Map BoundedArea Map NorthLatitude Real 0 SouthLatitude Real 0 EastLongitude Real 0 WestLongitude UnicodeString wlatitude End End Finish 1002 GetListLMTypeIdCheck18
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Sort Int 0 Finish 1002 GetListLMTypeIdCheck19
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Sort Map End Finish 1003 GetListLMTypeIdCheck20
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Landmark Sort Map Order Real 1 End Finish 1002 GetListLMTypeIdCheck21
delete foobar
[Endtest]

[Test]
title GetListCTTypeIdCheck
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Category Filter Map DatabaseURI Real 0 End Finish 1002 GetListCTTypeIdCheck1
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Category Filter Map MaximumMatches Real 0 End Finish 1002 GetListCTTypeIdCheck2
//mem leak
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Category Filter Map PreviousMatchesOnly UnicodeString yes End Finish 1002 GetListCTTypeIdCheck3
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Category Filter Map CategoryName Int 20 End Finish 1002 GetListCTTypeIdCheck4
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Category Sort Int 0 Finish 1002 GetListCTTypeIdCheck5
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Category Sort Map End Finish 1003 GetListCTTypeIdCheck6
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Category Sort Map Order Real 1 End Finish 1002 GetListCTTypeIdCheck7
delete foobar
[Endtest]

[Test]
title GetListDBTypeIdCheck
create tproviderlmarktest foobar
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Database Filter Int 0 Finish 1002 GetListDBTypeIdCheck1
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Database Filter Map End Finish 1003 GetListDBTypeIdCheck2
foobar CheckInputArgumentType Service.Landmarks IDataSource GetList 0 NULL Type UnicodeString Database Filter Map DbProtocol Real 0 End Finish 1002 GetListDBTypeIdCheck3
delete foobar
[Endtest]

