|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 @file |
|
21 @test |
|
22 @internalComponent - Internal Symbian test code |
|
23 */ |
|
24 |
|
25 |
|
26 #ifndef __EGLTEST_THREADEDSTRESS_H__ |
|
27 #define __EGLTEST_THREADEDSTRESS_H__ |
|
28 |
|
29 |
|
30 #include "localtestbase.h" |
|
31 #include "remotetestbase.h" |
|
32 |
|
33 |
|
34 _LIT(KEGL_EndpointCrazyThreading, "EGL_EndpointCrazyThreading"); |
|
35 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointCrazyThreading) : public CLocalTestStepBase |
|
36 { |
|
37 public: |
|
38 CEglTest_LocalTestStep_EndpointCrazyThreading(); |
|
39 ~CEglTest_LocalTestStep_EndpointCrazyThreading(); |
|
40 void DoPreambleL(); |
|
41 void DoPostambleL(); |
|
42 TVerdict doTestStepL(); |
|
43 }; |
|
44 |
|
45 |
|
46 _LIT(KEGL_EndpointOutOfHeapMemory, "EGL_EndpointOutOfHeapMemory"); |
|
47 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointOutOfHeapMemory) : public CLocalTestStepBase |
|
48 { |
|
49 public: |
|
50 CEglTest_LocalTestStep_EndpointOutOfHeapMemory(); |
|
51 ~CEglTest_LocalTestStep_EndpointOutOfHeapMemory(); |
|
52 void DoPreambleL(); |
|
53 void DoPostambleL(); |
|
54 TVerdict doTestStepL(); |
|
55 }; |
|
56 |
|
57 |
|
58 NONSHARABLE_CLASS(CEglTest_RemoteTestStep_EndpointThreadStress) : public CRemoteTestStepBase |
|
59 { |
|
60 public: |
|
61 CEglTest_RemoteTestStep_EndpointThreadStress(); |
|
62 ~CEglTest_RemoteTestStep_EndpointThreadStress(); |
|
63 |
|
64 virtual TRemoteTestVerdict DoRunRemoteTestCaseL(TInt aTestCase, const TRemoteTestParams& aParams); |
|
65 virtual TRemoteTestVerdict DoStartRemoteTestStepL(const TRemoteTestParams& aMessageIn); |
|
66 virtual TRemoteTestVerdict DoEndRemoteTestStepL(const TRemoteTestParams& aMessageIn); |
|
67 |
|
68 virtual TInt Timeout() const; |
|
69 |
|
70 private: |
|
71 TRemoteTestVerdict CrazyThreadingTestCaseL(const TRemoteTestParams& aParams); |
|
72 TRemoteTestVerdict OutOfHeapMemoryTestCaseL(const TRemoteTestParams& aParams); |
|
73 TRemoteTestVerdict DoOutOfHeapMemoryTestCaseL(const TRemoteTestParams& aParams); |
|
74 }; |
|
75 |
|
76 |
|
77 #endif |