equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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 // Name : tcapclock.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 #include "tcapclock.h" |
|
21 |
|
22 Ctestcapclock::~Ctestcapclock() |
|
23 { |
|
24 } |
|
25 |
|
26 Ctestcapclock::Ctestcapclock(const TDesC& aStepName) |
|
27 { |
|
28 // MANDATORY Call to base class method to set up the human readable name for logging. |
|
29 SetTestStepName(aStepName); |
|
30 } |
|
31 |
|
32 TVerdict Ctestcapclock::doTestStepPreambleL() |
|
33 { |
|
34 __UHEAP_MARK; |
|
35 SetTestStepResult(EPass); |
|
36 return TestStepResult(); |
|
37 } |
|
38 |
|
39 |
|
40 |
|
41 TVerdict Ctestcapclock::doTestStepPostambleL() |
|
42 { |
|
43 __UHEAP_MARKEND; |
|
44 return TestStepResult(); |
|
45 } |
|
46 |
|
47 |
|
48 TVerdict Ctestcapclock::doTestStepL() |
|
49 { |
|
50 int err; |
|
51 |
|
52 //captest steps |
|
53 if(TestStepName() == KTestcapclocksettime1) |
|
54 { |
|
55 INFO_PRINTF1(_L("Testcapclocksettime1():")); |
|
56 err = Testcapclocksettime1(); |
|
57 SetTestStepResult(err ? static_cast<TVerdict>(err) : EPass); |
|
58 } |
|
59 return TestStepResult(); |
|
60 |
|
61 } |
|
62 |