os/graphics/egl/egltest/endpointtestsuite/automated/src/egltest_localteststepfactory.cpp
Update contrib.
1 // Copyright (c) 2009-2010 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.
17 @internalComponent - Internal Symbian test code
21 #include "localtestbase.h"
22 #include "egltest_endpointapiexposure.h"
23 #include "egltest_endpointcreate.h"
24 #include "egltest_endpointacquire.h"
25 #include "egltest_endpointattrib.h"
26 #include "egltest_endpointstreaming.h"
27 #include "egltest_endpointimage.h"
28 #include "egltest_endpointlocking.h"
29 #include "egltest_endpointtearing.h"
30 #include "egltest_endpointstreamingtests.h"
31 #include "egltest_endpointnotification.h"
32 #include "egltest_endpointdirtyarea.h"
33 #include "egltest_endpoint_stresstests.h"
34 #include "egltest_endpoint_stressload.h"
35 #include "egltest_threadedstress.h"
36 #include "egltest_releaseimagegles.h"
38 //LocalTestStep factory.
39 CTestStep* CEglEndpointTestServer::CreateTestStep(const TDesC& aStepName)
41 if (aStepName == KEGL_EndpointApiExposure)
43 return new CEglTest_LocalTestStep_EndpointApiExposure;
45 if (aStepName == KEGL_EndpointCreate)
47 return new CEglTest_LocalTestStep_EndpointCreate;
49 if (aStepName == KEGL_EndpointAttrib)
51 return new CEglTest_LocalTestStep_EndpointAttrib;
53 if (aStepName == KEGL_EndpointAcquire)
55 return new CEglTest_LocalTestStep_EndpointAcquire;
57 if (aStepName == KEGL_EndpointStreaming)
59 return new CEglTest_LocalTestStep_EndpointStreaming;
61 if (aStepName == KEGL_EndpointImage)
63 return new CEglTest_LocalTestStep_EndpointImage;
65 if (aStepName == KEGL_EndpointLocking)
67 return new CEglTest_LocalTestStep_EndpointLocking;
69 if (aStepName == KEGL_EndpointImageLifetime)
71 return new CEglTest_LocalTestStep_EndpointImageLifetime;
73 if (aStepName == KEGL_EndpointTearing)
75 return new CEglTest_LocalTestStep_EndpointTearing;
77 if (aStepName == KEGL_EndpointStreamingTests)
79 return new CEglTest_LocalTestStep_EndpointStreamingTests;
81 if (aStepName == KEGL_EndpointStreamingDispXTimesInStream)
83 return new CEglTest_LocalTestStep_EndpointStreamingDispXTimesInStream;
85 if (aStepName == KEGL_EndpointNotification)
87 return new CEglTest_LocalTestStep_EndpointNotification;
89 if (aStepName == KEGL_EndpointDirtyArea)
91 return new CEglTest_LocalTestStep_EndpointDirtyArea;
93 if (aStepName == KEGL_EndpointStressTests)
95 return CEglTest_TestStep_StressTests::New();
97 if (aStepName == KEGL_EndpointStressLoad)
99 return CEglTest_TestStep_StressLoad::New();
101 if (aStepName == KEGL_EndpointCrazyThreading)
103 return new CEglTest_LocalTestStep_EndpointCrazyThreading();
105 if (aStepName == KEGL_EndpointOutOfHeapMemory)
107 return new CEglTest_LocalTestStep_EndpointOutOfHeapMemory();
109 if (aStepName == KEGL_EndpointReleaseImageGles)
111 return new CEglTest_LocalTestStep_EndpointReleaseImageGles();