0
|
1 |
// Copyright (c) 2007-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 |
//
|
|
15 |
|
|
16 |
#ifndef SDSERVER_H
|
|
17 |
#define SDSERVER_H
|
|
18 |
|
|
19 |
#include <testexecuteserverbase.h>
|
|
20 |
|
|
21 |
/*
|
|
22 |
SD Test Server class. Contains data that can be shared between several calls
|
|
23 |
to a same Test Step under one Test Script.
|
|
24 |
*/
|
|
25 |
class TBaseTestSDSharedData
|
|
26 |
{
|
|
27 |
public:
|
|
28 |
TBaseTestSDSharedData();
|
|
29 |
|
|
30 |
// These are set by FS1()
|
|
31 |
TUint32 iPartitionBootSector;
|
|
32 |
TUint32 iTotalSector;
|
|
33 |
TUint8 iFsType;
|
|
34 |
|
|
35 |
// And these by FS2()
|
|
36 |
TUint32 iNumberOfClusters;
|
|
37 |
TUint32 iSectorsPerFat;
|
|
38 |
TUint32 iReservedSectorCount;
|
|
39 |
};
|
|
40 |
|
|
41 |
/*
|
|
42 |
SD Test Server
|
|
43 |
*/
|
|
44 |
class CBaseTestSDServer : public CTestServer
|
|
45 |
{
|
|
46 |
public:
|
|
47 |
static CBaseTestSDServer* NewL();
|
|
48 |
virtual CTestStep* CreateTestStep(const TDesC& aStepName);
|
|
49 |
|
|
50 |
TBaseTestSDSharedData iSharedData;
|
|
51 |
};
|
|
52 |
|
|
53 |
#endif // SDSERVER_H
|