Update contrib.
1 // Copyright (c) 1996-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 //! @file f32test\concur\t_cfssoak.h
18 #ifndef __T_CFSSOAK_H__
19 #define __T_CFSSOAK_H__
27 /// Collect and print statistics.
30 TSoakStats() : iTotal(0), iFail(0), iThis(0), iThisF(0) {}
32 void Print(const TDesC& aTitle);
44 /// Tests for reading and scanning drives and directories.
48 TSoakReadOnly(TInt aDrive);
50 TInt ReadFile(const TDesC& aName, TInt aSize);
51 TInt ScanDirs(TInt aDrive, TInt aReadInterval);
52 TInt ScanDirFunc(CDirScan* aScanner, TInt aDrive, TInt aReadInterval);
53 TInt ScanDrives(TBool aScanDirs, TInt aReadInterval);
54 void ExcludeDrive(TInt aDrive);
57 TSoakStats iDrives; ///< Statistics of number of drives scanned.
58 TSoakStats iDirs; ///< Statistics of number of directories scanned.
59 TSoakStats iFiles; ///< Statistics of number of files found.
60 TSoakStats iReads; ///< statistics of number of files read.
69 /// Tests filling and cleaning a drive.
73 TInt SetDrive(TInt aDrive);
76 TInt Fill(TFileName& aName, TInt aNfiles=0);
88 const TInt KSoakNumBuf = 10; ///< Number of buffers to be written.
89 const TInt KSoakBufLen = 0x100; ///< Length of each buffer.
92 /// Tests on a 'remote' (special delaying) filesystem.
95 TSoakRemote(TInt aDrive);
96 void Remount(TBool aSync);
98 TInt TestSubSession();
112 TBuf8<KSoakBufLen> iBuff[KSoakNumBuf];
113 TRequestStatus iStat[KSoakNumBuf];