mpx/tsrc/public/basic/collectiontest/inc/testpanic.h
author hgs
Tue, 21 Sep 2010 11:25:55 -0500
changeset 62 b276843a15ba
permissions -rw-r--r--
201037
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
62
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  test panic code
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef TESTPANIC_H
hgs
parents:
diff changeset
    19
#define TESTPANIC_H
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
// INCLUDE
hgs
parents:
diff changeset
    22
#include <e32std.h>
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
/** Test panic codes */
hgs
parents:
diff changeset
    25
enum TTestCommonPanics
hgs
parents:
diff changeset
    26
    {
hgs
parents:
diff changeset
    27
    ETestCommonState = 1,
hgs
parents:
diff changeset
    28
    ETestCommonActiveState,
hgs
parents:
diff changeset
    29
    ETestCommonActiveRunError,
hgs
parents:
diff changeset
    30
    ETestCommonOutOfBound,
hgs
parents:
diff changeset
    31
    ETestCommonCancelError,
hgs
parents:
diff changeset
    32
    ETestCommonTestNotSupport,
hgs
parents:
diff changeset
    33
    // add further panics here
hgs
parents:
diff changeset
    34
    };
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
inline void TestPanic(TTestCommonPanics aReason)
hgs
parents:
diff changeset
    37
    {
hgs
parents:
diff changeset
    38
    _LIT(name, "TestCommon");
hgs
parents:
diff changeset
    39
    User::Panic(name, aReason);
hgs
parents:
diff changeset
    40
    }
hgs
parents:
diff changeset
    41
hgs
parents:
diff changeset
    42
#endif // TESTPANIC_H