os/graphics/egl/egltest/endpointtestsuite/automated/src/egltest_localteststepfactory.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 
    13 
    14 /**
    15  @file
    16  @test
    17  @internalComponent - Internal Symbian test code
    18 */
    19 
    20 
    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"
    37 
    38 //LocalTestStep factory.
    39 CTestStep* CEglEndpointTestServer::CreateTestStep(const TDesC& aStepName)
    40     {
    41     if (aStepName == KEGL_EndpointApiExposure)
    42         {
    43         return new CEglTest_LocalTestStep_EndpointApiExposure;
    44         }
    45     if (aStepName == KEGL_EndpointCreate)
    46         {
    47         return new CEglTest_LocalTestStep_EndpointCreate;
    48         }
    49     if (aStepName == KEGL_EndpointAttrib)
    50         {
    51         return new CEglTest_LocalTestStep_EndpointAttrib;
    52         }
    53     if (aStepName == KEGL_EndpointAcquire)
    54         {
    55         return new CEglTest_LocalTestStep_EndpointAcquire;
    56         }
    57     if (aStepName == KEGL_EndpointStreaming)
    58         {
    59         return new CEglTest_LocalTestStep_EndpointStreaming;
    60         }
    61     if (aStepName == KEGL_EndpointImage)
    62         {
    63         return new CEglTest_LocalTestStep_EndpointImage;
    64         }
    65     if (aStepName == KEGL_EndpointLocking)
    66         {
    67         return new CEglTest_LocalTestStep_EndpointLocking;
    68         }
    69     if (aStepName == KEGL_EndpointImageLifetime)
    70         {
    71         return new CEglTest_LocalTestStep_EndpointImageLifetime;
    72         }
    73     if (aStepName == KEGL_EndpointTearing)
    74         {
    75         return new CEglTest_LocalTestStep_EndpointTearing;
    76         }
    77     if (aStepName == KEGL_EndpointStreamingTests)
    78         {
    79         return new CEglTest_LocalTestStep_EndpointStreamingTests;
    80         }
    81     if (aStepName == KEGL_EndpointStreamingDispXTimesInStream)
    82         {
    83         return new CEglTest_LocalTestStep_EndpointStreamingDispXTimesInStream;
    84         }
    85     if (aStepName == KEGL_EndpointNotification)
    86         {
    87         return new CEglTest_LocalTestStep_EndpointNotification;
    88         }
    89     if (aStepName == KEGL_EndpointDirtyArea)
    90         {
    91         return new CEglTest_LocalTestStep_EndpointDirtyArea;
    92         }
    93     if (aStepName == KEGL_EndpointStressTests)
    94         {
    95         return CEglTest_TestStep_StressTests::New();
    96         }
    97     if (aStepName == KEGL_EndpointStressLoad)
    98         {
    99         return CEglTest_TestStep_StressLoad::New();
   100         }
   101     if (aStepName == KEGL_EndpointCrazyThreading)
   102         {
   103         return new CEglTest_LocalTestStep_EndpointCrazyThreading();
   104         }
   105     if (aStepName == KEGL_EndpointOutOfHeapMemory)
   106         {
   107         return new CEglTest_LocalTestStep_EndpointOutOfHeapMemory();
   108         }
   109     if (aStepName == KEGL_EndpointReleaseImageGles)
   110         {
   111         return new CEglTest_LocalTestStep_EndpointReleaseImageGles();
   112         }
   113     
   114     return NULL;
   115     }
   116 
   117 
   118