os/kernelhwsrv/kerneltest/f32test/concur/t_server.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1997-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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // f32test\server\t_server.h
    15 //
    16 //
    17 
    18 
    19 #if !defined(__T_STD_H__)
    20 #define __T_STD_H__
    21 
    22 enum TTestType{ENotifierNone,ENotifierHang,ENotifierRepeat,ENotifierWithRepeat};
    23 
    24 GLREF_C void CallTestsL();
    25 GLREF_C void CreateTestDirectory(const TDesC& aTestPath);
    26 GLREF_C void DeleteTestDirectory();
    27 GLREF_C TInt CurrentDrive();
    28 GLREF_C void MakeFile(const TDesC& aFileName);
    29 GLREF_C void MakeFile(const TDesC& aFileName,const TDesC8& aContents);
    30 GLREF_C void MakeFile(const TDesC& aFileName,const TUidType& aUidType,const TDesC8& aContents);
    31 GLREF_C void MakeFile(const TDesC& aFileName,TInt anAttributes);
    32 GLREF_C void MakeDir(const TDesC& aDirName);
    33 GLREF_C void TurnAllocFailureOff();
    34 GLREF_C void TurnAllocFailureOn();
    35 GLREF_C TInt CheckFileExists(const TDesC& aName,TInt aResult,TBool aCompRes=ETrue);
    36 GLREF_C void CheckFileContents(const TDesC& aName,const TDesC8& aContents);
    37 GLREF_C void SetSessionPath(const TDesC& aPathName);
    38 GLREF_C void ReportCheckDiskFailure(TInt aRet);
    39 GLREF_C void CheckDisk();
    40 GLREF_C void CheckEntry(const TDesC& aName,TUint anAttributes,const TTime& aModified);
    41 GLREF_C void Format(TInt aDrive);
    42 GLREF_C void CreateLongName(TDes& aFileName,TInt64& aSeed,TInt aLength=-1);
    43 GLREF_C void CreateShortName(TDes& aFileName,TInt64& aSeed);
    44 GLREF_C TBool IsTestTypeNotifyHang();
    45 GLREF_C TBool IsTestTypeNotifyRepeat();
    46 GLREF_C TBool IsTestTypeNotifyWithRepeat();
    47 GLREF_C TBool IsTestTypeStandard();
    48 GLREF_C TTestType TestType();
    49 GLREF_C TBool IsFileSystemFAT(RFs &aFsSession,TInt aDrive);
    50 
    51 
    52 GLREF_D RTest test;
    53 GLREF_D RFs TheFs;
    54 GLREF_D TFileName gSessionPath;
    55 GLREF_D TInt gAllocFailOff;
    56 GLREF_D TInt gAllocFailOn;
    57 GLREF_D TInt64 gSeed;
    58 GLREF_D TChar gDriveToTest;
    59 
    60 
    61 #if defined(_DEBUG)
    62 #define SetAllocFailure(a) SetAllocFailure(a)
    63 #else
    64 #define SetAllocFailure(a) IsRomAddress(NULL)
    65 #endif
    66 
    67 #endif