datacommsserver/esockserver/test/TE_IPCTest/Test04IPCMultithreadedDataTransfer.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2004-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 "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 // Contains declaration of test 04 that:
       
    15 // - establishes client server/connection between two threads;
       
    16 // - tranfers short message.
       
    17 // 
       
    18 //
       
    19 
       
    20 #if (!defined __TEST04IPCMULTITHREADEDDATATRANSFER_H__)
       
    21 #define __TEST04IPCMULTITHREADEDDATATRANSFER_H__
       
    22 
       
    23 #include "TestStepIPC.h"
       
    24 
       
    25 class CTest04IPCMultithreadedDataTransfer : public CIPCTestStep_OOMCapable
       
    26 	{
       
    27 	public:
       
    28 		static const TDesC& GetTestName();
       
    29 		CTest04IPCMultithreadedDataTransfer();
       
    30 		~CTest04IPCMultithreadedDataTransfer();
       
    31 		virtual enum TVerdict InternalDoTestStepL( void );
       
    32 	private:
       
    33 		static TInt fReceiverThread(TAny*);   //This is the thread that will receive data
       
    34 		static TInt fTransmitterThread(TAny*);//This is the thread that will send data
       
    35 		/* This thread ensures that if either of the other threads hang (due to 
       
    36 		 * uncompleted asynchronous call), this test is not timed out by TEF. */
       
    37 		static TInt fInactivityTimeoutThread(TAny*);
       
    38 		
       
    39 		TInt iThreadStackSize;         //Stack size of the threads
       
    40 		TBufC<8> iSemName;		       //Will contain semaphore name: "IPC sem"
       
    41 		TBufC8<0x20> iTestString;      //Will contain test string
       
    42 		TBuf<200> iReceiveThreadResult;
       
    43 		TBuf<200> iTransmitThreadResult;
       
    44 		RThread iThreadRec;
       
    45 		RThread iThreadTr;
       
    46 		TRequestStatus iRecStatus;
       
    47 		TRequestStatus iTrStatus;
       
    48 		
       
    49 	};	
       
    50 #endif //(__TEST04IPCMULTITHREADEDDATATRANSFER_H__)
       
    51