os/graphics/egl/egltest/endpointtestsuite/automated/tinc/egltest_endpoint_engine_execthread.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef __EGLTEST_ENDPOINT_ENGINE_EXECTHREAD_H__
sl@0
    17
#define __EGLTEST_ENDPOINT_ENGINE_EXECTHREAD_H__
sl@0
    18
sl@0
    19
#include <e32base.h>
sl@0
    20
#include <e32msgqueue.h>
sl@0
    21
#include "egltest_surface.h"
sl@0
    22
#include "egltest_endpoint_engine.h"
sl@0
    23
#include "egltest_endpoint_images.h"
sl@0
    24
#include "egltest_commscommon.h"
sl@0
    25
#include "egltest_endpoint_util.h"
sl@0
    26
sl@0
    27
_LIT(KExecResultQueueName, "EGLEndpointExecTestEnvResultQueue");
sl@0
    28
_LIT(KExecParamsQueueName, "EGLEndpointExecTestEnvParamsQueue");
sl@0
    29
sl@0
    30
// For description of the work done as part of this class, see the 
sl@0
    31
// egltest_endpoint_engine_execthread.cpp
sl@0
    32
NONSHARABLE_CLASS(CEgltest_Local_Engine_Exec): public CBase
sl@0
    33
    {
sl@0
    34
public:
sl@0
    35
    CEgltest_Local_Engine_Exec();
sl@0
    36
    virtual ~CEgltest_Local_Engine_Exec();
sl@0
    37
    static TInt ThreadEntry(TAny *aDummy);
sl@0
    38
    static CEgltest_Local_Engine_Exec* NewL();
sl@0
    39
    CTestExecuteLogger &Logger() { return iLogger; }
sl@0
    40
    void SetTestStepResult(TVerdict aVerdict);
sl@0
    41
    TVerdict TestStepResult() const;
sl@0
    42
    void TidyUp();
sl@0
    43
    void SetUpL();
sl@0
    44
    
sl@0
    45
private:
sl@0
    46
    // This is the actual thread execution loop.
sl@0
    47
    static void ThreadEntryL();
sl@0
    48
    TInt ThreadLoopL();
sl@0
    49
    void ConstructL();
sl@0
    50
    void SendResult(const TExecResult &aResult);
sl@0
    51
    
sl@0
    52
private:
sl@0
    53
    RMsgQueue<TExecResult>              iResultOutQueue;
sl@0
    54
    RMsgQueue<TRemoteTestParamsPacket>  iParamsInQueue;
sl@0
    55
    CSurface*                           iSurfaces[KMaxEndpoints];
sl@0
    56
    TRequestStatus                      iStatus[KMaxEndpoints];
sl@0
    57
    TUint32                             iTimeStamp[KMaxEndpoints];
sl@0
    58
    TInt                                iFastFreq;
sl@0
    59
    // iLogging: Log commands as they are processed in this thread.
sl@0
    60
    TBool                               iLogging;
sl@0
    61
    // iLogger: Standard TEF logging object.
sl@0
    62
    CTestExecuteLogger                  iLogger;
sl@0
    63
    TVerdict                            iVerdict;
sl@0
    64
    TBool                               iSurfaceTypeDisplayed;
sl@0
    65
    EGLDisplay                          iDisplay;
sl@0
    66
    };
sl@0
    67
sl@0
    68
#endif