Update contrib.
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
21 #ifndef __BITSETSTEP_H__
22 #define __BITSETSTEP_H__
24 #include <test/testexecutestepbase.h>
27 namespace ContentAccess
32 _LIT(KBasicBitsetStep,"BasicBitsetStep");
33 _LIT(KBitsetListStep,"BitsetListStep");
34 _LIT(KBitsetEqualityStep,"BitsetEqualityStep");
35 _LIT(KBitsetCopyStep,"BitsetCopyStep");
36 _LIT(KBitsetSerialiseStep,"BitsetSerialiseStep");
37 _LIT(KBitsetPanicStep,"BitsetPanicStep");
39 // not a step, but baseclass for all bitset tests
40 class CBitsetBaseStep : public CCAFStep
43 CBitsetBaseStep(const TDesC& aStepName);
44 virtual TVerdict doTestStepPreambleL();
45 virtual TVerdict doTestStepPostambleL();
48 // Create bitset based on data from the script.
49 // aHeader specifies how the key is formed. eg if aHeader is "left-",
50 // then the key "left-bitcount" specifies how many bits there are,
51 // and "left-bit0" specifies bit0, etc
52 ContentAccess::CBitset* GetBitsetLC(const TDesC& aHeader);
55 class CBasicBitsetStep : public CBitsetBaseStep
59 virtual TVerdict doTestStepL();
62 class CBitsetListStep : public CBitsetBaseStep
66 virtual TVerdict doTestStepL();
69 class CBitsetEqualityStep : public CBitsetBaseStep
72 CBitsetEqualityStep();
73 virtual TVerdict doTestStepL();
76 class CBitsetCopyStep : public CBitsetBaseStep
80 virtual TVerdict doTestStepL();
83 // Test the internalize and externalize methods
84 class CBitsetSerialiseStep : public CBitsetBaseStep
87 CBitsetSerialiseStep();
88 virtual TVerdict doTestStepL();
91 // Test the panic when invalid bits are set, cleared or checked
92 class CBitsetPanicStep : public CBitsetBaseStep
96 virtual TVerdict doTestStepL();