Update contrib.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
22 #ifndef __EFMTESTSTEPBASE__
23 #define __EFMTESTSTEPBASE__
25 #include <test/testexecutestepbase.h>
26 #include "efm_test_consts.h"
28 test type section name
29 test type section indicates whether the test step is performed in normal
30 or low capabilty environment
32 _LIT(KTestLowCap, "testlowcap");
33 _LIT(KTestOOM, "testOOM");
35 //macros used for testing
36 #define TESTDIAGNOSTIC(cond,message)\
39 ERR_PRINTF1( message);\
40 SetTestStepResult(EFail);\
43 #define TESTDIAGNOSTICERROR(cond,message,error)\
46 ERR_PRINTF2( message, error );\
47 SetTestStepResult(EFail);\
50 /** Test step that publishes features required by the rest of test steps
52 _LIT(KEFMTestStepPublishFeatures, "EFMTestStepPublishFeatures");
54 class CEFMTestStepPublishFeatures : public CTestStep
57 CEFMTestStepPublishFeatures();
58 virtual TVerdict doTestStepL(void);
61 /** Base class for configurable test steps
63 class CEFMConfigurableTestStepBase : public CTestStep
66 virtual TVerdict doTestStepPreambleL(void);
68 virtual void CheckCondition(TBool aMainCondition, TBool aOOMCondition, TPtrC aLoggingMessage, TInt aErrorCode);