telephonyserverplugins/ctsydispatchlayer/test/ltsyskeleton_using_dispatcher/ltsyskeleton/inc/ltsymacros.h
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    36 		#define MTEST_QUERY_SUPPORT_MOCKLTSYENGINE(A,B) return iMockLtsy->IsInterfaceSupported(A, B)
    36 		#define MTEST_QUERY_SUPPORT_MOCKLTSYENGINE(A,B) return iMockLtsy->IsInterfaceSupported(A, B)
    37 		#define MTEST_QUERY_IND_SUPPORT_MOCKLTSYENGINE(A,B, C) iMockLtsy->IsCallbackIndSupported(A, B, C)
    37 		#define MTEST_QUERY_IND_SUPPORT_MOCKLTSYENGINE(A,B, C) iMockLtsy->IsCallbackIndSupported(A, B, C)
    38 		#define MTEST_DECLARE_EVENT_COUNTER TInt iCounter;
    38 		#define MTEST_DECLARE_EVENT_COUNTER TInt iCounter;
    39 //all we are doing is is simulating "events from received from baseband occuring at interval of 5s.
    39 //all we are doing is is simulating "events from received from baseband occuring at interval of 5s.
    40 		#define MTEST_WAIT_FOR_NEXT_EVENT	User::After(500000);iCounter++;	
    40 		#define MTEST_WAIT_FOR_NEXT_EVENT	User::After(500000);iCounter++;	
    41 				
       
    42 		#define MTEST_LOG_RECEIVE_EVENT_NO LOG(_L8("LtsyReceiveThread simulated event = %d"), iCounter);
       
    43 		#define MTEST_COUNTER_EXCEEDED_SHUTDOWN_RECEIVETHREAD   if(iCounter>3) err = KShutdownLtsyReceiveThread;
    41 		#define MTEST_COUNTER_EXCEEDED_SHUTDOWN_RECEIVETHREAD   if(iCounter>3) err = KShutdownLtsyReceiveThread;
    44 
    42 
    45 	#else
    43 	#else
    46 #define MOCKLTSYREQ(A) //to remove
    44 #define MOCKLTSYREQ(A) //to remove
    47 		#define MTEST_ISSUE_MOCKLTSYENGINE_REQ(A, B, C, ARGS...)
    45 		#define MTEST_ISSUE_MOCKLTSYENGINE_REQ(A, B, C, ARGS...)
    54 		#define MTEST_SET_MOCKLTSYENGINE(A)
    52 		#define MTEST_SET_MOCKLTSYENGINE(A)
    55 		#define MTEST_QUERY_SUPPORT_MOCKLTSYENGINE(A,B)
    53 		#define MTEST_QUERY_SUPPORT_MOCKLTSYENGINE(A,B)
    56 		#define MTEST_QUERY_IND_SUPPORT_MOCKLTSYENGINE(A,B, C)
    54 		#define MTEST_QUERY_IND_SUPPORT_MOCKLTSYENGINE(A,B, C)
    57 		#define MTEST_DECLARE_EVENT_COUNTER
    55 		#define MTEST_DECLARE_EVENT_COUNTER
    58 		#define MTEST_WAIT_FOR_NEXT_EVENT
    56 		#define MTEST_WAIT_FOR_NEXT_EVENT
    59 		#define MTEST_LOG_RECEIVE_EVENT_NO
       
    60 		#define MTEST_COUNTER_EXCEEDED_SHUTDOWN_RECEIVETHREAD   
    57 		#define MTEST_COUNTER_EXCEEDED_SHUTDOWN_RECEIVETHREAD   
    61 	#endif
    58 	#endif
    62 
    59 
    63 #endif // __LTSYMACROS_H_
    60 #endif // __LTSYMACROS_H_