|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Contains declaration of CTestPerformanceStep class, which does some |
|
15 // performance tests like adding a very large no. of entries with imminent |
|
16 // alarms, with associated data, and check the time taken for |
|
17 // getting notfications from alarm server, retreiving the data etc. |
|
18 // |
|
19 // |
|
20 |
|
21 #ifndef __TEST_PERFORMANCE_STEP_H__ |
|
22 #define __TEST_PERFORMANCE_STEP_H__ |
|
23 |
|
24 // User Includes |
|
25 #include "TestAssociatedDataStep.h" |
|
26 #include "DummyAlarmControl.h" |
|
27 |
|
28 /*@{*/ |
|
29 // Literal constant defined for identifying step name |
|
30 _LIT(KTestPerformanceStep, "TestPerformanceStep"); |
|
31 /*@}*/ |
|
32 |
|
33 /** |
|
34 Test step to suspend test execution for some time |
|
35 @internalTechnology |
|
36 @test |
|
37 */ |
|
38 class CTestPerformanceStep : public CTestAssociatedDataStep |
|
39 { |
|
40 public: |
|
41 CTestPerformanceStep(CTestMultipleAlarmsServer& aTestServer); |
|
42 |
|
43 // TEF pure virtual |
|
44 TVerdict doTestStepL(); |
|
45 |
|
46 private: |
|
47 void TestPerformanceL(const TReal32& aDataReadTime, const TReal32& aNotificationTime); |
|
48 void TestAssociatedDataPerformanceL(CDummyAlarmControl* alarmControl, const TReal32& aDataReadTime); |
|
49 void TestAlarmNotificationPerformanceL(CDummyAlarmControl* alarmControl, const TReal32& aNotificationTime); |
|
50 }; |
|
51 |
|
52 #endif // __TEST_PERFORMANCE_STEP_H__ |