diff -r a151135b0cf9 -r aa2539c91954 debugsrv/runmodedebug/tsrc/rm_debug/basic_tests/r_user_low_memory_security_svr_session.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debugsrv/runmodedebug/tsrc/rm_debug/basic_tests/r_user_low_memory_security_svr_session.cpp Fri Oct 08 14:56:39 2010 +0300 @@ -0,0 +1,54 @@ +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// r_kernel_low_memory_security_svr_session.cpp +// Implementation of RUserLowMemorySecuritySvrSession +// +// + +#include "r_user_low_memory_security_svr_session.h" +#include +#ifdef _DEBUG +#include "low_mem_requests.h" +#endif + +void RUserLowMemorySecuritySvrSession::FailAlloc(const TInt aCount) + { +#ifdef _DEBUG + TIpcArgs args(aCount); + SendReceive(EDebugServFailAlloc, args); +#endif + } + +void RUserLowMemorySecuritySvrSession::HeapReset() + { +#ifdef _DEBUG + TIpcArgs args(0); + SendReceive(EDebugServFailAlloc, args); +#endif + } + +void RUserLowMemorySecuritySvrSession::MarkHeap() + { +#ifdef _DEBUG + SendReceive(EDebugServMarkHeap); +#endif + } + +void RUserLowMemorySecuritySvrSession::MarkHeapEnd() + { +#ifdef _DEBUG + SendReceive(EDebugServMarkEnd); +#endif + } +