1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/mmu/t_shbuf_perfclient.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,65 @@
1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// e32test/mmu/t_shbuf_perfclient.h
1.18 +//
1.19 +//
1.20 +
1.21 +#ifndef _T_SHBUF_PERFCLIENT_H_
1.22 +#define _T_SHBUF_PERFCLIENT_H_
1.23 +
1.24 +#include <e32base.h>
1.25 +#include <e32shbuf.h>
1.26 +
1.27 +class RShBuf;
1.28 +/**
1.29 + * @file
1.30 + *
1.31 + * Client side APIs for a test server used for Performance Testing of shared buffers.
1.32 + */
1.33 +
1.34 +
1.35 +/**
1.36 + * Provides client side access to the RShBuf test server.
1.37 + */
1.38 +class RShBufTestServerSession : public RSessionBase
1.39 + {
1.40 +public:
1.41 + IMPORT_C RShBufTestServerSession();
1.42 + IMPORT_C TInt Connect();
1.43 + IMPORT_C void Close();
1.44 + IMPORT_C TVersion Version() const;
1.45 + IMPORT_C TInt ShutdownServer();
1.46 +
1.47 + IMPORT_C TInt FromTPtr8ProcessAndReturn(TDes8& aBuf, TUint aBufSize);
1.48 + IMPORT_C TInt FromTPtr8ProcessAndRelease(const TDesC8& aBuf);
1.49 +
1.50 + IMPORT_C TInt OpenRShBufPool(TInt aHandle, const TShPoolInfo& aPoolInfo);
1.51 + IMPORT_C TInt CloseRShBufPool(TInt aHandle);
1.52 + IMPORT_C TInt FromRShBufProcessAndReturn(RShBuf& aShBuf, TUint aBufSize);
1.53 + IMPORT_C TInt FromRShBufProcessAndRelease(RShBuf& aShBuf);
1.54 +
1.55 + //
1.56 + // Memory checking functionality for Debug builds only.
1.57 + //
1.58 + IMPORT_C TInt __DbgMarkHeap();
1.59 + IMPORT_C TInt __DbgCheckHeap(TInt aCount);
1.60 + IMPORT_C TInt __DbgMarkEnd(TInt aCount);
1.61 + IMPORT_C TInt __DbgFailNext(TInt aCount);
1.62 +
1.63 +private:
1.64 + RShBufTestServerSession(const RShBufTestServerSession& aSession);
1.65 + };
1.66 +
1.67 +#endif // _T_SHBUF_PERFCLIENT_H_
1.68 +