os/security/cryptomgmtlibs/securitytestfw/test/testutil/testutilcommon/testutilssessioncommon.h
First public contribution.
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Common class for the testutil and testutilswi
31 EPanicIllegalFunction,
32 EPanicAlreadyReceiving
35 void PanicClient(const RMessagePtr2& aMessage,TTestUtilPanic TTestUtilPanic);
37 class CTestUtilSessionCommon : public CBase
40 CTestUtilSessionCommon();
41 ~CTestUtilSessionCommon();
43 static HBufC* AllocateInputBufferLC(const RMessage2& aMessage,TInt aParam);
44 void Send(const TDesC& aMessage);
45 inline TBool ReceivePending() const;
47 friend class CTestUtilSessionSwi;
48 friend class CTestUtilServerSwi;
49 friend class CTestUtilSession;
50 friend class CTestUtilServer;
51 friend class CTestFileDetector;
53 RMessagePtr2 iReceiveMsg;
56 // CTestUtilSession inlines
57 inline TBool CTestUtilSessionCommon::ReceivePending() const
58 {return !iReceiveMsg.IsNull();}