camappengine/StillConverter/Src/CaeStillConverterTestErrors.cpp
branchRCL_3
changeset 34 27fe719c32e6
parent 0 9b3e960ffc8a
equal deleted inserted replaced
33:e3cdd00b5ae3 34:27fe719c32e6
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Camera Application Engine Still Converter error simulations 
       
    15 *                (CAE_TEST_VERSION only).
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifdef CAE_TEST_VERSION
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 // Error simulation variables.
       
    27 TInt CaeConvertCFbsBitmapToHBufC8ErrorValue( 0 );
       
    28 TInt CaeConvertHBufC8ToCFbsBitmapErrorValue( 0 );
       
    29 TInt CaeStillConvertErrorValue( 0 );
       
    30 
       
    31 
       
    32 // ============================ GLOBAL FUNCTIONS ===============================
       
    33 
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // CaeSetConvertCFbsBitmapToHBufC8Error
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 EXPORT_C void CaeSetConvertCFbsBitmapToHBufC8Error( TInt aError )
       
    40     {
       
    41     CaeConvertCFbsBitmapToHBufC8ErrorValue = aError;
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // CaeConvertCFbsBitmapToHBufC8ErrorL
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 EXPORT_C void CaeConvertCFbsBitmapToHBufC8ErrorL()
       
    49     {
       
    50     if ( CaeConvertCFbsBitmapToHBufC8ErrorValue != KErrNone )
       
    51         {
       
    52         User::Leave( CaeConvertCFbsBitmapToHBufC8ErrorValue );
       
    53         }
       
    54     }
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // CaeSetConvertHBufC8ToCFbsBitmapError
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 EXPORT_C void CaeSetConvertHBufC8ToCFbsBitmapError( TInt aError )
       
    61     {
       
    62     CaeConvertHBufC8ToCFbsBitmapErrorValue = aError;
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CaeConvertHBufC8ToCFbsBitmapErrorL
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 EXPORT_C void CaeConvertHBufC8ToCFbsBitmapErrorL()
       
    70     {
       
    71     if ( CaeConvertHBufC8ToCFbsBitmapErrorValue != KErrNone )
       
    72         {
       
    73         User::Leave( CaeConvertHBufC8ToCFbsBitmapErrorValue );
       
    74         }
       
    75     }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CaeSetStillConvertError
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 EXPORT_C void CaeSetStillConvertError( TInt aError )
       
    82     {
       
    83     CaeStillConvertErrorValue = aError;
       
    84     }
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // CaeStillConvertErrorL
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 EXPORT_C void CaeStillConvertErrorL()
       
    91     {
       
    92     if ( CaeStillConvertErrorValue != KErrNone )
       
    93         {
       
    94         User::Leave( CaeStillConvertErrorValue );
       
    95         }
       
    96     }
       
    97 
       
    98 
       
    99 #endif // CAE_TEST_VERSION
       
   100 
       
   101 //  End of File