|
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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 */ |
|
19 |
|
20 |
|
21 #include "CMtfTestActionStartTimer.h" |
|
22 #include "CMtfTestActionManager.h" |
|
23 #include "CMtfTestCase.h" |
|
24 #include "CMtfTestActionParameters.h" |
|
25 |
|
26 |
|
27 CMtfTestAction* CMtfTestActionStartTimer::NewL(CMtfTestCase& aTestCase, |
|
28 CMtfTestActionParameters* aActionParameters) |
|
29 { |
|
30 CMtfTestActionStartTimer* self = new (ELeave) CMtfTestActionStartTimer(aTestCase); |
|
31 CleanupStack::PushL(self); |
|
32 self->ConstructL(aActionParameters); |
|
33 CleanupStack::Pop(); |
|
34 return self; |
|
35 } |
|
36 |
|
37 CMtfTestActionStartTimer::CMtfTestActionStartTimer(CMtfTestCase& aTestCase) |
|
38 : CMtfSynchronousTestAction(aTestCase) |
|
39 { |
|
40 } |
|
41 |
|
42 void CMtfTestActionStartTimer::ExecuteActionL() |
|
43 { |
|
44 TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionStartTimer); |
|
45 |
|
46 TTime now; |
|
47 now.UniversalTime(); |
|
48 TTime paramTime(now); |
|
49 // TInt64 paramTime = now.Int64(); |
|
50 |
|
51 StoreParameterL<TTime>(TestCase(),paramTime,ActionParameters().Parameter(0)); |
|
52 // StoreParameterL<TInt64>(TestCase(),paramTime,ActionParameters().Parameter(0)); |
|
53 |
|
54 TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionStartTimer); |
|
55 TestCase().ActionCompletedL(*this); |
|
56 } |
|
57 |
|
58 CMtfTestActionStartTimer::~CMtfTestActionStartTimer() |
|
59 { |
|
60 } |
|
61 |