os/graphics/egl/egltest/endpointtestsuite/automated/src/egltest_localteststepfactory.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/egl/egltest/endpointtestsuite/automated/src/egltest_localteststepfactory.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,118 @@
     1.4 +// Copyright (c) 2009-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 +
    1.17 +/**
    1.18 + @file
    1.19 + @test
    1.20 + @internalComponent - Internal Symbian test code
    1.21 +*/
    1.22 +
    1.23 +
    1.24 +#include "localtestbase.h"
    1.25 +#include "egltest_endpointapiexposure.h"
    1.26 +#include "egltest_endpointcreate.h"
    1.27 +#include "egltest_endpointacquire.h"
    1.28 +#include "egltest_endpointattrib.h"
    1.29 +#include "egltest_endpointstreaming.h"
    1.30 +#include "egltest_endpointimage.h"
    1.31 +#include "egltest_endpointlocking.h"
    1.32 +#include "egltest_endpointtearing.h"
    1.33 +#include "egltest_endpointstreamingtests.h"
    1.34 +#include "egltest_endpointnotification.h"
    1.35 +#include "egltest_endpointdirtyarea.h"
    1.36 +#include "egltest_endpoint_stresstests.h"
    1.37 +#include "egltest_endpoint_stressload.h"
    1.38 +#include "egltest_threadedstress.h"
    1.39 +#include "egltest_releaseimagegles.h"
    1.40 +
    1.41 +//LocalTestStep factory.
    1.42 +CTestStep* CEglEndpointTestServer::CreateTestStep(const TDesC& aStepName)
    1.43 +    {
    1.44 +    if (aStepName == KEGL_EndpointApiExposure)
    1.45 +        {
    1.46 +        return new CEglTest_LocalTestStep_EndpointApiExposure;
    1.47 +        }
    1.48 +    if (aStepName == KEGL_EndpointCreate)
    1.49 +        {
    1.50 +        return new CEglTest_LocalTestStep_EndpointCreate;
    1.51 +        }
    1.52 +    if (aStepName == KEGL_EndpointAttrib)
    1.53 +        {
    1.54 +        return new CEglTest_LocalTestStep_EndpointAttrib;
    1.55 +        }
    1.56 +    if (aStepName == KEGL_EndpointAcquire)
    1.57 +        {
    1.58 +        return new CEglTest_LocalTestStep_EndpointAcquire;
    1.59 +        }
    1.60 +    if (aStepName == KEGL_EndpointStreaming)
    1.61 +        {
    1.62 +        return new CEglTest_LocalTestStep_EndpointStreaming;
    1.63 +        }
    1.64 +    if (aStepName == KEGL_EndpointImage)
    1.65 +        {
    1.66 +        return new CEglTest_LocalTestStep_EndpointImage;
    1.67 +        }
    1.68 +    if (aStepName == KEGL_EndpointLocking)
    1.69 +        {
    1.70 +        return new CEglTest_LocalTestStep_EndpointLocking;
    1.71 +        }
    1.72 +    if (aStepName == KEGL_EndpointImageLifetime)
    1.73 +        {
    1.74 +        return new CEglTest_LocalTestStep_EndpointImageLifetime;
    1.75 +        }
    1.76 +    if (aStepName == KEGL_EndpointTearing)
    1.77 +        {
    1.78 +        return new CEglTest_LocalTestStep_EndpointTearing;
    1.79 +        }
    1.80 +    if (aStepName == KEGL_EndpointStreamingTests)
    1.81 +        {
    1.82 +        return new CEglTest_LocalTestStep_EndpointStreamingTests;
    1.83 +        }
    1.84 +    if (aStepName == KEGL_EndpointStreamingDispXTimesInStream)
    1.85 +        {
    1.86 +        return new CEglTest_LocalTestStep_EndpointStreamingDispXTimesInStream;
    1.87 +        }
    1.88 +    if (aStepName == KEGL_EndpointNotification)
    1.89 +        {
    1.90 +        return new CEglTest_LocalTestStep_EndpointNotification;
    1.91 +        }
    1.92 +    if (aStepName == KEGL_EndpointDirtyArea)
    1.93 +        {
    1.94 +        return new CEglTest_LocalTestStep_EndpointDirtyArea;
    1.95 +        }
    1.96 +    if (aStepName == KEGL_EndpointStressTests)
    1.97 +        {
    1.98 +        return CEglTest_TestStep_StressTests::New();
    1.99 +        }
   1.100 +    if (aStepName == KEGL_EndpointStressLoad)
   1.101 +        {
   1.102 +        return CEglTest_TestStep_StressLoad::New();
   1.103 +        }
   1.104 +    if (aStepName == KEGL_EndpointCrazyThreading)
   1.105 +        {
   1.106 +        return new CEglTest_LocalTestStep_EndpointCrazyThreading();
   1.107 +        }
   1.108 +    if (aStepName == KEGL_EndpointOutOfHeapMemory)
   1.109 +        {
   1.110 +        return new CEglTest_LocalTestStep_EndpointOutOfHeapMemory();
   1.111 +        }
   1.112 +    if (aStepName == KEGL_EndpointReleaseImageGles)
   1.113 +        {
   1.114 +        return new CEglTest_LocalTestStep_EndpointReleaseImageGles();
   1.115 +        }
   1.116 +    
   1.117 +    return NULL;
   1.118 +    }
   1.119 +
   1.120 +
   1.121 +