[Define]
KErrNotFound -1
KErrArgument -6
KErrAlreadyExists -11 
[Enddefine]


[Test]
title NewL Create Landmark
create testlandmarksapi foobar
foobar CreateNewLandmarkL
delete foobar
[Endtest] 

[Test]
title NewLC Create Landmark
create testlandmarksapi foobar
foobar CreateNewLandmarkLC
delete foobar
[Endtest] 

[Test]
title NewL Create Landmark Copy
create testlandmarksapi foobar
foobar CreateLandmarkCopyL
delete foobar
[Endtest] 

[Test]
title NewLC Create Landmark Copy
create testlandmarksapi foobar
foobar CreateLandmarkCopyLC
delete foobar
[Endtest] 

[Test]
title Set Landmark Name Success
create testlandmarksapi foobar
foobar SetLandmarkName ANewLandmark
delete foobar
[Endtest] 

[Test]
title Set Landmark Name Fail
allownextresult KErrArgument
create testlandmarksapi foobar
foobar SetLandmarkName A_Long_Name_01234567890qwertyuioplkjhgfdsazxcvbnm01234567890qwertyuiopasdfghjklzxcvbnm01234567890qwertyuiopasdfghjklzxcvbnmqwertyu_A_Long_Name_01234567890qwertyuioplkjhgfdsazxcvbnm01234567890qwertyuiopasdfghjklzxcvbnm01234567890qwertyuiopasdfghjklzxcvbnmqwertyu
delete foobar
[Endtest] 

[Test]
title Get Landmark Name Success
create testlandmarksapi foobar
foobar GetLandmarkName 1
delete foobar
[Endtest] 

[Test]
title Get Landmark Name Fail
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar GetLandmarkName 0
delete foobar
[Endtest] 

[Test]
title Set and Get Landmark Description Success
create testlandmarksapi foobar
foobar SetAndGetLandmarkDescription 1 ALandmarkDescriptionnn
delete foobar
[Endtest] 

[Test]
title Set and Get Landmark Description Fail
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar SetAndGetLandmarkDescription 0 ALandmarkDescriptionnn
delete foobar
[Endtest] 


[Test]
title Set and Get Coverage Radius Success
create testlandmarksapi foobar
foobar SetAndGetCoverageRadius 1 41.01
delete foobar
[Endtest] 

[Test]
title Set and Get Coverage Radius Fail
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar SetAndGetCoverageRadius 0 41.01
delete foobar
[Endtest] 

[Test]
title Set and Get Position Success
create testlandmarksapi foobar
foobar SetAndGetPosition 1 22.312 75.56
delete foobar
[Endtest] 

[Test]
title Set and Get Position Fail_1
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar SetAndGetPosition 0 22.312 75.56
delete foobar
[Endtest] 

[Test]
title Set and Get Position Fail_2
allownextresult KErrArgument
create testlandmarksapi foobar
foobar SetAndGetPosition -1 22.312 75.56
delete foobar
[Endtest] 

[Test]
title Set and Get Position Field Success
create testlandmarksapi foobar
foobar SetAndGetPositionField 1 ACityName
delete foobar
[Endtest] 

[Test]
title Set and Get Position Field Fail_1
allownextresult KErrArgument
create testlandmarksapi foobar
foobar SetAndGetPositionField 1 A_Long_Name_01234567890qwertyuioplkjhgfdsazxcvbnm01234567890qwertyuiopasdfghjklzxcvbnm01234567890qwertyuiopasdfghjklzxcvbnmqwertyu_A_Long_Name_01234567890qwertyuioplkjhgfdsazxcvbnm01234567890qwertyuiopasdfghjklzxcvbnm01234567890qwertyuiopasdfghjklzxcvbnmqwertyu
delete foobar
[Endtest] 

[Test]
title Set and Get Position Field Fail_2
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar SetAndGetPositionField 0 ACityName
delete foobar
[Endtest] 

[Test]
title Number of position fields Success
create testlandmarksapi foobar
foobar NumOfAvailablePosFields
delete foobar
[Endtest] 

[Test]
title Is Position Field Available Success
create testlandmarksapi foobar
foobar IsPosFieldAvailable
delete foobar
[Endtest] 

[Test]
title Remove Position Field Success
create testlandmarksapi foobar
foobar RemovePositionField
delete foobar
[Endtest] 

[Test]
title Remove Attributes Success
create testlandmarksapi foobar
foobar RemoveAttributes
delete foobar
[Endtest] 

[Test]
title First and Next Position Field Id Success
create testlandmarksapi foobar
foobar PositionfieldId
delete foobar
[Endtest] 

[Test]
title Landmark Id Success
create testlandmarksapi foobar
foobar LandmarkId
delete foobar
[Endtest] 

[Test]
title IsPartial Success
create testlandmarksapi foobar
foobar IsPartial
delete foobar
[Endtest]

[Test]
title Set and Get Icon Success
create testlandmarksapi foobar
foobar SetAndGetIcon 1 c:\testing\data\smiltemplate.mif
delete foobar
[Endtest]

[Test]
title Set and Get Icon Fail
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar SetAndGetIcon 0 c:\testing\data\smiltemplate.mif
delete foobar
[Endtest]

[Test]
title Lm Add and Remove Category Success
create testlandmarksapi foobar
foobar AddAndRemoveLmCategory ACategoryName
delete foobar
[Endtest]

[Test]
title Get Categories Success
create testlandmarksapi foobar
foobar GetCategories
delete foobar
[Endtest]

[Test]
title NewL Create Category Success
create testlandmarksapi foobar
foobar NewLCreateCategory
delete foobar
[Endtest]

[Test]
title NewLC Create Category Success
create testlandmarksapi foobar
foobar NewLCCreateCategory
delete foobar
[Endtest]

[Test]
title NewL Create Category Copy Success
create testlandmarksapi foobar
foobar NewLCreateCategoryCopy
delete foobar
[Endtest]

[Test]
title NewLC Create Category Copy Success
create testlandmarksapi foobar
foobar NewLCCreateCategoryCopy
delete foobar
[Endtest]

[Test]
title Set and Get Category Name Success
create testlandmarksapi foobar
foobar SetAndGetCategoryName 1 ACategoryName
delete foobar
[Endtest]

[Test]
title Set and Get Category Name Fail_1
allownextresult KErrArgument
create testlandmarksapi foobar
foobar SetAndGetCategoryName 1
delete foobar
[Endtest]

[Test]
title Set and Get Category Name Fail_2
allownextresult KErrArgument
create testlandmarksapi foobar
foobar SetAndGetCategoryName 1 A_Long_Name_01234567890qwertyuioplkjhgfdsazxcvbnm01234567890qwertyuiopasdfghjklzxcvbnm01234567890qwertyuiopasdfghjklzxcvbnmqwertyu_A_Long_Name_01234567890qwertyuioplkjhgfdsazxcvbnm01234567890qwertyuiopasdfghjklzxcvbnm01234567890qwertyuiopasdfghjklzxcvbnmqwertyu
delete foobar
[Endtest]

[Test]
title Set and Get Category Name Fail_3
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar SetAndGetCategoryName 0 ACategoryName
delete foobar
[Endtest]

[Test]
title Set and Get Category Icon Success
create testlandmarksapi foobar
foobar SetAndGetCategoryIcon 1 c:\testing\data\smiltemplate.mif
delete foobar
[Endtest]

[Test]
title Set and Get Category Icon Fail
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar SetAndGetCategoryIcon 0 c:\testing\data\smiltemplate.mif
delete foobar
[Endtest]

[Test]
title Category Id
create testlandmarksapi foobar
foobar CategoryId ANewCategoryName
delete foobar
[Endtest]

[Test]
title Check Global Category
create testlandmarksapi foobar
foobar CheckGlobal
delete foobar
[Endtest]

[Test]
title Remove Category Attributes
create testlandmarksapi foobar
foobar RemoveCategoryAttributes
delete foobar
[Endtest]

[Test]
title NewL Create Category Manager
create testlandmarksapi foobar
foobar NewLCreateCategoryManager
delete foobar
[Endtest]

[Test]
title Mgr Add And Remove Category Success
create testlandmarksapi foobar
foobar AddAndRemoveCategory 1 A_New_Category_Name
delete foobar
[Endtest]

[Test]
title Mgr Add And Remove Category Fail
allownextresult KErrArgument
create testlandmarksapi foobar
foobar AddAndRemoveCategory 0 A_New_Category_Name
delete foobar
[Endtest]

[Test]
title Update Category
create testlandmarksapi foobar
foobar UpdateCategory
delete foobar
[Endtest]

[Test]
title Mgr Add Category to Landmarks Success
create testlandmarksapi foobar
foobar AddCatToLandmarks 1
delete foobar
[Endtest]

[Test]
title Mgr Add Category to Landmarks Fail
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar AddCatToLandmarks 0
delete foobar
[Endtest]

[Test]
title Mgr Remove Category from Landmarks Success
create testlandmarksapi foobar
foobar RemoveCatFromLandmarks 1
delete foobar
[Endtest]

[Test]
title Mgr Remove Category from Landmarks Fail
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar RemoveCatFromLandmarks 0
delete foobar
[Endtest]

[Test]
title Category Iterator
create testlandmarksapi foobar
foobar CategoryIterator
delete foobar
[Endtest]

[Test]
title Referenced Category Itrator
create testlandmarksapi foobar
foobar ReferencedIterator
delete foobar
[Endtest]

[Test]
title Read Category Success
create testlandmarksapi foobar
foobar ReadCategory 1
delete foobar
[Endtest]

[Test]
title Read Category Fail
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar ReadCategory 0
delete foobar
[Endtest]

[Test]
title Get Category Success
create testlandmarksapi foobar
foobar GetCategory Business
delete foobar
[Endtest]

[Test]
title Get Category Fail
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar GetCategory NoCategoryBusiness
delete foobar
[Endtest]

[Test]
title Remove Categories
create testlandmarksapi foobar
foobar RemoveCategories
delete foobar
[Endtest]

[Test]
title Get Global Category
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar GetGlobalCategory
delete foobar
[Endtest]

[Test]
title Global Category Name
allownextresult KErrNotFound
create testlandmarksapi foobar
foobar GlobalCategoryName
delete foobar
[Endtest]

[Test]
title Reset Global Categories
create testlandmarksapi foobar
foobar ResetGlobalCategories
delete foobar
[Endtest]

[Test]
title Iterator Number Of Items
create testlandmarksapi foobar
foobar NumOfItems
delete foobar
[Endtest]

[Test]
title Iterator NextL
create testlandmarksapi foobar
foobar Next
delete foobar
[Endtest]

[Test]
title Iterator Get Item Ids
create testlandmarksapi foobar
foobar GetItemIds
delete foobar
[Endtest]

[Test]
title Reset Iterator
create testlandmarksapi foobar
foobar ResetIterator
delete foobar
[Endtest]

[Test]
title Open Default Database
create testlandmarksapi foobar
foobar OpenDefaultDatabase
delete foobar
[Endtest]

[Test]
title Open Database
create testlandmarksapi foobar
foobar OpenDatabase
delete foobar
[Endtest]

[Test]
title Is Initialization Needed
create testlandmarksapi foobar
foobar IsInitializingNeeded
delete foobar
[Endtest]

[Test]
title Initialize Database
create testlandmarksapi foobar
foobar Initialize
delete foobar
[Endtest]

[Test]
title Get Database Uri
create testlandmarksapi foobar
foobar GetDatabaseUri
delete foobar
[Endtest]

[Test]
title Get Database Size
create testlandmarksapi foobar
foobar GetDatabaseSize
delete foobar
[Endtest]

[Test]
title Get Landmark Iterator
create testlandmarksapi foobar
foobar LandmarkIterator
delete foobar
[Endtest]

[Test]
title Landmark Iterator with Sort Preference
create testlandmarksapi foobar
foobar LmkIteratorSortPref
delete foobar
[Endtest]

[Test]
title Read Landmark 
create testlandmarksapi foobar
foobar ReadLandmark
delete foobar
[Endtest]

[Test]
title Add and Remove Landmark 
create testlandmarksapi foobar
foobar AddAndRemoveLandmark ATestLandmark
delete foobar
[Endtest]

[Test]
title Update Landmark 
create testlandmarksapi foobar
foobar UpdateLandmark ANewLandmarkName
delete foobar
[Endtest]

[Test]
title  Remove Landmarks 
create testlandmarksapi foobar
foobar RemoveLandmarks
delete foobar
[Endtest]

[Test]
title  Compact Database 
create testlandmarksapi foobar
foobar Compact
delete foobar
[Endtest]

[Test]
title Set and Get Partial Read Parameters 
create testlandmarksapi foobar
foobar SetAndGetPartialReadParams
delete foobar
[Endtest]

[Test]
title Read Partial Landmark 
create testlandmarksapi foobar
foobar ReadPartialLandmark
delete foobar
[Endtest]

[Test]
title Prepare and Take Partial Landmarks 
create testlandmarksapi foobar
foobar PrepareAndTakePartialLmks
delete foobar
[Endtest]

[Test]
title Export Landmarks 
create testlandmarksapi foobar
foobar ExportLandmarks c:\testing\data\testEposLmExportFromDB.lmx
delete foobar
[Endtest]

[Test]
title  Remove All Landmarks 
create testlandmarksapi foobar
foobar RemoveAllLandmarks
delete foobar
[Endtest]

[Test]
title Import Landmarks 
create testlandmarksapi foobar
foobar ImportLandmarks c:\testing\data\testEposLmImport.lmx
delete foobar
[Endtest]

[Test]
title Import Selected Landmarks 
create testlandmarksapi foobar
foobar ImportSelectedLandmarks c:\testing\data\testEposLmImport.lmx
delete foobar
[Endtest]

[Test]
title Imported Landmarks Iterator
create testlandmarksapi foobar
foobar ImportedLmkIterator c:\testing\data\testEposLmImport.lmx
delete foobar
[Endtest]

[Test]
title Notify Database Event
create testlandmarksapi foobar
foobar NotifyEvent
delete foobar
[Endtest]

[Test]
title Cancel Notify Database Event
create testlandmarksapi foobar
foobar CancelNotifyEvent
delete foobar
[Endtest]

[Test]
title Destroy Operation Object
create testlandmarksapi foobar
foobar DestructOperation
delete foobar
[Endtest]

[Test]
title Execute Operation
create testlandmarksapi foobar
foobar ExecuteOperation
delete foobar
[Endtest]

[Test]
title Execute And Delete Operation
create testlandmarksapi foobar
foobar ExecuteAndDeleteOperation
delete foobar
[Endtest]

[Test]
title Next Step
create testlandmarksapi foobar
foobar NextStep
delete foobar
[Endtest]

[Test]
title Create Encoder
create testlandmarksapi foobar
foobar CreateEncoder
delete foobar
[Endtest]

[Test]
title Set Output File
create testlandmarksapi foobar
foobar SetOutputFile c:\testing\data\testEposLmExportSet.lmx
delete foobar
[Endtest]

[Test]
title Set Use Output Buffer
create testlandmarksapi foobar
foobar SetOutputBuffer
delete foobar
[Endtest]

[Test]
title Add Collection Data
create testlandmarksapi foobar
foobar AddCollectionData A_Collection_Name A_Collection_Description
delete foobar
[Endtest]

[Test]
title Add Landmark 
create testlandmarksapi foobar
foobar AddLandmarkToEncode
delete foobar
[Endtest]

[Test]
title Add Category For Latest Landmark 
create testlandmarksapi foobar
foobar AddCategoryForLatestLandmark
delete foobar
[Endtest]

[Test]
title Finalize Encoding
create testlandmarksapi foobar
foobar FinalizeEncoding
delete foobar
[Endtest]

[Test]
title Create Parser
create testlandmarksapi foobar
foobar CreateParser
delete foobar
[Endtest]

[Test]
title Set Input Buffer
create testlandmarksapi foobar
foobar SetInputBuffer
delete foobar
[Endtest]

[Test]
title Set Input File
create testlandmarksapi foobar
foobar SetInputFile c:\testing\data\testEposLmImport.lmx
delete foobar
[Endtest]

[Test]
title Set Input File Handle
create testlandmarksapi foobar
foobar SetInputFileHandle c:\testing\data\testEposLmImport.lmx
delete foobar
[Endtest]

[Test]
title Parse Content
create testlandmarksapi foobar
foobar ParseContent c:\testing\data\testEposLmImport.lmx
delete foobar
[Endtest]

[Test]
title Number of Parsed Content
create testlandmarksapi foobar
foobar NumOfParsedContent c:\testing\data\testEposLmImport.lmx
delete foobar
[Endtest]

[Test]
title First And Next Collection Data Id
create testlandmarksapi foobar
foobar FirstAndNextCollDataId c:\testing\data\testEposLmImportCollection.lmx
delete foobar
[Endtest]

[Test]
title Get Collection Data
create testlandmarksapi foobar
foobar GetCollectionData c:\testing\data\testEposLmImportCollection.lmx
delete foobar
[Endtest]

[Test]
title Retrieve Parsed Landmark
create testlandmarksapi foobar
foobar RetrieveParsedLmk c:\testing\data\testEposLmImportCollection.lmx
delete foobar
[Endtest]

[Test]
title Retrieve Category In Parsed Landmark
create testlandmarksapi foobar
foobar RetrieveCategory c:\testing\data\testEposLmImportCollection.lmx
delete foobar
[Endtest]

[Test]
title Create Parital Read Parameters
create testlandmarksapi foobar
foobar CreatePartialReadParams
delete foobar
[Endtest]

[Test]
title Set And Get Requested Attributes
create testlandmarksapi foobar
foobar SetAndGetRequestedAttr
delete foobar
[Endtest]

[Test]
title Set And Get Requested Position Field
create testlandmarksapi foobar
foobar SetAndGetRequestedPosField
delete foobar
[Endtest]

[Test]
title Create Sort Preference
create testlandmarksapi foobar
foobar CreateSortPref
delete foobar
[Endtest]

[Test]
title Get Sort Order
create testlandmarksapi foobar
foobar GetSortOrder
delete foobar
[Endtest]

[Test]
title Set And Get Sort Attribute
create testlandmarksapi foobar
foobar SetAndGetSortAttr
delete foobar
[Endtest]

[Test]
title SetGet PlaceID
create testlandmarksapi foobar
foobar SetAndGetPlaceId
delete foobar
[Endtest]

[Test]
title SetGet TimeStamp
create testlandmarksapi foobar
foobar SetAndGetTimeStamp
delete foobar
[Endtest]