landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTP54.h
changeset 33 834e27cad510
child 35 1a92308afc46
equal deleted inserted replaced
32:b12ea03c50a3 33:834e27cad510
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *   ?description_line
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPOSTp54_H
       
    21 #define CPOSTp54_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "FT_CLandmarkTestProcedureBase.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Test procedure 54
       
    30 */
       
    31 class CPosTp54 :public CLandmarkTestProcedureBase
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         /**
       
    36         * C++ default constructor.
       
    37         */
       
    38         CPosTp54() : CLandmarkTestProcedureBase(54) {};
       
    39         
       
    40         /**
       
    41         * Destructor.
       
    42         */
       
    43         ~CPosTp54() {};
       
    44 
       
    45     public: // Functions from base classes
       
    46 
       
    47         /**
       
    48         * From CUtfwTestBase
       
    49         * Retrieves the test module name
       
    50         * @param aName The name of the test module.
       
    51         */
       
    52         void GetName(
       
    53             TDes&   aName
       
    54             ) const;
       
    55 
       
    56         /**
       
    57         * From CUtfwTestBase
       
    58         */
       
    59         void CloseTest();
       
    60 
       
    61         /**
       
    62         * From CUtfwTestBase
       
    63         */
       
    64         void InitTestL();
       
    65 
       
    66         /**
       
    67         * From CPosTestProcedureBase
       
    68         * Runs the test in the module
       
    69         */
       
    70         void StartL();
       
    71 
       
    72     private:    // New functions
       
    73 
       
    74         /**
       
    75         * Returns the execution time in milliseconds
       
    76         */
       
    77         TInt64 ExecutionTimeSynchL(TBool aIsSorted);
       
    78 
       
    79         /**
       
    80         * Returns the longest execution time of a RunL call in milliseconds
       
    81         */
       
    82         TInt64 ExecutionTimeAsynchL(TBool aIsSorted);
       
    83 
       
    84         TBool VerifyResult(
       
    85             TInt64 aExecTime, 
       
    86             TInt aNrOfLandmarks, 
       
    87             TBool aSorted, 
       
    88             TInt64 aLimit, 
       
    89             TBool aSynch);
       
    90 
       
    91         TInt64 TestIteratorSynchL(const TDesC& aDatabase, TBool aIsSorted);
       
    92 
       
    93         TInt64 TestIteratorAsynchL(const TDesC& aDatabase, TBool aIsSorted);
       
    94 
       
    95         void RecreateDatabaseL(const TDesC& aDatabase);
       
    96 
       
    97         TInt64 ExecuteLmOp(CPosLmOperation* aOp, TInt& aResult);
       
    98         
       
    99         void CreateLargeDbs(TInt aNrOfItems);
       
   100 
       
   101     private:    // Data
       
   102 
       
   103     };
       
   104 
       
   105 #endif      // CPOSTp54_H
       
   106             
       
   107 // End of File