landmarks/locationlandmarks/tsrc/LandmarkTestModule/src/FT_CPosTp18.cpp
changeset 40 16118e24b93b
parent 33 834e27cad510
--- a/landmarks/locationlandmarks/tsrc/LandmarkTestModule/src/FT_CPosTp18.cpp	Tue Jul 06 14:44:11 2010 +0300
+++ b/landmarks/locationlandmarks/tsrc/LandmarkTestModule/src/FT_CPosTp18.cpp	Wed Aug 18 10:11:45 2010 +0300
@@ -2,9 +2,9 @@
 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
 * All rights reserved.
 * This component and the accompanying materials are made available
-* under the terms of the License "Symbian Foundation License v1.0"
+* under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
-* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
@@ -32,6 +32,9 @@
 _LIT(KNoPreparedPartialErr, "Method TakePreparedPartialLandmarksL returns incorrect no. landmarks");
 _LIT(KNoPreparedPartialErr2, "Method TakePreparedPartialLandmarksL returns incorrect landmarks");
 
+_LIT(KTp18DbFile, "TP18Test.ldb");
+_LIT(KTp18DbFile1, "TP18Test1.ldb");
+
 // ================= MEMBER FUNCTIONS =======================
 
 
@@ -66,8 +69,8 @@
 void CPosTp18::StartL()
     {
     _LIT(KNotPartialErr, "Landmark is not a partial landmark");
-
-    iDatabase = UseGeneratedDbFileL();
+    CopyTestDbFileL(KTp18DbFile);
+    iDatabase = CPosLandmarkDatabase::OpenL(KTp18DbFile);
     
     if (iDatabase->IsInitializingNeeded())
        {
@@ -414,7 +417,8 @@
     // should only return empty landmarks
     delete iDatabase;
     iDatabase = NULL;
-    iDatabase = UseGeneratedDbFileL();
+    CopyTestDbFileL(KTp18DbFile1);
+	iDatabase = CPosLandmarkDatabase::OpenL(KTp18DbFile1);
     
     if (iDatabase->IsInitializingNeeded()) ExecuteAndDeleteLD(iDatabase->InitializeL());