debugsrv/runmodedebug/tsrc/rm_debug/basic_tests/r_user_low_memory_security_svr_session.cpp
changeset 56 aa2539c91954
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 "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 // r_kernel_low_memory_security_svr_session.cpp
       
    15 // Implementation of RUserLowMemorySecuritySvrSession
       
    16 // 
       
    17 //
       
    18 
       
    19 #include "r_user_low_memory_security_svr_session.h"
       
    20 #include <rm_debug_api.h>
       
    21 #ifdef _DEBUG
       
    22 #include "low_mem_requests.h"
       
    23 #endif
       
    24 
       
    25 void RUserLowMemorySecuritySvrSession::FailAlloc(const TInt aCount)
       
    26 	{
       
    27 #ifdef _DEBUG
       
    28 	TIpcArgs args(aCount);
       
    29 	SendReceive(EDebugServFailAlloc, args);
       
    30 #endif
       
    31 	}
       
    32 
       
    33 void RUserLowMemorySecuritySvrSession::HeapReset()
       
    34 	{
       
    35 #ifdef _DEBUG
       
    36 	TIpcArgs args(0);
       
    37 	SendReceive(EDebugServFailAlloc, args);
       
    38 #endif
       
    39 	}
       
    40 
       
    41 void RUserLowMemorySecuritySvrSession::MarkHeap()
       
    42 	{
       
    43 #ifdef _DEBUG
       
    44 	SendReceive(EDebugServMarkHeap);
       
    45 #endif
       
    46 	}
       
    47 
       
    48 void RUserLowMemorySecuritySvrSession::MarkHeapEnd()
       
    49 	{
       
    50 #ifdef _DEBUG
       
    51 	SendReceive(EDebugServMarkEnd);
       
    52 #endif
       
    53 	}
       
    54