debugsrv/runmodedebug/rmdebug_test/rm_debug/basic_tests/r_low_memory_security_svr_session.h
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     1 // Copyright (c) 2007-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 // Version of security server session to enable testing of low memory conditions
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21  @released
       
    22 */
       
    23 
       
    24 #ifndef R_LOW_MEMORY_SECURITY_SVR_SESSION_H
       
    25 #define R_LOW_MEMORY_SECURITY_SVR_SESSION_H
       
    26 
       
    27 #include <rm_debug_api.h>
       
    28 
       
    29 class RLowMemorySecuritySvrSession : public Debug::RSecuritySvrSession
       
    30 	{
       
    31 public:
       
    32 	TInt GetList(const Debug::TListId aListId, TDes8& aListData, TUint32& aDataSize);
       
    33 	TInt GetList(const TThreadId aThreadId, const Debug::TListId aListId, TDes8& aListData, TUint32& aDataSize);
       
    34 	TInt GetList(const TProcessId aProcessId, const Debug::TListId aListId, TDes8& aListData, TUint32& aDataSize);
       
    35 protected:
       
    36 	virtual void FailAlloc(const TInt aCount) = 0;
       
    37 	virtual void HeapReset() = 0;
       
    38 	virtual void MarkHeap() = 0;
       
    39 	virtual void MarkHeapEnd() = 0;
       
    40 	};
       
    41 
       
    42 #endif //R_LOW_MEMORY_SECURITY_SVR_SESSION_H
       
    43