0
|
1 |
// Copyright (c) 2008-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 "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 |
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalTechnology
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef __COREDUMP_MONITOR_H__
|
|
24 |
#define __COREDUMP_MONITOR_H__
|
|
25 |
|
|
26 |
#include <datawrapper.h>
|
|
27 |
#include <e32base.h>
|
|
28 |
#include <rm_debug_api.h>
|
|
29 |
#include <coredumpinterface.h>
|
|
30 |
#include <coredumpserverapi.h>
|
|
31 |
#include <crashdatasave.h>
|
|
32 |
#include <bafindf.h>
|
|
33 |
#include <scmconfigitem.h>
|
|
34 |
|
|
35 |
#include "t_common_defs.h"
|
|
36 |
|
|
37 |
/**
|
|
38 |
* This class is responsible for the core dump monitor tests. This is an extension
|
|
39 |
* of the SCM and the only way we can access and test it
|
|
40 |
*/
|
|
41 |
class CCoreDumpMonitorWrapper : public CDataWrapper
|
|
42 |
{
|
|
43 |
public:
|
|
44 |
|
|
45 |
~CCoreDumpMonitorWrapper();
|
|
46 |
|
|
47 |
static CCoreDumpMonitorWrapper* NewL();
|
|
48 |
|
|
49 |
virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
|
|
50 |
virtual TAny* GetObject() { }
|
|
51 |
virtual void SetObjectL(TAny* aObject);
|
|
52 |
|
|
53 |
protected:
|
|
54 |
void ConstructL();
|
|
55 |
|
|
56 |
private:
|
|
57 |
|
|
58 |
CCoreDumpMonitorWrapper();
|
|
59 |
|
|
60 |
void PrepareTestL();
|
|
61 |
void TestUntrustedAccessToCDSConfigL();
|
|
62 |
void TestTrustedAccessToCDSConfigL();
|
|
63 |
void TestTraceBufferAccessL();
|
|
64 |
void TestReadDefaultConfigValuesL();
|
|
65 |
void DoConfigureL(const TUint32& aIndex, const TUint32& aUID,
|
|
66 |
const COptionConfig::TParameterSource& aSource,
|
|
67 |
const COptionConfig::TOptionType& aType, const TDesC& aPrompt,
|
|
68 |
const TUint32& aNumOptions, const TDesC& aOptions,
|
|
69 |
const TInt32& aVal, const TDesC& aStrValue, const TUint aInstance);
|
|
70 |
|
|
71 |
|
|
72 |
void TestValidateNewestCrashL();
|
|
73 |
|
|
74 |
private:
|
|
75 |
|
|
76 |
RCoreDumpSession iCoreDumpSession;
|
|
77 |
RCrashInfoPointerList iCrashList;
|
|
78 |
RFs iFsSession;
|
|
79 |
};
|
|
80 |
#endif __COREDUMP_MONITOR_H__
|
|
81 |
|
|
82 |
//eof
|
|
83 |
|