landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp33.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2004 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 "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-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 CPOSTP33_H
       
    21 #define CPOSTP33_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "FT_CLandmarkTestProcedureBase.h"
       
    25 
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 
       
    30 //constants 
       
    31 /**
       
    32 *  Test procedure 33
       
    33 */
       
    34 class CPosTp33 :public CLandmarkTestProcedureBase
       
    35     {
       
    36     public:  // Constructors and destructor
       
    37         
       
    38         /**
       
    39         * C++ default constructor.
       
    40         */
       
    41         CPosTp33() : CLandmarkTestProcedureBase(33) {};
       
    42         
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         ~CPosTp33() {};
       
    47 
       
    48     public: // Functions from base classes
       
    49 
       
    50         /**
       
    51         * From CUtfwTestBase
       
    52         * Retrieves the test module name
       
    53         * @param aName The name of the test module.
       
    54         */
       
    55         void GetName(
       
    56             TDes&   aName
       
    57             ) const;
       
    58 
       
    59         /**
       
    60         * From CLandmarkTestProcedureBase
       
    61         * Runs the test in the module
       
    62         */
       
    63         void StartL();
       
    64 
       
    65         void CloseTest();
       
    66 
       
    67         static void RunTestL(TAny* aData);
       
    68 
       
    69     private:
       
    70 
       
    71         /**
       
    72         * Opening and closing the landmark database serveral times fast
       
    73         */        
       
    74         void StressTestL();
       
    75 
       
    76         /**
       
    77         * TBD
       
    78         */        
       
    79         void ThreadTestL();
       
    80 
       
    81         void StartMultipleClientsL(TUint aNoClients);
       
    82 
       
    83         void CreateThreadsL(const TUint aNoThreads);
       
    84 
       
    85         void KillTestL();
       
    86         
       
    87         		void ListAllServers(const TDesC& aServerName);
       
    88 		
       
    89 		void ListAllProcesses(const TDesC& aProcessName);
       
    90 		
       
    91 		void ListAllThreads(const TDesC& aThreadName);
       
    92 
       
    93         /**
       
    94         * Prints the Landmark heap to the logfile.
       
    95         */
       
    96         void MonitorHeapL(TBool aSetMaxHeap = EFalse);
       
    97 
       
    98         /**
       
    99         * Get heap size for specified thread
       
   100         * using the RThread::GetRamSizes() method on TARGET
       
   101         */
       
   102         TInt GetHeapSizeL(const TDesC& aThreadName, TInt& aSize, TInt& aUsed);
       
   103 
       
   104     private:
       
   105 
       
   106         RArray<RThread>	    iThreads; 
       
   107         TInt                iThreadIndex;
       
   108         CPosLandmarkDatabase* iLmd1;
       
   109         CPosLandmarkDatabase* iLmd2;
       
   110         TInt                  iMaxHeap;
       
   111     };
       
   112 
       
   113 
       
   114 
       
   115 #endif      // CPOSTP33_H
       
   116             
       
   117 // End of File