|
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 implementation of CTestKillAlertServerStep class |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalTechnology |
|
21 */ |
|
22 |
|
23 // User Include |
|
24 #include "TestKillAlertServerStep.h" |
|
25 #include "AlarmControlsManager.h" |
|
26 |
|
27 /** |
|
28 Constructor. Sets the test step name. Testserver reference passed to make use |
|
29 of TEF's method of sharing data between test steps |
|
30 @internalTechnology |
|
31 @test |
|
32 */ |
|
33 CTestKillAlertServerStep::CTestKillAlertServerStep(CTestMultipleAlarmsServer& aTestServer) |
|
34 : CTestBaseStep(aTestServer) |
|
35 { |
|
36 //Call base class method to set human readable name for test step |
|
37 SetTestStepName(KTestKillAlertServerStep); |
|
38 } |
|
39 |
|
40 /** |
|
41 Base class pure virtual. |
|
42 @return EPass or EFail indicating the result of the test step. |
|
43 @internalTechnology |
|
44 @test |
|
45 */ |
|
46 TVerdict CTestKillAlertServerStep::doTestStepL() |
|
47 { |
|
48 INFO_PRINTF1(_L("Killing Alert Server Thread...")); |
|
49 |
|
50 TRequestStatus status(KRequestPending); |
|
51 TestServer()->AlarmControlsManager()->EndAlertServerThreadL(&status); |
|
52 User::WaitForRequest(status); |
|
53 PrintIfError(status.Int()); |
|
54 |
|
55 return TestStepResult(); |
|
56 } |
|
57 |