Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
22 #include "trasterizer.h"
23 #include "trasterizerinvalid.h"
24 #include "trasterizerserver.h"
27 #include <graphics/fbsdefs.h>
30 _LIT(KServerName,"trastserver");
33 CTRasterizerServer* CTRasterizerServer::NewL()
35 CTRasterizerServer* server = new (ELeave) CTRasterizerServer();
36 CleanupStack::PushL(server);
37 // CServer base class call
38 server->StartL(KServerName);
39 CleanupStack::Pop(server);
45 CActiveScheduler* sched=NULL;
46 sched=new(ELeave) CActiveScheduler;
47 CActiveScheduler::Install(sched);
48 CTRasterizerServer* server = NULL;
50 // Create the CTestServer derived server
51 server = CTRasterizerServer::NewL();
54 // Sync with the client and enter the active scheduler
55 RProcess::Rendezvous(KErrNone);
63 GLDEF_C TInt E32Main()
66 CTrapCleanup* cleanup = CTrapCleanup::New();
74 RDebug::Print(_L("TRasterizerServer::MainL - Error: %d"), err);
75 User::Panic(KServerName,err);
83 CTestStep* CTRasterizerServer::CreateTestStep(const TDesC& aStepName)
85 CTestStep* testStep = NULL;
87 if (aStepName == KTRasterizerStep)
89 testStep = new CTRasterizer();
91 else if (aStepName == KTRasterizerInvalidStep)
93 testStep = new CTRasterizerInvalid();