sysstatemgmt/systemstatemgr/test/tipcfuzz/inc/tipcfuzz_step.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     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  @test
       
    19  @internalComponent - Internal Symbian test code 
       
    20 */
       
    21  
       
    22 
       
    23 #ifndef __TIPCFUZZ_STEP_H__
       
    24 #define __TIPCFUZZ_STEP_H__
       
    25 
       
    26 #include <test/testexecutestepbase.h>
       
    27 #include "tipcfuzzer.h"
       
    28 
       
    29 _LIT(KTIpcFuzzStep,"IpcFuzzTestStep");
       
    30 
       
    31 class TIpcFuzzTestParams
       
    32 	{
       
    33 public:
       
    34 	const TText* iServerName; // Server name
       
    35 	const TInt iOpcodeCount; // Maintaining operation count
       
    36 	const TVersion iServerVersion; //Server version
       
    37 	const TInt iMsgSlotCount; // Message slot count
       
    38 	};
       
    39 
       
    40 class CIpcFuzzTest : public CTestStep
       
    41 	{
       
    42 public:
       
    43 	CIpcFuzzTest(); // Constructor
       
    44 	~CIpcFuzzTest(); // Destructor
       
    45 
       
    46 	//from CTestStep
       
    47 	TVerdict doTestStepPreambleL();
       
    48 	TVerdict doTestStepL();
       
    49 	TVerdict doTestStepPostambleL();
       
    50 private:
       
    51 	void doTestIpcFuzzL();
       
    52 	
       
    53 private:
       
    54 	const TIpcFuzzTestParams* iTestParameters;
       
    55 	};
       
    56 
       
    57 // Test resource class
       
    58 class RIpcFuzzTest : public RSessionBase
       
    59 	{
       
    60 public:
       
    61 	RIpcFuzzTest(); // Constructor
       
    62 	~RIpcFuzzTest(); // Destructor
       
    63 	
       
    64 	// Fuzzy Logic
       
    65 	void IpcFuzzLogicL(CIpcFuzzer* aIpcFuzzer, const TIpcFuzzTestParams& aTestParameters);
       
    66 	void IpcFuzzerL(TPtr8* aPtr, const TIpcFuzzTestParams& aTestParameters, TBuf<15> aServerName);
       
    67 	void IpcFuzzerL(TPtr* aPtr, const TIpcFuzzTestParams& aTestParameters, TBuf<15> aServerName);
       
    68 	void IpcFuzzerL(TUint aData, const TIpcFuzzTestParams& aTestParameters, TBuf<15> aServerName);
       
    69 	void SendMessageToServerL(TInt& aOpcode,const TInt& aOpcodeCnt,TIpcArgs& aIpcArgs, TBuf<15> aServerName);
       
    70 	};
       
    71 
       
    72 #endif //__TIPCFUZZ_STEP_H__