First public contribution.
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
18 #include <test/testexecuteserverbase.h>
19 #include "t_shapeteststep.h"
22 class CShapeTestServer : public CTestServer
25 static CShapeTestServer* NewL();
26 virtual CTestStep* CreateTestStep(const TDesC& aStepName);
30 _LIT(KServerName,"t_shapetestserver");
32 CShapeTestServer *CShapeTestServer::NewL()
34 CShapeTestServer * server = new (ELeave) CShapeTestServer();
35 CleanupStack::PushL(server);
36 server->StartL(KServerName);
37 CleanupStack::Pop(server);
41 CTestStep *CShapeTestServer::CreateTestStep(const TDesC& aStepName)
43 return CShapeTestStep::CreateShapeTestStep(aStepName);
49 #if (defined __DATA_CAGING__)
50 RProcess().DataCaging(RProcess::EDataCagingOn);
51 RProcess().SecureApi(RProcess::ESecureApiOn);
53 CActiveScheduler* sched=NULL;
54 sched=new(ELeave) CActiveScheduler;
55 CActiveScheduler::Install(sched);
56 CShapeTestServer *server = NULL;
57 TRAPD(err,server = CShapeTestServer::NewL());
60 // Sync with the client and enter the active scheduler
61 RProcess::Rendezvous(KErrNone);
68 GLDEF_C TInt E32Main()
71 CTrapCleanup* cleanup = CTrapCleanup::New();
77 // This if statement is here just to shut up RVCT, which would otherwise warn
78 // that err was set but never used