os/graphics/egl/egltest/endpointtestsuite/automated/tinc/egltest_threadedstress.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/egl/egltest/endpointtestsuite/automated/tinc/egltest_threadedstress.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,77 @@
     1.4 +/*
     1.5 +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +/**
    1.23 + @file
    1.24 + @test
    1.25 + @internalComponent - Internal Symbian test code
    1.26 +*/
    1.27 +
    1.28 +
    1.29 +#ifndef __EGLTEST_THREADEDSTRESS_H__
    1.30 +#define __EGLTEST_THREADEDSTRESS_H__
    1.31 +
    1.32 +
    1.33 +#include "localtestbase.h"
    1.34 +#include "remotetestbase.h"
    1.35 +
    1.36 +
    1.37 +_LIT(KEGL_EndpointCrazyThreading, "EGL_EndpointCrazyThreading");
    1.38 +NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointCrazyThreading) : public CLocalTestStepBase
    1.39 +    {
    1.40 +public:
    1.41 +    CEglTest_LocalTestStep_EndpointCrazyThreading();
    1.42 +    ~CEglTest_LocalTestStep_EndpointCrazyThreading();
    1.43 +    void DoPreambleL();
    1.44 +    void DoPostambleL();
    1.45 +    TVerdict doTestStepL();
    1.46 +    };
    1.47 +
    1.48 +
    1.49 +_LIT(KEGL_EndpointOutOfHeapMemory, "EGL_EndpointOutOfHeapMemory");
    1.50 +NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointOutOfHeapMemory) : public CLocalTestStepBase
    1.51 +    {
    1.52 +public:
    1.53 +CEglTest_LocalTestStep_EndpointOutOfHeapMemory();
    1.54 +    ~CEglTest_LocalTestStep_EndpointOutOfHeapMemory();
    1.55 +    void DoPreambleL();
    1.56 +    void DoPostambleL();
    1.57 +    TVerdict doTestStepL();
    1.58 +    };
    1.59 +
    1.60 +
    1.61 +NONSHARABLE_CLASS(CEglTest_RemoteTestStep_EndpointThreadStress) : public CRemoteTestStepBase
    1.62 +    {
    1.63 +public:
    1.64 +    CEglTest_RemoteTestStep_EndpointThreadStress();
    1.65 +    ~CEglTest_RemoteTestStep_EndpointThreadStress();
    1.66 +    
    1.67 +    virtual TRemoteTestVerdict DoRunRemoteTestCaseL(TInt aTestCase, const TRemoteTestParams& aParams);
    1.68 +    virtual TRemoteTestVerdict DoStartRemoteTestStepL(const TRemoteTestParams& aMessageIn);
    1.69 +    virtual TRemoteTestVerdict DoEndRemoteTestStepL(const TRemoteTestParams& aMessageIn);
    1.70 +    
    1.71 +    virtual TInt Timeout() const;
    1.72 +    
    1.73 +private:
    1.74 +    TRemoteTestVerdict CrazyThreadingTestCaseL(const TRemoteTestParams& aParams);
    1.75 +    TRemoteTestVerdict OutOfHeapMemoryTestCaseL(const TRemoteTestParams& aParams);
    1.76 +    TRemoteTestVerdict DoOutOfHeapMemoryTestCaseL(const TRemoteTestParams& aParams);
    1.77 +    };
    1.78 +
    1.79 +
    1.80 +#endif