graphicsresourceservices/graphicsresourceimplementation/test/inc/tsggenericmanual.h
changeset 103 2717213c588a
parent 36 01a6848ebfd7
equal deleted inserted replaced
98:bf7481649c98 103:2717213c588a
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    14 // Graphics Resource generic non-automated tests
    14 // Graphics Resource generic non-automated tests
    15 
    15 
    16 #ifndef TSGGENERICMANUAL_H
    16 #ifndef TSGGENERICMANUAL_H
    17 #define TSGGENERICMANUAL_H
    17 #define TSGGENERICMANUAL_H
    18 
    18 
       
    19 #include <e32msgqueue.h>
    19 #include "tgraphicsresourceteststepbase.h"
    20 #include "tgraphicsresourceteststepbase.h"
    20 
    21 
    21 /**
    22 /**
    22 Class containing all the tests for SgResource that must be run manually
    23 Class containing all the tests for SgResource that must be run manually
    23 and not part of the automated testing system.
    24 and not part of the automated testing system.
    24  */
    25  */
    25 class CTSgGenericManual : public CTSgTestStepBase
    26 class CTSgGenericManual : public CTSgTestStepBase
    26 {
    27 	{
    27 public:
    28 public:
    28 	CTSgGenericManual(TBool aConformanceTests);
    29 	CTSgGenericManual(TBool aConformanceTests);
    29 	~CTSgGenericManual();
    30 	~CTSgGenericManual();
    30 	
    31 	
    31 	// tests
    32 	// tests
    32 	void TestStressResourceLeakL();
    33 	void TestStressResourceLeakL();
    33 
    34 
    34 private:
    35 private:
    35 	// utility methods
    36 	// utility methods
    36 	TInt CreateImages(const TSgImageInfo& aInfo, RArray<RSgImage>& aTestImages);
    37 	TInt CreateImages(const TSgImageInfo& aInfo, RArray<RSgImage>& aTestImages, TBool aDuplicate);
    37     void DestroyImages(RArray<RSgImage>& aTestImages);
    38     void DestroyImages(RArray<RSgImage>& aTestImages);
    38     
    39     
    39 	// From CTSgTestStepBase
    40 	// From CTSgTestStepBase
    40 	virtual TVerdict doTestStepL();
    41 	virtual TVerdict doTestStepL();
    41 };
    42 
       
    43 private:
       
    44 	RProcess iSecondProcess;
       
    45 	RMsgQueue<TSgDrawableId> iMsgQ;
       
    46 	};
    42 
    47 
    43 _LIT(KTSgGenericManual,"TSgGenericManual");
    48 _LIT(KTSgGenericManual,"TSgGenericManual");
    44 
    49 
    45 #endif /*TSGGENERICMANUAL_H*/
    50 #endif /*TSGGENERICMANUAL_H*/