dbgsrv/coredumpserver/plugins/formatters/symbianelf/inc/tsymbianelfformatter.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     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 "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  @released
       
    22 */
       
    23 
       
    24 #ifndef T_SYMBIAN_ELF_FORMATTER_H__
       
    25 #define T_SYMBIAN_ELF_FORMATTER_H__
       
    26 #include <e32std.h>
       
    27 #include <e32test.h>
       
    28 #include <crashdata.h>
       
    29 #include "testcrashdatasource.h"
       
    30 #include "testcrashdatasave.h"
       
    31 #include "symbianelfstringinfo.h"
       
    32 
       
    33 class CSymbianElfFormatter;
       
    34 
       
    35 const TUid KSymbianElfFormatterUid = { 0x10282fe3 };
       
    36 const TUint MaxCrashDataSize = 4096;
       
    37 const TUint MaxPluginDescription = 63;
       
    38 
       
    39 _LIT(KTestTitle, "SYMBIAN_ELF_FORMATTER_TEST");
       
    40 _LIT(KTestName, "test suite: ");
       
    41 
       
    42 class CSymbianElfFormatterTest : public CBase
       
    43 {
       
    44 public:
       
    45        enum TSuite {
       
    46                     ENone,
       
    47                     EConfigData,
       
    48                     EFindImplementation,
       
    49                     EConfigParams,
       
    50                     EGetDescription,
       
    51                     EWriteSymbianInfo,
       
    52                     EWriteCodeSegments,
       
    53                     EWriteDataSegments,
       
    54                     EWriteThreadsInfo,
       
    55                     EWriteProcessInfo,
       
    56                     EWriteExecutableInfo,
       
    57                     EWriteRegistersInfo,
       
    58                     ECrash
       
    59                     };
       
    60 
       
    61 	static CSymbianElfFormatterTest* NewL(RTest &aTest);
       
    62 	static CSymbianElfFormatterTest* NewLC(RTest &aTest);
       
    63     void ConstructL();
       
    64 	CSymbianElfFormatterTest(RTest &aTest);
       
    65 	~CSymbianElfFormatterTest();
       
    66     void TestSuiteL(TSuite aSuite);
       
    67 
       
    68 private:
       
    69     static void CleanupEComArray(TAny* aArray);
       
    70 	RTest &itest;
       
    71     CTestCrashDataSource	* server;
       
    72     CSymbianElfFormatter	* formatter;
       
    73 	CStringInfoTable		* iStrInfoTbl;
       
    74     CTestDataSave			* writer;
       
    75 	TCrashInfo				iCrashInfo;
       
    76 };
       
    77 
       
    78 #endif // T_SYMBIAN_ELF_FORMATTER_H__