sl@0
|
1 |
// Copyright (c) 2009-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 |
|
sl@0
|
14 |
/**
|
sl@0
|
15 |
@file
|
sl@0
|
16 |
@test
|
sl@0
|
17 |
@internalComponent - Internal Symbian test code
|
sl@0
|
18 |
*/
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
#include "localtestbase.h"
|
sl@0
|
22 |
#include "egltest_endpointapiexposure.h"
|
sl@0
|
23 |
#include "egltest_endpointcreate.h"
|
sl@0
|
24 |
#include "egltest_endpointacquire.h"
|
sl@0
|
25 |
#include "egltest_endpointattrib.h"
|
sl@0
|
26 |
#include "egltest_endpointstreaming.h"
|
sl@0
|
27 |
#include "egltest_endpointimage.h"
|
sl@0
|
28 |
#include "egltest_endpointlocking.h"
|
sl@0
|
29 |
#include "egltest_endpointtearing.h"
|
sl@0
|
30 |
#include "egltest_endpointstreamingtests.h"
|
sl@0
|
31 |
#include "egltest_endpointnotification.h"
|
sl@0
|
32 |
#include "egltest_endpointdirtyarea.h"
|
sl@0
|
33 |
#include "egltest_endpoint_stresstests.h"
|
sl@0
|
34 |
#include "egltest_endpoint_stressload.h"
|
sl@0
|
35 |
#include "egltest_threadedstress.h"
|
sl@0
|
36 |
#include "egltest_releaseimagegles.h"
|
sl@0
|
37 |
|
sl@0
|
38 |
//LocalTestStep factory.
|
sl@0
|
39 |
CTestStep* CEglEndpointTestServer::CreateTestStep(const TDesC& aStepName)
|
sl@0
|
40 |
{
|
sl@0
|
41 |
if (aStepName == KEGL_EndpointApiExposure)
|
sl@0
|
42 |
{
|
sl@0
|
43 |
return new CEglTest_LocalTestStep_EndpointApiExposure;
|
sl@0
|
44 |
}
|
sl@0
|
45 |
if (aStepName == KEGL_EndpointCreate)
|
sl@0
|
46 |
{
|
sl@0
|
47 |
return new CEglTest_LocalTestStep_EndpointCreate;
|
sl@0
|
48 |
}
|
sl@0
|
49 |
if (aStepName == KEGL_EndpointAttrib)
|
sl@0
|
50 |
{
|
sl@0
|
51 |
return new CEglTest_LocalTestStep_EndpointAttrib;
|
sl@0
|
52 |
}
|
sl@0
|
53 |
if (aStepName == KEGL_EndpointAcquire)
|
sl@0
|
54 |
{
|
sl@0
|
55 |
return new CEglTest_LocalTestStep_EndpointAcquire;
|
sl@0
|
56 |
}
|
sl@0
|
57 |
if (aStepName == KEGL_EndpointStreaming)
|
sl@0
|
58 |
{
|
sl@0
|
59 |
return new CEglTest_LocalTestStep_EndpointStreaming;
|
sl@0
|
60 |
}
|
sl@0
|
61 |
if (aStepName == KEGL_EndpointImage)
|
sl@0
|
62 |
{
|
sl@0
|
63 |
return new CEglTest_LocalTestStep_EndpointImage;
|
sl@0
|
64 |
}
|
sl@0
|
65 |
if (aStepName == KEGL_EndpointLocking)
|
sl@0
|
66 |
{
|
sl@0
|
67 |
return new CEglTest_LocalTestStep_EndpointLocking;
|
sl@0
|
68 |
}
|
sl@0
|
69 |
if (aStepName == KEGL_EndpointImageLifetime)
|
sl@0
|
70 |
{
|
sl@0
|
71 |
return new CEglTest_LocalTestStep_EndpointImageLifetime;
|
sl@0
|
72 |
}
|
sl@0
|
73 |
if (aStepName == KEGL_EndpointTearing)
|
sl@0
|
74 |
{
|
sl@0
|
75 |
return new CEglTest_LocalTestStep_EndpointTearing;
|
sl@0
|
76 |
}
|
sl@0
|
77 |
if (aStepName == KEGL_EndpointStreamingTests)
|
sl@0
|
78 |
{
|
sl@0
|
79 |
return new CEglTest_LocalTestStep_EndpointStreamingTests;
|
sl@0
|
80 |
}
|
sl@0
|
81 |
if (aStepName == KEGL_EndpointStreamingDispXTimesInStream)
|
sl@0
|
82 |
{
|
sl@0
|
83 |
return new CEglTest_LocalTestStep_EndpointStreamingDispXTimesInStream;
|
sl@0
|
84 |
}
|
sl@0
|
85 |
if (aStepName == KEGL_EndpointNotification)
|
sl@0
|
86 |
{
|
sl@0
|
87 |
return new CEglTest_LocalTestStep_EndpointNotification;
|
sl@0
|
88 |
}
|
sl@0
|
89 |
if (aStepName == KEGL_EndpointDirtyArea)
|
sl@0
|
90 |
{
|
sl@0
|
91 |
return new CEglTest_LocalTestStep_EndpointDirtyArea;
|
sl@0
|
92 |
}
|
sl@0
|
93 |
if (aStepName == KEGL_EndpointStressTests)
|
sl@0
|
94 |
{
|
sl@0
|
95 |
return CEglTest_TestStep_StressTests::New();
|
sl@0
|
96 |
}
|
sl@0
|
97 |
if (aStepName == KEGL_EndpointStressLoad)
|
sl@0
|
98 |
{
|
sl@0
|
99 |
return CEglTest_TestStep_StressLoad::New();
|
sl@0
|
100 |
}
|
sl@0
|
101 |
if (aStepName == KEGL_EndpointCrazyThreading)
|
sl@0
|
102 |
{
|
sl@0
|
103 |
return new CEglTest_LocalTestStep_EndpointCrazyThreading();
|
sl@0
|
104 |
}
|
sl@0
|
105 |
if (aStepName == KEGL_EndpointOutOfHeapMemory)
|
sl@0
|
106 |
{
|
sl@0
|
107 |
return new CEglTest_LocalTestStep_EndpointOutOfHeapMemory();
|
sl@0
|
108 |
}
|
sl@0
|
109 |
if (aStepName == KEGL_EndpointReleaseImageGles)
|
sl@0
|
110 |
{
|
sl@0
|
111 |
return new CEglTest_LocalTestStep_EndpointReleaseImageGles();
|
sl@0
|
112 |
}
|
sl@0
|
113 |
|
sl@0
|
114 |
return NULL;
|
sl@0
|
115 |
}
|
sl@0
|
116 |
|
sl@0
|
117 |
|
sl@0
|
118 |
|