baseintegtests/baseintegrationtest/testsuites/sd/inc/sdfieldcheck.h
author Slion
Tue, 08 Dec 2009 08:11:42 +0100
branchanywhere
changeset 19 f6d3d9676ee4
parent 0 a41df078684a
permissions -rw-r--r--
Trying to figure out how to implement my WINC like compatibility layer. Going the emulation way is probably not so smart. We should not use the kernel but rather hook native functions in the Exec calls.

// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#ifndef SDFIELDCHECK_H
#define SDFIELDCHECK_H

#include "sdbase.h"
#include "sdserver.h"

#define SYMBIAN_TEST_TESTNOPANIC(a) { if (!(a)) { ERR_PRINTF1(_L("Check failed")); SetTestStepResult(EFail); }}

#ifndef INFO_PRINTF9
#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))
#endif

/*
SD Test Step. Check the File System layout on the card conforms to the SD specification.
*/
class CBaseTestSDFieldCheck : public CBaseTestSDBase
	{
public:
	CBaseTestSDFieldCheck(CBaseTestSDServer& aOurServer);
	virtual TVerdict doTestStepPreambleL();
	virtual TVerdict doTestStepL();

private:
	/*
	IMPORTANT NOTE:
	FS1() and FS2() methods must be each invoked at least once prior to any other
	call. These two methods will initialise the private attributes of this
	class.
	*/
	void FS1();
	void FS2();
	void FS2Fat32();
	void FS3();
	void FS4();
	void FS5();
	void FSInfo();
	void FSBackupSectors();
	
	CBaseTestSDServer& iServer;
	};

_LIT(KTestStepFieldCheck, "FieldCheck");

#endif // SDFIELDCHECK_H