1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/printingservices/printerdriversupport/tps/T_PDR.H Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,83 @@
1.4 +// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +/**
1.20 + @file
1.21 + @test
1.22 + @internalComponent Internal Symbian test code
1.23 +*/
1.24 +
1.25 +
1.26 +#if !defined(__T_PDR_H__)
1.27 +#define __T_PDR_H__
1.28 +
1.29 +#include <e32test.h>
1.30 +#include <pdrport.h>
1.31 +#include <c32comm.h>
1.32 +#include <metafile.h>
1.33 +#include <banddev.h>
1.34 +
1.35 +#include <test/testexecutestepbase.h>
1.36 +#include "TGraphicsHarness.h"
1.37 +#include "prnsetupfacade.h"
1.38 +
1.39 +class CPdrTestPrint : public CActive
1.40 + {
1.41 +public:
1.42 + CPdrTestPrint(): CActive(EPriorityLow) {}
1.43 + TRequestStatus& Status();
1.44 + void DoCancel() {}
1.45 + TRequestStatus& Queue();
1.46 + void RunL();
1.47 + };
1.48 +
1.49 +
1.50 +class CTPdr : public CTGraphicsBase
1.51 + {
1.52 +public:
1.53 + CTPdr(CTestStep* aStep);
1.54 + ~CTPdr();
1.55 +protected:
1.56 +//from CTGraphicsStep
1.57 + virtual void RunTestCaseL(TInt aCurTestCase);
1.58 + virtual void ConstructL();
1.59 +private:
1.60 + void testPrint(CPrinterDevice* aDevice);
1.61 + void testPdrStore();
1.62 + void bandTest(TBandingDirection aBandingDirection, TPtrC aName);
1.63 + void testPdrBandRect();
1.64 +private:
1.65 + CPdrTestPrint* iStopper;
1.66 + TInt iModelIndex;
1.67 + TInt iNumModels;
1.68 + };
1.69 +
1.70 +
1.71 +
1.72 +class CTPdrStep : public CTGraphicsStep
1.73 + {
1.74 +public:
1.75 + CTPdrStep();
1.76 +protected:
1.77 + //from CTGraphicsStep
1.78 + virtual CTGraphicsBase* CreateTestL();
1.79 + virtual void TestSetupL();
1.80 + virtual void TestClose();
1.81 + };
1.82 +
1.83 +
1.84 +_LIT(KTPdrStep,"TPdr");
1.85 +
1.86 +#endif