equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
18 #include <e32test.h> |
18 #include <e32test.h> |
19 #include <e32hal.h> |
19 #include <e32hal.h> |
20 #include "d_lddpowerseqtest.h" |
20 #include "d_lddpowerseqtest.h" |
21 #include <e32power.h> |
21 #include <e32power.h> |
22 |
22 |
|
23 #include "testexclusions.h" |
23 _LIT(KLddFileName, "D_LDDPOWERSEQTEST.LDD"); |
24 _LIT(KLddFileName, "D_LDDPOWERSEQTEST.LDD"); |
24 |
25 |
25 RLddTest1 ldd; |
26 RLddTest1 ldd; |
26 GLDEF_D RTest test(_L("T_LDDPOWERSEQTEST")); |
27 GLDEF_D RTest test(_L("T_LDDPOWERSEQTEST")); |
27 |
28 |
36 TRequestStatus statuspowerdown2; |
37 TRequestStatus statuspowerdown2; |
37 TRequestStatus statuspowerup1; |
38 TRequestStatus statuspowerup1; |
38 TRequestStatus statuspowerup2; |
39 TRequestStatus statuspowerup2; |
39 RTimer timer; |
40 RTimer timer; |
40 TRequestStatus tstatus; |
41 TRequestStatus tstatus; |
|
42 |
|
43 TInt testExclusions = 0; |
|
44 r = GetTestExclusionSettings(testExclusions); |
|
45 test(r == KErrNone); |
|
46 |
|
47 if (testExclusions & KDisableControllerShutdown) |
|
48 { |
|
49 UserSvr::HalFunction(EHalGroupPower, EPowerHalPowerManagerTestMode, (TAny*)KDisableControllerShutdown, NULL); |
|
50 } |
41 |
51 |
42 test.Printf(_L("Loading logical device \n")); |
52 test.Printf(_L("Loading logical device \n")); |
43 r=User::LoadLogicalDevice(KLddFileName); |
53 r=User::LoadLogicalDevice(KLddFileName); |
44 test(r == KErrNone); |
54 test(r == KErrNone); |
45 |
55 |