os/kernelhwsrv/kerneltest/e32test/misc/t_destruct.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/misc/t_destruct.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,59 @@
     1.4 +// Copyright (c) 2007-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\misc\t_destruct.h
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#ifndef __T_DESTRUCT_H__
    1.22 +
    1.23 +// Passed to slave process to indicate which test to run, also used as the exit reason of slave
    1.24 +// process to check that the correct code path executed.
    1.25 +enum TTestType
    1.26 +	{
    1.27 +	ETestMainThreadReturn=1,
    1.28 +	ETestMainThreadExit,
    1.29 +	ETestChildThreadReturn,
    1.30 +	ETestOtherThreadExit,
    1.31 +	ETestOtherThreadPanic,
    1.32 +	ETestOtherThreadRunning,
    1.33 +	ETestPermanentThreadExit,
    1.34 +	ETestRecursive,
    1.35 +	ETestDestructorExits,
    1.36 +	ETestLastThreadPanic,
    1.37 +	
    1.38 +	ENumTestTypes
    1.39 +	};
    1.40 +
    1.41 +// Messages passed from slave process to main test process to signal when destruction has happened.
    1.42 +enum TMessage
    1.43 +	{
    1.44 +	EMessageConstruct,		  // construction of exe global data
    1.45 +	EMessageConstructStatic,  // construction of statically-linked dll data
    1.46 +	EMessageConstructDynamic, // construction of dynamically-loaded dll data
    1.47 +	EMessageConstructStatic3, // construction of statically-linked dll data in dll 3
    1.48 +	EMessagePreDestruct,	  // destruct shouldn't happen before here
    1.49 +	EMessageDestruct,		  // destruction of exe global data
    1.50 +	EMessageDestructStatic,   // destruction of statically-linked dll data
    1.51 +	EMessageDestructDynamic,  // destruction of dynamically-loaded dll data
    1.52 +	EMessageDestructStatic3,  // destruction of statically-linked dll data in dll 3
    1.53 +
    1.54 +	ENumMessges
    1.55 +	};
    1.56 +
    1.57 +_LIT(KMessageQueueName, "t_destruct queue");
    1.58 +
    1.59 +IMPORT_C void StaticMain();
    1.60 +IMPORT_C void StaticMain3();
    1.61 +
    1.62 +#endif