kerneltest/e32test/rm_debug/metro_trk/t_rmdebug.h
changeset 245 647ab20fee2e
parent 244 a77889bee936
child 252 0a40b8675b23
equal deleted inserted replaced
244:a77889bee936 245:647ab20fee2e
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Definitions for the run mode debug tests
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef RMDEBUG_H
       
    19 #define RMDEBUG_H
       
    20 
       
    21 // Function codes (opcodes) used in message passing between client and server
       
    22 enum TRunModeAgentState
       
    23 	{
       
    24 	ERunModeAgentUnInit,
       
    25     ERunModeAgentRunning,
       
    26 	};
       
    27 
       
    28 
       
    29 //
       
    30 // class CRunModeAgent
       
    31 //
       
    32 // The basic run mode agent.
       
    33 //
       
    34 class CRunModeAgent : public CBase
       
    35 	{
       
    36 	public:
       
    37 		static CRunModeAgent* NewL();
       
    38 		~CRunModeAgent();
       
    39 		void ClientAppL();
       
    40 
       
    41 	private:
       
    42 		CRunModeAgent();
       
    43 		void ConstructL();
       
    44 
       
    45 		TInt TestStartup();
       
    46 		TInt TestShutdown();
       
    47 
       
    48 		void TestProcessList();
       
    49 		void TestThreadList();
       
    50 		void TestMemoryAccess();
       
    51 		void TestSuspendResume();
       
    52 
       
    53 	private:
       
    54 		RDebugServSession	iServSession;
       
    55 		RThread				iDebugThread;
       
    56 		TInt				iProcessID;
       
    57 		TInt				iThreadID;
       
    58         TInt                iState;
       
    59 	};
       
    60 
       
    61 #endif // RMDEBUG_H