1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/f32test/fsstress/t_stress.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,57 @@
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\fsstress\t_stress.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 +
1.45 +GLREF_D RTest test;
1.46 +GLREF_D RFs TheFs;
1.47 +GLREF_D TFileName gSessionPath;
1.48 +GLREF_D TInt gAllocFailOff;
1.49 +GLREF_D TInt gAllocFailOn;
1.50 +GLREF_D TInt64 gSeed;
1.51 +
1.52 +#if defined(_DEBUG)
1.53 +#define SetAllocFailure(a) SetAllocFailure(a)
1.54 +#else
1.55 +#define SetAllocFailure(a) IsRomAddress(NULL)
1.56 +#define KAllocFailureOn 0
1.57 +#define KAllocFailureOff 0
1.58 +#endif
1.59 +
1.60 +#endif