--- a/landmarks/locationlandmarks/tsrc/LandmarkTestModule/src/FT_CPosTp164.cpp Tue Jul 06 14:44:11 2010 +0300
+++ b/landmarks/locationlandmarks/tsrc/LandmarkTestModule/src/FT_CPosTp164.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.
@@ -29,6 +29,9 @@
#include <EPos_CPosLmTextCriteria.h>
#include <EPos_CPosLMItemIterator.h>
+_LIT(KTp164DbFile, "TP164Test.ldb");
+
+
// ================= CONSTANTS =======================
@@ -89,11 +92,11 @@
iLog->Log(_L("----- TestImportEmptyDbL -----"));
iLog->Log(_L("FILE: %S"), &aFile);
RemoveAllLmDatabasesL();
-
+ CopyTestDbFileL(KTp164DbFile);
iLandmarkParser = CPosLandmarkParser::NewL(aMime);
iLandmarkParser->SetInputFileL(aFile);
- iDatabase = CPosLandmarkDatabase::OpenL();
+ iDatabase = CPosLandmarkDatabase::OpenL(KTp164DbFile);
if (iDatabase->IsInitializingNeeded())
{
ExecuteAndDeleteLD(iDatabase->InitializeL());
@@ -144,11 +147,12 @@
iLog->Log(_L("----- TestImport1L ------"));
iLog->Log(_L("FILE: %S"), &aFile);
RemoveAllLmDatabasesL();
-
+ CopyTestDbFileL(KTp164DbFile);
iLandmarkParser = CPosLandmarkParser::NewL(aMime);
iLandmarkParser->SetInputFileL(aFile);
- iDatabase = CPosLandmarkDatabase::OpenL();
+ TRAPD( err,iDatabase = CPosLandmarkDatabase::OpenL(KTp164DbFile));
+ iLog->Log(_L("Error after CPosLandmarkDatabase::OpenL = %d"),err);
if (iDatabase->IsInitializingNeeded())
{