os/graphics/egl/egltest/endpointtestsuite/automated/src/egltest_remoteteststepfactory.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_remoteteststepfactory.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,45 @@
     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 "remotetestbase.h"
    1.25 +#include "egltest_endpointapiexposure.h"
    1.26 +#include "egltest_endpoint_engine.h"
    1.27 +#include "egltest_endpointtearing.h"
    1.28 +#include "egltest_threadedstress.h"
    1.29 +#include "egltest_releaseimagegles.h"
    1.30 +
    1.31 +
    1.32 +//RemoteTestStep Factory.
    1.33 +CRemoteTestStepBase* CRemoteTestEnv::CreateRemoteTestStepL(TTestUid aTestUid)
    1.34 +    {
    1.35 +    switch (aTestUid)
    1.36 +        {
    1.37 +        case ETestUidEndpointApiExposure:       return new (ELeave) CEglTest_RemoteTestStep_EndpointApiExposure();
    1.38 +        case ETestUidEndpointEngine:            return new (ELeave) CEgltest_Remote_Engine();
    1.39 +        case ETestUidEndpointTearing:           return new (ELeave) CEglTest_RemoteTestStep_EndpointTearing();
    1.40 +        case ETestUidEndpointThreadStress:      return new (ELeave) CEglTest_RemoteTestStep_EndpointThreadStress();
    1.41 +        case ETestUidEndpointReleaseImageGles:  return new (ELeave) CEglTest_RemoteTestStep_EndpointReleaseImageGles();
    1.42 +        default:                                User::Leave(KErrUnknown);
    1.43 +        }
    1.44 +
    1.45 +    //Stop the warning.
    1.46 +    return NULL;
    1.47 +    }
    1.48 +