First public contribution.
1 // Copyright (c) 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.
16 #include "tsurfaceupdateserverinteg.h"
17 #include "tsurfaceupdateinteg.h"
19 _LIT(KServerName,"TSurfaceUpdateServerInteg");
21 CTSurfaceUpdateServerInteg* CTSurfaceUpdateServerInteg::NewL()
23 CTSurfaceUpdateServerInteg * server = new (ELeave) CTSurfaceUpdateServerInteg();
24 CleanupStack::PushL(server);
25 // CServer base class call
26 server->StartL(KServerName);
27 CleanupStack::Pop(server);
33 RProcess().DataCaging(RProcess::EDataCagingOn);
34 RProcess().SecureApi(RProcess::ESecureApiOn);
35 CActiveScheduler* sched=NULL;
36 sched=new(ELeave) CActiveScheduler;
37 CActiveScheduler::Install(sched);
38 CTSurfaceUpdateServerInteg* server = NULL;
39 // Create the CTestServer derived server
40 TRAPD(err,server = CTSurfaceUpdateServerInteg::NewL());
43 // Sync with the client and enter the active scheduler
44 RProcess::Rendezvous(KErrNone);
51 GLDEF_C TInt E32Main()
54 CTrapCleanup* cleanup = CTrapCleanup::New();
62 RDebug::Print(_L("TSurfaceUpdateServer::MainL - Error: %d"), err);
63 User::Panic(KServerName,err);
70 CTestStep* CTSurfaceUpdateServerInteg::CreateTestStep(const TDesC& aStepName)
72 CTestStep* testStep = NULL;
74 if(aStepName == KTSurfaceUpdateIntegStep)
76 testStep = new CTSurfaceUpdateIntegStep();