os/kernelhwsrv/kerneltest/e32test/mmu/t_shbuf_perfclient.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 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 // e32test/mmu/t_shbuf_perfclient.h
    15 //
    16 //
    17 
    18 #ifndef _T_SHBUF_PERFCLIENT_H_
    19 #define _T_SHBUF_PERFCLIENT_H_
    20 
    21 #include <e32base.h>
    22 #include <e32shbuf.h>
    23 
    24 class RShBuf;
    25 /**
    26  *  @file
    27  * 
    28  *  Client side APIs for a test server used for Performance Testing of shared buffers.
    29  */
    30 
    31 
    32 /**
    33  *  Provides client side access to the RShBuf test server.
    34  */
    35 class RShBufTestServerSession : public RSessionBase
    36 	{
    37 public:
    38 	IMPORT_C RShBufTestServerSession();
    39 	IMPORT_C TInt Connect();
    40 	IMPORT_C void Close();
    41 	IMPORT_C TVersion Version() const;
    42 	IMPORT_C TInt ShutdownServer();
    43 	
    44 	IMPORT_C TInt FromTPtr8ProcessAndReturn(TDes8& aBuf, TUint aBufSize);
    45 	IMPORT_C TInt FromTPtr8ProcessAndRelease(const TDesC8& aBuf);
    46 
    47 	IMPORT_C TInt OpenRShBufPool(TInt aHandle, const TShPoolInfo& aPoolInfo);
    48 	IMPORT_C TInt CloseRShBufPool(TInt aHandle);
    49 	IMPORT_C TInt FromRShBufProcessAndReturn(RShBuf& aShBuf, TUint aBufSize);
    50 	IMPORT_C TInt FromRShBufProcessAndRelease(RShBuf& aShBuf);
    51 
    52 	//
    53 	// Memory checking functionality for Debug builds only.
    54 	//
    55 	IMPORT_C TInt __DbgMarkHeap();
    56 	IMPORT_C TInt __DbgCheckHeap(TInt aCount);
    57 	IMPORT_C TInt __DbgMarkEnd(TInt aCount);
    58 	IMPORT_C TInt __DbgFailNext(TInt aCount);
    59 
    60 private:
    61 	RShBufTestServerSession(const RShBufTestServerSession& aSession);
    62 	};
    63 
    64 #endif // _T_SHBUF_PERFCLIENT_H_
    65