equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2009 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 "Eclipse Public License v1.0" |
4 // under the terms of "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". |
17 // |
17 // |
18 |
18 |
19 #include <e32test.h> //RTest |
19 #include <e32test.h> //RTest |
20 #include <e32svr.h> //RDebug |
20 #include <e32svr.h> //RDebug |
21 #include <savenotf.h> //RSaveSession, MSaveObserver, CSaveNotifier |
21 #include <savenotf.h> //RSaveSession, MSaveObserver, CSaveNotifier |
22 #include <e32consf.h> //for logging to file |
|
23 |
22 |
24 static RTest TheTest(_L("T_PwrBasic")); |
23 static RTest TheTest(_L("T_PwrBasic")); |
25 const TInt KOneSec = 1000000; |
24 const TInt KOneSec = 1000000; |
26 _LIT(KTestFailed, "Invalid Test Step %d\n"); |
25 _LIT(KTestFailed, "Invalid Test Step %d\n"); |
27 |
26 |
446 ::DEF111025L(); |
445 ::DEF111025L(); |
447 } |
446 } |
448 |
447 |
449 TInt E32Main() |
448 TInt E32Main() |
450 { |
449 { |
451 LogRTestToFile(TheTest); |
|
452 TheTest.Title(); |
|
453 __UHEAP_MARK; |
450 __UHEAP_MARK; |
454 CTrapCleanup* tc = CTrapCleanup::New(); |
451 CTrapCleanup* tc = CTrapCleanup::New(); |
455 TEST(tc != NULL); |
452 TEST(tc != NULL); |
456 |
453 |
457 TheTest.Start(_L("Power shutdown tests")); |
454 TheTest.Start(_L("Power shutdown tests")); |