sl@0
|
1 |
// Copyright (c) 2009 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 |
/**
|
sl@0
|
17 |
@file
|
sl@0
|
18 |
@test
|
sl@0
|
19 |
@internalComponent - Internal Symbian test code
|
sl@0
|
20 |
*/
|
sl@0
|
21 |
|
sl@0
|
22 |
#ifndef __EGLTEST_ENDPOINTIMAGE_H__
|
sl@0
|
23 |
#define __EGLTEST_ENDPOINTIMAGE_H__
|
sl@0
|
24 |
|
sl@0
|
25 |
#include "egltest_endpoint_engine.h"
|
sl@0
|
26 |
|
sl@0
|
27 |
_LIT(KResultProcessQueueName, "ProcessTestEnvResultQueue");
|
sl@0
|
28 |
_LIT(KParamsProcessQueueName, "ProcessTestEnvParamsQueue");
|
sl@0
|
29 |
|
sl@0
|
30 |
|
sl@0
|
31 |
enum TEndpointLifetimeExit
|
sl@0
|
32 |
{
|
sl@0
|
33 |
EEndpointLifetimeNormalExit,
|
sl@0
|
34 |
EEnfpointLifetimePanicExit,
|
sl@0
|
35 |
};
|
sl@0
|
36 |
|
sl@0
|
37 |
_LIT(KEGL_EndpointImage, "EGL_EndpointImage");
|
sl@0
|
38 |
NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImage) : public CEgltest_Local_Engine
|
sl@0
|
39 |
{
|
sl@0
|
40 |
public:
|
sl@0
|
41 |
CEglTest_LocalTestStep_EndpointImage();
|
sl@0
|
42 |
};
|
sl@0
|
43 |
|
sl@0
|
44 |
_LIT(KEGL_EndpointImageLifetime, "EGL_EndpointImageLifetime");
|
sl@0
|
45 |
NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImageLifetime): public CLocalTestStepBase
|
sl@0
|
46 |
{
|
sl@0
|
47 |
public:
|
sl@0
|
48 |
CEglTest_LocalTestStep_EndpointImageLifetime();
|
sl@0
|
49 |
~CEglTest_LocalTestStep_EndpointImageLifetime();
|
sl@0
|
50 |
virtual TVerdict doTestStepL();
|
sl@0
|
51 |
virtual void DoPreambleL();
|
sl@0
|
52 |
virtual void DoPostambleL();
|
sl@0
|
53 |
private:
|
sl@0
|
54 |
void RunScript(const TEngineTestCase *aTestCases, TRemoteTestParams ¶ms);
|
sl@0
|
55 |
void EndpointLifetimeTestL(TSurfaceType aSurfaceType, TInt aExitType);
|
sl@0
|
56 |
|
sl@0
|
57 |
private:
|
sl@0
|
58 |
struct TProcessStatus
|
sl@0
|
59 |
{
|
sl@0
|
60 |
RProcess iProcess;
|
sl@0
|
61 |
TRequestStatus iStatus;
|
sl@0
|
62 |
} iProcessStatus;
|
sl@0
|
63 |
|
sl@0
|
64 |
RMsgQueue<TInt> iProcessResultInQueue;
|
sl@0
|
65 |
RMsgQueue<TSurfaceId> iProcessParamsOutQueue;
|
sl@0
|
66 |
};
|
sl@0
|
67 |
|
sl@0
|
68 |
_LIT(KEGL_EndpointImageLifetimeProcess, "EGL_EndpointImageLifetimeProcess");
|
sl@0
|
69 |
NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointImageLifetimeProcess): public CTestStep //CTTMSGraphicsStep
|
sl@0
|
70 |
{
|
sl@0
|
71 |
public:
|
sl@0
|
72 |
CEglTest_LocalTestStep_EndpointImageLifetimeProcess();
|
sl@0
|
73 |
virtual ~CEglTest_LocalTestStep_EndpointImageLifetimeProcess();
|
sl@0
|
74 |
virtual TVerdict doTestStepL();
|
sl@0
|
75 |
virtual TVerdict doTestStepPreambleL();
|
sl@0
|
76 |
virtual TVerdict doTestStepPostambleL();
|
sl@0
|
77 |
static void MainL();
|
sl@0
|
78 |
|
sl@0
|
79 |
private:
|
sl@0
|
80 |
RMsgQueue<TInt> iResultOutQueue;
|
sl@0
|
81 |
RMsgQueue<TSurfaceId> iParamsInQueue;
|
sl@0
|
82 |
};
|
sl@0
|
83 |
|
sl@0
|
84 |
#endif // __EGLTEST_ENDPOINTIMAGE_H__
|