equal
deleted
inserted
replaced
30 const TInt KNoPreparePartial = 40; |
30 const TInt KNoPreparePartial = 40; |
31 _LIT(KTakePreparedPartialErr, "Method TakePreparedPartialLandmarksL doesn't leave with KErrNotFound"); |
31 _LIT(KTakePreparedPartialErr, "Method TakePreparedPartialLandmarksL doesn't leave with KErrNotFound"); |
32 _LIT(KNoPreparedPartialErr, "Method TakePreparedPartialLandmarksL returns incorrect no. landmarks"); |
32 _LIT(KNoPreparedPartialErr, "Method TakePreparedPartialLandmarksL returns incorrect no. landmarks"); |
33 _LIT(KNoPreparedPartialErr2, "Method TakePreparedPartialLandmarksL returns incorrect landmarks"); |
33 _LIT(KNoPreparedPartialErr2, "Method TakePreparedPartialLandmarksL returns incorrect landmarks"); |
34 |
34 |
|
35 _LIT(KTp18DbFile, "TP18Test.ldb"); |
|
36 _LIT(KTp18DbFile1, "TP18Test1.ldb"); |
|
37 |
35 // ================= MEMBER FUNCTIONS ======================= |
38 // ================= MEMBER FUNCTIONS ======================= |
36 |
39 |
37 |
40 |
38 // --------------------------------------------------------- |
41 // --------------------------------------------------------- |
39 // CPosTp10::CloseTest |
42 // CPosTp10::CloseTest |
64 // --------------------------------------------------------- |
67 // --------------------------------------------------------- |
65 // |
68 // |
66 void CPosTp18::StartL() |
69 void CPosTp18::StartL() |
67 { |
70 { |
68 _LIT(KNotPartialErr, "Landmark is not a partial landmark"); |
71 _LIT(KNotPartialErr, "Landmark is not a partial landmark"); |
69 |
72 CopyTestDbFileL(KTp18DbFile); |
70 iDatabase = UseGeneratedDbFileL(); |
73 iDatabase = CPosLandmarkDatabase::OpenL(KTp18DbFile); |
71 |
74 |
72 if (iDatabase->IsInitializingNeeded()) |
75 if (iDatabase->IsInitializingNeeded()) |
73 { |
76 { |
74 ExecuteAndDeleteLD(iDatabase->InitializeL()); |
77 ExecuteAndDeleteLD(iDatabase->InitializeL()); |
75 } |
78 } |
412 |
415 |
413 // Test not setting any attributes with SetRequestedAttributes, |
416 // Test not setting any attributes with SetRequestedAttributes, |
414 // should only return empty landmarks |
417 // should only return empty landmarks |
415 delete iDatabase; |
418 delete iDatabase; |
416 iDatabase = NULL; |
419 iDatabase = NULL; |
417 iDatabase = UseGeneratedDbFileL(); |
420 CopyTestDbFileL(KTp18DbFile1); |
|
421 iDatabase = CPosLandmarkDatabase::OpenL(KTp18DbFile1); |
418 |
422 |
419 if (iDatabase->IsInitializingNeeded()) ExecuteAndDeleteLD(iDatabase->InitializeL()); |
423 if (iDatabase->IsInitializingNeeded()) ExecuteAndDeleteLD(iDatabase->InitializeL()); |
420 |
424 |
421 CleanupClosePushL(ids); |
425 CleanupClosePushL(ids); |
422 ids.Append(1); |
426 ids.Append(1); |