mpx/tsrc/public/basic/collectiontest/inc/testpanic.h
changeset 64 92dbd2a406d9
equal deleted inserted replaced
61:3b098142db83 64:92dbd2a406d9
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  test panic code
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTPANIC_H
       
    19 #define TESTPANIC_H
       
    20 
       
    21 // INCLUDE
       
    22 #include <e32std.h>
       
    23 
       
    24 /** Test panic codes */
       
    25 enum TTestCommonPanics
       
    26     {
       
    27     ETestCommonState = 1,
       
    28     ETestCommonActiveState,
       
    29     ETestCommonActiveRunError,
       
    30     ETestCommonOutOfBound,
       
    31     ETestCommonCancelError,
       
    32     ETestCommonTestNotSupport,
       
    33     // add further panics here
       
    34     };
       
    35 
       
    36 inline void TestPanic(TTestCommonPanics aReason)
       
    37     {
       
    38     _LIT(name, "TestCommon");
       
    39     User::Panic(name, aReason);
       
    40     }
       
    41 
       
    42 #endif // TESTPANIC_H