First public contribution.
1 // Copyright (c) 1998-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.
14 // f32test\fsstress\t_sess.h
24 GLDEF_D const TInt KMaxParses=7;
25 GLDEF_D const TInt KHeapSize=0x2000;
26 GLREF_C void TurnAllocFailureOff();
27 GLREF_C void TurnAllocFailureOn();
28 GLREF_C void ReportCheckDiskFailure(TInt aRet);
30 GLREF_D TFileName gTestSessionPath;
31 GLREF_D TInt gAllocFailOff;
32 GLREF_D TInt gAllocFailOn;
35 #define SetAllocFailure(a) SetAllocFailure(a)
37 #define SetAllocFailure(a) IsRomAddress(NULL)
38 #define KAllocFailureOn 0
39 #define KAllocFailureOff 0
48 const TText* fullName;
59 const TText* fullName;
71 TSessionTest(RFs& aFs): iFs(aFs){};
72 void Initialise(RFs& aFs);
76 void testVolumeInfo();
78 void testInitialisation();
80 void CopyFileToTestDirectory();
81 void MakeAndDeleteFiles();
84 void CreateTestDirectory(const TDesC& aTestPath);
85 void DeleteTestDirectory();