datasourcemodules/defaultpositioningmodule/test/te_defproxy/inc/oomstep.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 /**
       
     2 * Copyright (c) 2008-2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file OOMStep.h
       
    22  @internalTechnology
       
    23 */
       
    24 #ifndef __OOM_STEP_H__
       
    25 #define __OOM_STEP_H__
       
    26 #include <test/testexecutestepbase.h>
       
    27 #include "Te_defproxySuiteStepBase.h"
       
    28 /*
       
    29 OOM
       
    30 *
       
    31 * To test OOM situation, copy paste the following code to the begining of 
       
    32 * CPosDefaultPositioner::NewL and compile default proxy again.
       
    33     //Debug code
       
    34     TInt fr=0;
       
    35     RFs fs;
       
    36     User::LeaveIfError(fs.Connect());
       
    37     CleanupClosePushL(fs);
       
    38     RFile file;
       
    39     User::LeaveIfError(file.Open(fs, _L("c:\\fr.txt"), EFileRead));
       
    40     CleanupClosePushL(file);
       
    41     TFileText fileText;
       
    42     fileText.Set(file);
       
    43     TBuf<32> buf;
       
    44     fileText.Read(buf);
       
    45     TLex lex(buf);
       
    46     User::LeaveIfError(lex.Val(fr));
       
    47     CleanupStack::PopAndDestroy(2, &fs);
       
    48 
       
    49     __UHEAP_FAILNEXT(fr);
       
    50 
       
    51 */
       
    52 class COOMStep : public CTe_defproxySuiteStepBase
       
    53 	{
       
    54 public:
       
    55 	COOMStep();
       
    56 	~COOMStep();
       
    57 	virtual TVerdict doTestStepPreambleL();
       
    58 	virtual TVerdict doTestStepL();
       
    59 	virtual TVerdict doTestStepPostambleL();
       
    60 	
       
    61 private:
       
    62     void MakeLRL();
       
    63 	};
       
    64 
       
    65 _LIT(KOOMStep,"OOMStep");
       
    66 
       
    67 #endif