First public contribution.
1 // Copyright (c) 2006-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\bench\t_fsrcreatefiles.cpp
21 #include "t_benchmain.h"
23 GLDEF_D RTest test(_L("File Server Benchmarks, create files"));
24 LOCAL_D TDriveList gDriveList;
28 @param aSelector Configuration in case of manual execution
30 LOCAL_C TInt TestAll(TAny* aSelector)
35 TTimeIntervalSeconds timeTaken;
39 gFormat = EFalse; // The card won't be formatted after this test execution
43 TestFileCreate(aSelector);
46 r = endTime.SecondsFrom(startTime, timeTaken);
48 test.Printf(_L("#~TS_Timing_%d,%d=%d\n"), gTestHarness, gTestCase, timeTaken.Int());
56 GLDEF_C void CallTestsL()
59 CSelectionBox* TheSelector = CSelectionBox::NewL(test.Console());
60 // Each test case of the suite has an identifyer for parsing purposes of the results
66 gSessionPath=_L("?:\\");
67 TCallBack createFiles(TestFileCreate,TheSelector);
68 TheSelector->AddDriveSelectorL(TheFs);
69 TheSelector->AddLineL(_L("Create all files"),createFiles);