0
|
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 |
// e32test\nkern\d_implicit.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#if !defined(__D_IMPLICIT_H__)
|
|
19 |
#define __D_IMPLICIT_H__
|
|
20 |
#include <e32cmn.h>
|
|
21 |
#ifndef __KERNEL_MODE__
|
|
22 |
#include <e32std.h>
|
|
23 |
#endif
|
|
24 |
|
|
25 |
_LIT(KLddName,"ImpSysTest");
|
|
26 |
|
|
27 |
class TCapsImpSysTestV01
|
|
28 |
{
|
|
29 |
public:
|
|
30 |
TVersion iVersion;
|
|
31 |
};
|
|
32 |
|
|
33 |
struct SStats
|
|
34 |
{
|
|
35 |
TInt iFailCount;
|
|
36 |
TInt iCount1;
|
|
37 |
TInt iCount2;
|
|
38 |
TInt iCount3;
|
|
39 |
};
|
|
40 |
|
|
41 |
class RImpSysTest : public RBusLogicalChannel
|
|
42 |
{
|
|
43 |
public:
|
|
44 |
enum TControl
|
|
45 |
{
|
|
46 |
EControlStart,
|
|
47 |
EControlStop
|
|
48 |
};
|
|
49 |
|
|
50 |
enum TTest
|
|
51 |
{
|
|
52 |
ETestPriority,
|
|
53 |
ETestRoundRobin,
|
|
54 |
ETestDummy
|
|
55 |
};
|
|
56 |
public:
|
|
57 |
#ifndef __KERNEL_MODE__
|
|
58 |
inline TInt Open()
|
|
59 |
{ return DoCreate(KLddName(),TVersion(0,1,1),KNullUnit,NULL,NULL); }
|
|
60 |
inline TInt Start(TInt aTestNum)
|
|
61 |
{ return DoControl(EControlStart,(TAny*)aTestNum); }
|
|
62 |
inline TInt Stop(SStats& aStats)
|
|
63 |
{ return DoControl(EControlStop, &aStats); }
|
|
64 |
#endif
|
|
65 |
};
|
|
66 |
|
|
67 |
#endif
|