equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-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 #include <e32std.h> |
|
18 #include "tsysstart2_teststep.h" |
|
19 #include "testprocgoodsession.h" |
|
20 |
|
21 |
|
22 TVerdict CAppFwkSysStart2TestStep::doTestStepPostambleL() |
|
23 { |
|
24 |
|
25 return TestStepResult(); |
|
26 } |
|
27 |
|
28 |
|
29 |
|
30 TBool CAppFwkSysStart2TestStep::ProcessExists( const TDesC& aProcessName, TFullName& aName ) |
|
31 { |
|
32 TBool found = EFalse; |
|
33 TFullName searchTerm(aProcessName); |
|
34 searchTerm += _L("*"); |
|
35 TFindProcess find(searchTerm); |
|
36 TFullName name; |
|
37 while(find.Next(aName)==KErrNone) |
|
38 { |
|
39 RProcess process; |
|
40 const TInt err = process.Open(find); |
|
41 if (err == KErrNone) |
|
42 { |
|
43 if (process.ExitType() == EExitPending) |
|
44 { |
|
45 found = ETrue; |
|
46 process.Close(); |
|
47 break; |
|
48 } |
|
49 process.Close(); |
|
50 } |
|
51 } |
|
52 return found; |
|
53 } |
|
54 |
|
55 |
|
56 |
|
57 void CAppFwkSysStart2TestStep::LogonAndCancelMonL() |
|
58 { |
|
59 RTestProcGoodSession session; |
|
60 |
|
61 User::LeaveIfError( session.Connect() ); |
|
62 User::LeaveIfError( session.CancelMonitor() ); |
|
63 |
|
64 session.Close(); |
|
65 } |