baseintegtests/baseintegrationtest/testsuites/sd/inc/sdbase.h
branchanywhere
changeset 20 d63d727ee0a6
parent 19 f6d3d9676ee4
parent 16 6d8ad5bee44b
child 21 af091391d962
--- a/baseintegtests/baseintegrationtest/testsuites/sd/inc/sdbase.h	Tue Dec 08 08:11:42 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-// 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 SDBASE_H
-#define SDBASE_H
-
-#include <testexecuteserverbase.h>
-#include <testexecutestepbase.h>
-#include "d_mmcif.h"
-
-#define SYMBIAN_TEST_LE2(a,b) (((b) << 8) + (a))
-#define SYMBIAN_TEST_LE4(a,b,c,d) (((d) << 24) + ((c) << 16) + ((b) << 8) + (a))
-#define SYMBIAN_TEST_CEIL(a,b) ((a) % (b) ? 1 + ((a) - (a) % (b)) / (b)  : (a) / (b))
-#define SYMBIAN_TEST_IP(a,b) ((a) % (b) ? 1 + ((a) - (a) % (b)) / (b)  : (a) / (b))
-
-/*
-Base class for all test steps
-*/
-class CBaseTestSDBase : public CTestStep
-	{
-public:
-	virtual TVerdict doTestStepPreambleL() = 0;
-	virtual TVerdict doTestStepPostambleL();
-
-protected:
-// The following four functions can be called in the test preamble.
-	TBool InitDriveLetter();	// Initialise attribute iDrive
-	TBool InitDeviceDriver();   // Load D_MMCIF device driver for direct disk access
-	TBool InitFileServer();     // Initialise attribute iFs
-	TBool InitFileMan();        // Initialise attribute iFileMan
-
-	// Direct disk access. InitDeviceDriver() must be called first
-	TInt ReadSector(TInt aSector, TDes8& aSectorBuffer);
-	TInt WriteSector(TInt aSector, const TDesC8& aSectorBuffer);
-
-	TMmcCardInfo iCardInfo;
-	TInt iCardSizeInSectors;
-	
-	// Call InitFileServer() before using iFs
-	RFs iFs;
-	
-	// Call InitFileMan() before using iFileMan
-	CFileMan *iFileMan;
-
-	// The drive number assigned to the SD card. Call InitDriveLetter() first
-	TInt iDrive;
-
-private:
-	RMmcCntrlIf iDriver;
-	};
-
-#endif // SDBASE_H