56
|
1 |
// Copyright (c) 2007-2010 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 "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 __TESTDATAWRITERNOTIFIER_H_INCLUDED__
|
|
17 |
#define __TESTDATAWRITERNOTIFIER_H_INCLUDED__
|
|
18 |
|
|
19 |
const int SYMBIAN_TRACE = 0x91;
|
|
20 |
const int PRINTF_TRACE = 0x83;
|
|
21 |
const TInt KTcTdwBufSize = 4096;
|
|
22 |
|
|
23 |
#ifdef _DEBUG
|
|
24 |
#define TDW_PRINTF(fmt, args...) Kern::Printf(fmt, ## args)
|
|
25 |
#else
|
|
26 |
#define TDW_PRINTF(fmt, args...)
|
|
27 |
#endif
|
|
28 |
|
|
29 |
|
|
30 |
struct TNotifyData
|
|
31 |
{
|
|
32 |
TNotifyData(TUint32 aAddr, TInt aLen)
|
|
33 |
: iAddr(aAddr)
|
|
34 |
, iLen(aLen)
|
|
35 |
{
|
|
36 |
}
|
|
37 |
|
|
38 |
TInt iAddr;
|
|
39 |
TInt iLen;
|
|
40 |
|
|
41 |
private:
|
|
42 |
TNotifyData()
|
|
43 |
: iAddr(0)
|
|
44 |
, iLen(0)
|
|
45 |
{
|
|
46 |
}
|
|
47 |
|
|
48 |
};
|
|
49 |
|
|
50 |
class MTestWriterNotifier
|
|
51 |
{
|
|
52 |
public:
|
|
53 |
virtual void WriteStart() = 0;
|
|
54 |
virtual void WriteComplete(TNotifyData aNotifyData) = 0;
|
|
55 |
};
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
#endif /* __TESTDATAWRITERNOTIFIER_H_INCLUDED__ */
|