0
|
1 |
// Copyright (c) 2007-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 the License "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 |
// e32test\misc\t_destruct.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __T_DESTRUCT_H__
|
|
19 |
|
|
20 |
// Passed to slave process to indicate which test to run, also used as the exit reason of slave
|
|
21 |
// process to check that the correct code path executed.
|
|
22 |
enum TTestType
|
|
23 |
{
|
|
24 |
ETestMainThreadReturn=1,
|
|
25 |
ETestMainThreadExit,
|
|
26 |
ETestChildThreadReturn,
|
|
27 |
ETestOtherThreadExit,
|
|
28 |
ETestOtherThreadPanic,
|
|
29 |
ETestOtherThreadRunning,
|
|
30 |
ETestPermanentThreadExit,
|
|
31 |
ETestRecursive,
|
|
32 |
ETestDestructorExits,
|
|
33 |
ETestLastThreadPanic,
|
|
34 |
|
|
35 |
ENumTestTypes
|
|
36 |
};
|
|
37 |
|
|
38 |
// Messages passed from slave process to main test process to signal when destruction has happened.
|
|
39 |
enum TMessage
|
|
40 |
{
|
|
41 |
EMessageConstruct, // construction of exe global data
|
|
42 |
EMessageConstructStatic, // construction of statically-linked dll data
|
|
43 |
EMessageConstructDynamic, // construction of dynamically-loaded dll data
|
|
44 |
EMessageConstructStatic3, // construction of statically-linked dll data in dll 3
|
|
45 |
EMessagePreDestruct, // destruct shouldn't happen before here
|
|
46 |
EMessageDestruct, // destruction of exe global data
|
|
47 |
EMessageDestructStatic, // destruction of statically-linked dll data
|
|
48 |
EMessageDestructDynamic, // destruction of dynamically-loaded dll data
|
|
49 |
EMessageDestructStatic3, // destruction of statically-linked dll data in dll 3
|
|
50 |
|
|
51 |
ENumMessges
|
|
52 |
};
|
|
53 |
|
|
54 |
_LIT(KMessageQueueName, "t_destruct queue");
|
|
55 |
|
|
56 |
IMPORT_C void StaticMain();
|
|
57 |
IMPORT_C void StaticMain3();
|
|
58 |
|
|
59 |
#endif
|