baseintegtests/baseintegrationtest/testsuites/sd/inc/sdfieldcheck.h
branchanywhere
changeset 20 d63d727ee0a6
parent 19 f6d3d9676ee4
parent 16 6d8ad5bee44b
child 21 af091391d962
equal deleted inserted replaced
19:f6d3d9676ee4 20:d63d727ee0a6
     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 the License "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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef SDFIELDCHECK_H
       
    17 #define SDFIELDCHECK_H
       
    18 
       
    19 #include "sdbase.h"
       
    20 #include "sdserver.h"
       
    21 
       
    22 #define SYMBIAN_TEST_TESTNOPANIC(a) { if (!(a)) { ERR_PRINTF1(_L("Check failed")); SetTestStepResult(EFail); }}
       
    23 
       
    24 #ifndef INFO_PRINTF9
       
    25 #define INFO_PRINTF9(p1, p2, p3, p4, p5, p6, p7, p8, p9)        Logger().LogExtra(((TText8*)__FILE__), __LINE__, ESevrInfo, (p1), (p2), (p3), (p4), (p5), (p6), (p7), (p8), (p9))
       
    26 #endif
       
    27 
       
    28 /*
       
    29 SD Test Step. Check the File System layout on the card conforms to the SD specification.
       
    30 */
       
    31 class CBaseTestSDFieldCheck : public CBaseTestSDBase
       
    32 	{
       
    33 public:
       
    34 	CBaseTestSDFieldCheck(CBaseTestSDServer& aOurServer);
       
    35 	virtual TVerdict doTestStepPreambleL();
       
    36 	virtual TVerdict doTestStepL();
       
    37 
       
    38 private:
       
    39 	/*
       
    40 	IMPORTANT NOTE:
       
    41 	FS1() and FS2() methods must be each invoked at least once prior to any other
       
    42 	call. These two methods will initialise the private attributes of this
       
    43 	class.
       
    44 	*/
       
    45 	void FS1();
       
    46 	void FS2();
       
    47 	void FS2Fat32();
       
    48 	void FS3();
       
    49 	void FS4();
       
    50 	void FS5();
       
    51 	void FSInfo();
       
    52 	void FSBackupSectors();
       
    53 	
       
    54 	CBaseTestSDServer& iServer;
       
    55 	};
       
    56 
       
    57 _LIT(KTestStepFieldCheck, "FieldCheck");
       
    58 
       
    59 #endif // SDFIELDCHECK_H