|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: XIMP Framework panic defines. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PRFWTESTCASEUTILSPANICS_H |
|
19 #define PRFWTESTCASEUTILSPANICS_H |
|
20 |
|
21 #include <e32std.h> |
|
22 |
|
23 /** |
|
24 * Panic category and reason codes for XIMP Framework |
|
25 * test case utils failures. |
|
26 */ |
|
27 namespace NXIMPTestCaseUtilsPanic |
|
28 { |
|
29 _LIT( KCategory, "XIMPTestUtils" ); |
|
30 |
|
31 enum TReason |
|
32 { |
|
33 EStatusEventListenerBadMaxCount, |
|
34 EStatusEventListenerAlreadyWaiting, |
|
35 EStatusEventListenerUnknownEventTemplate, |
|
36 EAddSnapshotOverflow, |
|
37 ESnapshotIndexOutOfBounds, |
|
38 EReceivingEventFromWrongContext, |
|
39 EReceivedNotAcceptedEventType, |
|
40 EUnsupportedEventTypeInVerification |
|
41 }; |
|
42 |
|
43 |
|
44 inline void Panic( NXIMPTestCaseUtilsPanic::TReason aReason ) |
|
45 { |
|
46 User::Panic( KCategory, aReason ); |
|
47 |
|
48 } |
|
49 } |
|
50 |
|
51 |
|
52 #endif //PRFWTESTCASEUTILSPANICS_H |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |