|
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 // Example CTestStep derived implementation |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file TestSetActiveOutputPluginStep.cpp |
|
20 @internalTechnology |
|
21 */ |
|
22 #include "testdeactivateoutputpluginstep.h" |
|
23 #include "te_uloggerclientsuitedefs.h" |
|
24 |
|
25 CTestDeactivateOutputPluginStep::~CTestDeactivateOutputPluginStep() |
|
26 /** |
|
27 * Destructor |
|
28 */ |
|
29 { |
|
30 } |
|
31 |
|
32 CTestDeactivateOutputPluginStep::CTestDeactivateOutputPluginStep() |
|
33 /** |
|
34 * Constructor |
|
35 */ |
|
36 { |
|
37 // **MUST** call SetTestStepName in the constructor as the controlling |
|
38 // framework uses the test step name immediately following construction to set |
|
39 // up the step's unique logging ID. |
|
40 SetTestStepName(KTestDeactivateOutputPluginStep); |
|
41 } |
|
42 |
|
43 TVerdict CTestDeactivateOutputPluginStep::doTestStepPreambleL() |
|
44 /** |
|
45 * @return - TVerdict code |
|
46 * Override of base class virtual |
|
47 */ |
|
48 { |
|
49 INFO_PRINTF1(_L("TestDeactivateOutputPluginStep")); |
|
50 CTestUloggerClientApiStepBase::doTestStepPreambleL(); |
|
51 return TestStepResult(); |
|
52 } |
|
53 |
|
54 |
|
55 TVerdict CTestDeactivateOutputPluginStep::doTestStepL() |
|
56 /** |
|
57 * @return - TVerdict code |
|
58 * Override of base class pure virtual |
|
59 * Our implementation only gets called if the base class doTestStepPreambleL() did |
|
60 * not leave. That being the case, the current test result value will be EPass. |
|
61 */ |
|
62 { |
|
63 INFO_PRINTF1(_L("The functionality 'deactivate output plug-in' is no longer supported (?)")); |
|
64 |
|
65 if (TestStepResult()==EPass) |
|
66 { |
|
67 iSession->Connect(); |
|
68 INFO_PRINTF1(_L("TestDeactivateOutputPluginStep connecting to server")); |
|
69 TInt err=iSession->ActivateOutputPlugin(_L8("uloggerfileplugin")); |
|
70 // if(err==KErrNone || err==KErrAlreadyExists) |
|
71 // User::LeaveIfError(iSession->DeActivateOutputPlugin(_L("uloggerfileplugin"))); |
|
72 // else |
|
73 // User::LeaveIfError(err); |
|
74 SetTestStepResult(EPass); |
|
75 } |
|
76 return TestStepResult(); |
|
77 } |
|
78 |
|
79 |
|
80 |
|
81 TVerdict CTestDeactivateOutputPluginStep::doTestStepPostambleL() |
|
82 /** |
|
83 * @return - TVerdict code |
|
84 * Override of base class virtual |
|
85 */ |
|
86 { |
|
87 SetTestStepResult(EPass); |
|
88 INFO_PRINTF1(_L("TestDeactivateOutputPluginStep completed")); |
|
89 return TestStepResult(); |
|
90 } |