landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp52.h
changeset 33 834e27cad510
child 35 1a92308afc46
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp52.h	Tue Jul 06 14:44:11 2010 +0300
@@ -0,0 +1,101 @@
+/*
+* Copyright (c) 2004 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"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*   ?description_line
+*
+*/
+
+
+#ifndef CPOSTP52_H
+#define CPOSTP52_H
+
+//  INCLUDES
+#include "FT_CLandmarkTestProcedureBase.h"
+
+// CLASS DECLARATION
+class CPosLandmarkParser;
+
+/**
+*  Test procedure 48
+*/
+class CPosTp52 :public CLandmarkTestProcedureBase
+    {
+    public:  // Constructors and destructor
+        
+        /**
+        * C++ default constructor.
+        */
+        
+        CPosTp52(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {iErrorsFound=KErrNone;};
+        /**
+        * Destructor.
+        */
+        ~CPosTp52() {};
+
+    public: // Functions from base classes
+
+       
+        void CloseTest();
+
+        /**
+        * From CLandmarkTestProcedureBase
+        * Runs the test in the module
+        */
+        void StartL();
+
+    private:
+
+        /**
+        * Do the import of landmarks
+        */
+        TInt ImportLandmarksL(TBool aSync, TUint aTransferOption);
+
+        /**
+        * Prepare landmarkdb for test
+        */
+        void ResetLandmarksDbL();
+
+        /**
+        * Get nr of landmarks in lm db
+        */
+        TInt GetNrOfLandmarksL();
+
+        /**
+        * Import landmarks from test, both sync and async
+        */
+        void DoTestL(
+            const TDesC&  aTestFile, 
+            const TDesC8& aMimeType,
+            TInt aExpectedErrorCode, 
+            TInt aExpNrImportedLandmarks=0);
+
+        /**
+        * Check landmark in lm db
+        */
+        void CheckLongLandmarkNameL();
+
+        /**
+        * Check landmark category in lm db
+        */
+        void CheckLongCategoryNameL(TInt aNumExpectedCategories);
+
+    private:
+        CPosLandmarkParser* iLandmarkParser;
+        TInt iErrorsFound;
+
+    };
+
+#endif      // CPOSTp52_H
+            
+// End of File