dbgsrv/coredumpserver/test/automatictests/tcds_kernel/inc/cds/t_coredumpserver.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     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  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef __COREDUMP_SERVER_H__
       
    22 #define __COREDUMP_SERVER_H__
       
    23 
       
    24 #include <datawrapper.h>
       
    25 #include <e32base.h>
       
    26 #include <rm_debug_api.h>
       
    27 #include <coredumpinterface.h>
       
    28 #include <coredumpserverapi.h>
       
    29 
       
    30 #include "t_common_defs.h"
       
    31 
       
    32 /**
       
    33  * This class is responsible for the core dump server tests relating to system crash,
       
    34  * and specifically, the flash data source
       
    35  */
       
    36 class CCoreDumpServerWrapper : public CDataWrapper
       
    37 	{
       
    38 	public:
       
    39 
       
    40 		~CCoreDumpServerWrapper();
       
    41 
       
    42 		static CCoreDumpServerWrapper* NewL();
       
    43 
       
    44 		virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    45 		virtual TAny* GetObject() { }
       
    46 		virtual void SetObjectL(TAny* aObject);
       
    47 		static void CleanupCrashList(TAny *aArray);
       
    48 
       
    49 	protected:
       
    50 		void ConstructL();
       
    51 
       
    52 	private:
       
    53 
       
    54 		CCoreDumpServerWrapper();
       
    55 
       
    56 		void PrepareTestL();
       
    57 		void TestDataSourceReturnsSystemCrashDataL();
       
    58 		void TestDataSourceReturnsTraceDataL();
       
    59 		void TestUntrustedServerAccessL();
       
    60 
       
    61 	private:
       
    62 
       
    63 		RCoreDumpSession iCoreDumpSession;
       
    64 		RSecuritySvrSession iSecSess;
       
    65 
       
    66 	};
       
    67 #endif __COREDUMP_SERVER_H__
       
    68 
       
    69 //eof