os/graphics/egl/egltest/endpointtestsuite/automated/src/egltest_remoteteststepfactory.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 "remotetestbase.h"
    22 #include "egltest_endpointapiexposure.h"
    23 #include "egltest_endpoint_engine.h"
    24 #include "egltest_endpointtearing.h"
    25 #include "egltest_threadedstress.h"
    26 #include "egltest_releaseimagegles.h"
    27 
    28 
    29 //RemoteTestStep Factory.
    30 CRemoteTestStepBase* CRemoteTestEnv::CreateRemoteTestStepL(TTestUid aTestUid)
    31     {
    32     switch (aTestUid)
    33         {
    34         case ETestUidEndpointApiExposure:       return new (ELeave) CEglTest_RemoteTestStep_EndpointApiExposure();
    35         case ETestUidEndpointEngine:            return new (ELeave) CEgltest_Remote_Engine();
    36         case ETestUidEndpointTearing:           return new (ELeave) CEglTest_RemoteTestStep_EndpointTearing();
    37         case ETestUidEndpointThreadStress:      return new (ELeave) CEglTest_RemoteTestStep_EndpointThreadStress();
    38         case ETestUidEndpointReleaseImageGles:  return new (ELeave) CEglTest_RemoteTestStep_EndpointReleaseImageGles();
    39         default:                                User::Leave(KErrUnknown);
    40         }
    41 
    42     //Stop the warning.
    43     return NULL;
    44     }
    45