cryptomgmtlibs/securitytestfw/test/testutil/testutilcommon/testutilssessioncommon.h
changeset 8 35751d3474b7
parent 0 2c201484c85f
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: 
    14 * Description: 
    15 * Common class for the testutil 
    15 * Common class for the testutil and testutilswi
    16 *
    16 *
    17 */
    17 */
    18 
       
    19 
       
    20 
    18 
    21 
    19 
    22 /**
    20 /**
    23  @file 
    21  @file 
    24  @test
    22  @test
    44 private:
    42 private:
    45 	static HBufC* AllocateInputBufferLC(const RMessage2& aMessage,TInt aParam);
    43 	static HBufC* AllocateInputBufferLC(const RMessage2& aMessage,TInt aParam);
    46 	void Send(const TDesC& aMessage);
    44 	void Send(const TDesC& aMessage);
    47 	inline TBool ReceivePending() const;
    45 	inline TBool ReceivePending() const;
    48 	
    46 	
       
    47 	friend class CTestUtilSessionSwi;
       
    48 	friend class CTestUtilServerSwi;
    49 	friend class CTestUtilSession;
    49 	friend class CTestUtilSession;
    50 	friend class CTestUtilServer;
    50 	friend class CTestUtilServer;
    51 	friend class CTestFileDetector;
    51 	friend class CTestFileDetector;
    52 private:
    52 private:
    53 	RMessagePtr2 iReceiveMsg;
    53 	RMessagePtr2 iReceiveMsg;
    54 	};
    54 	};
    55 
    55 
    56 // CTestUtilSession inlines
    56 // CTestUtilSession inlines
    57 inline TBool CTestUtilSessionCommon::ReceivePending() const
    57 inline TBool CTestUtilSessionCommon::ReceivePending() const
    58 	{return !iReceiveMsg.IsNull();}
    58 	{return !iReceiveMsg.IsNull();}
       
    59