equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 // |
14 // |
15 |
15 |
16 /** |
16 /** |
17 @file |
17 @file |
18 @test |
18 @test |
19 @internalComponent - Internal Symbian test code |
19 @internalComponent - Internal test code |
20 */ |
20 */ |
21 |
21 |
22 |
22 |
23 #ifndef __TSUS_STEP_ADAPTIONSERVER_H__ |
23 #ifndef __TSUS_STEP_ADAPTIONSERVER_H__ |
24 #define __TSUS_STEP_ADAPTIONSERVER_H__ |
24 #define __TSUS_STEP_ADAPTIONSERVER_H__ |
31 _LIT(KTSusAdaptionServerStep,"SusAdaptionServerStep"); |
31 _LIT(KTSusAdaptionServerStep,"SusAdaptionServerStep"); |
32 |
32 |
33 class RTestSusAdaptationCli : public RSsmEmergencyCallRfAdaptation |
33 class RTestSusAdaptationCli : public RSsmEmergencyCallRfAdaptation |
34 { |
34 { |
35 public: |
35 public: |
|
36 #ifdef TEST_SSM_SERVER |
|
37 TInt Connect(const TDesC& aServerName); |
|
38 #endif |
36 TInt SetHeapFailure(TInt aFailureRate); |
39 TInt SetHeapFailure(TInt aFailureRate); |
37 TInt UnSetHeapFailure(); |
40 TInt UnSetHeapFailure(); |
|
41 TInt SetHeapMark(); |
|
42 TInt UnSetHeapMark(); |
|
43 |
38 }; |
44 }; |
39 |
45 |
40 class CSusAdaptionServerTest : public CTestStep |
46 class CSusAdaptionServerTest : public CTestStep |
41 { |
47 { |
42 public: |
48 public: |
49 TVerdict doTestStepPostambleL(); |
55 TVerdict doTestStepPostambleL(); |
50 |
56 |
51 private: |
57 private: |
52 void doTestForMemoryLeaksL(); |
58 void doTestForMemoryLeaksL(); |
53 void doTestProcessCriticalL(); |
59 void doTestProcessCriticalL(); |
54 void doTestOOML(); |
60 void doTestOOML(); |
|
61 void StartAndDestroyServerL(); |
|
62 #ifdef TEST_SSM_SERVER |
55 void doTestForEmergencyCallOOM(); |
63 void doTestForEmergencyCallOOM(); |
56 void StartAndDestroyServerL(); |
|
57 void doTestForSettingPriorityClient(); |
64 void doTestForSettingPriorityClient(); |
58 void doTestForNormalEmergencyCallinOOM(); |
65 void doTestForNormalEmergencyCallinOOM(); |
|
66 void doTestForMultipleClientinOOMcondition(); |
|
67 void doTestForEmergencyCallOOMIterative(); |
|
68 #endif |
59 }; |
69 }; |
60 |
70 |
61 #endif |
71 #endif |