graphicshwdrivers/surfacemgr/test/inc/tsurfacemanagermultiprocess.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code
       
    20 */
       
    21 
       
    22 #ifndef __TSURFACEMANAGERMULTIPROCESS_H__
       
    23 #define __TSURFACEMANAGERMULTIPROCESS_H__
       
    24 
       
    25 #include "tsmgmultprocessshared.h"
       
    26 
       
    27 class CTSurfaceManagerMultiProcess : public CTGraphicsBase
       
    28 	{
       
    29 public:
       
    30 	CTSurfaceManagerMultiProcess(CTestStep* aStep);
       
    31 	~CTSurfaceManagerMultiProcess();
       
    32 protected:
       
    33 	//from 	CTGraphicsStep
       
    34 	virtual void RunTestCaseL(TInt aCurTestCase);
       
    35 private:
       
    36 	void TestMapSurfaceExistinChunkL();
       
    37 	void TestSynchronizeCacheMultiProcessL();
       
    38 	void TestCloseChannelsMultiProcessL();
       
    39 	void TestCloseChannelsMultiProcess2L();
       
    40 	void TestSurfaceInfoUnopenedSurfaceL();
       
    41 	void TestCloseChannelsMultiProcess1L();
       
    42 	void TestSurfaceInfoUsingSurfaceIdL();
       
    43 	void TestOpeningSurfaceUsingSurfaceIdL();
       
    44 	void TestOpenSurfaceInvalidParamsL();
       
    45 	void TestClosingUnopenedSurfaceL();
       
    46 	void CreateOpenCloseThreeProcessL();
       
    47 	void TestSurfaceAccessWhenCreatingProcessDiesL();
       
    48 	void TestClosingSurfaceWhenCreatingProcessDiesL();
       
    49 	void TestCloseSurfaceInThirdProcessL();
       
    50 	void TestNoAccessWhenSurfaceClosedTwoProcessL();
       
    51 	void TestOpeningOnProcessAfterClosingOnOtherL();
       
    52 	void TestAccessAfterClosingL();
       
    53 	void TestClosingAfterClosingOnOtherProcessL();
       
    54 	void TestErrSufaceAccessNotOpenL();
       
    55 	void TestReadFromBufferInSecondProcessL();
       
    56 	void TestGetSurfaceHintMultiProcessL();
       
    57 	void TestSetSurfaceHintMultiProcessL();
       
    58 	void TestAddSurfaceHintMultiProcessL();
       
    59 	void TestOutofMemoryCasesL();
       
    60 private:
       
    61 	TLeaveInfo iInfo2;
       
    62 	};
       
    63 
       
    64 	
       
    65 class CTSurfaceManagerMultiProcessStep : public CTGraphicsStep
       
    66 	{
       
    67 public:
       
    68 	CTSurfaceManagerMultiProcessStep();
       
    69 protected:	
       
    70 	//from CTGraphicsStep
       
    71 	virtual CTGraphicsBase* CreateTestL();
       
    72 	virtual void TestSetupL();
       
    73 	virtual void TestClose();
       
    74 	};
       
    75 
       
    76 _LIT(KTSurfaceManagerMultiProcessStep,"TSurfaceManagerMultiProcess");
       
    77 
       
    78 
       
    79 #endif