equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2005-2009 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 * Example CTestStep derived implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file checkresultstep.cpp |
|
23 */ |
|
24 #include "starttimestep.h" |
|
25 |
|
26 CStartTimeStep::~CStartTimeStep() |
|
27 /** |
|
28 * Destructor |
|
29 */ |
|
30 { |
|
31 } |
|
32 |
|
33 CStartTimeStep::CStartTimeStep(CTe_RegScriptCommandServer* aServer) : iServer(aServer) |
|
34 /** |
|
35 * Constructor |
|
36 */ |
|
37 { |
|
38 // Call base class method to set up the human readable name for logging |
|
39 SetTestStepName(KStartTimeStep); |
|
40 } |
|
41 |
|
42 TVerdict CStartTimeStep::doTestStepL() |
|
43 /** |
|
44 * @return - TVerdict code |
|
45 * Override of base class pure virtual |
|
46 * Demonstrates opening up a handle to the data saved at RChunk base using template class |
|
47 * Overwrite shared data with values and also demonstrates the locking mechanism |
|
48 */ |
|
49 { |
|
50 SetTestStepResult(EFail); |
|
51 |
|
52 INFO_PRINTF1(_L("Record start time.")); |
|
53 TTime timeNow; |
|
54 timeNow.HomeTime(); |
|
55 Server()->StartTime() = timeNow; |
|
56 SetTestStepResult(EPass); |
|
57 |
|
58 return TestStepResult(); |
|
59 } |
|