os/kernelhwsrv/kerneltest/f32test/server/t_server.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kerneltest/f32test/server/t_server.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,64 @@
     1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// f32test\server\t_server.h
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#if !defined(__T_STD_H__)
    1.22 +#define __T_STD_H__
    1.23 +
    1.24 +GLREF_C void CallTestsL();
    1.25 +GLREF_C void CreateTestDirectory(const TDesC& aTestPath);
    1.26 +GLREF_C void DeleteTestDirectory();
    1.27 +GLREF_C TInt CurrentDrive();
    1.28 +GLREF_C void MakeFile(const TDesC& aFileName);
    1.29 +GLREF_C void MakeFile(const TDesC& aFileName,const TDesC8& aContents);
    1.30 +GLREF_C void MakeFile(const TDesC& aFileName,const TUidType& aUidType,const TDesC8& aContents);
    1.31 +GLREF_C void MakeFile(const TDesC& aFileName,TInt anAttributes);
    1.32 +GLREF_C void MakeDir(const TDesC& aDirName);
    1.33 +GLREF_C void TurnAllocFailureOff();
    1.34 +GLREF_C void TurnAllocFailureOn();
    1.35 +GLREF_C TInt CheckFileExists(const TDesC& aName,TInt aResult,TBool aCompRes=ETrue);
    1.36 +GLREF_C void CheckFileContents(const TDesC& aName,const TDesC8& aContents);
    1.37 +GLREF_C void SetSessionPath(const TDesC& aPathName);
    1.38 +GLREF_C void ReportCheckDiskFailure(TInt aRet);
    1.39 +GLREF_C void CheckDisk();
    1.40 +GLREF_C void CheckEntry(const TDesC& aName,TUint anAttributes,const TTime& aModified);
    1.41 +GLREF_C void Format(TInt aDrive);
    1.42 +GLREF_C void CreateLongName(TDes& aFileName,TInt64& aSeed,TInt aLength=-1);
    1.43 +GLREF_C void CreateShortName(TDes& aFileName,TInt64& aSeed);
    1.44 +GLREF_C TBool IsFileSystemFAT(RFs &aFsSession,TInt aDrive);
    1.45 +GLREF_C TBool IsFileSystemFAT32(RFs &aFsSession,TInt aDrive);
    1.46 +GLREF_C TInt DismountFileSystem(RFs& aFs, const TDesC& aFileSystemName,TInt aDrive);
    1.47 +GLREF_C TInt MountFileSystem(RFs& aFs, const TDesC& aFileSystemName,TInt aDrive, TBool aIsSync=EFalse);
    1.48 +
    1.49 +
    1.50 +GLREF_D RTest test;
    1.51 +GLREF_D RFs TheFs;
    1.52 +GLREF_D TFileName gSessionPath;
    1.53 +GLREF_D TFileName gExeFileName;
    1.54 +GLREF_D TInt gAllocFailOff;
    1.55 +GLREF_D TInt gAllocFailOn;
    1.56 +GLREF_D TInt64 gSeed;
    1.57 +GLREF_D TChar gDriveToTest;
    1.58 +GLREF_D TFileCacheFlags gDriveCacheFlags;
    1.59 +
    1.60 +
    1.61 +#if defined(_DEBUG)
    1.62 +#define SetAllocFailure(a) SetAllocFailure(a)
    1.63 +#else
    1.64 +#define SetAllocFailure(a) IsRomAddress(NULL)
    1.65 +#endif
    1.66 +
    1.67 +#endif