resourcemgmt/powerandmemorynotificationservice/tsrc/t_pwrbasic.cpp
branchRCL_3
changeset 21 ccb4f6b3db21
parent 0 4e1aa6a622a0
child 22 8cb079868133
equal deleted inserted replaced
20:1ddbe54d0645 21:ccb4f6b3db21
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-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 "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
    22 
    23 
    23 static RTest TheTest(_L("T_PwrBasic"));
    24 static RTest TheTest(_L("T_PwrBasic"));
    24 const TInt KOneSec = 1000000;
    25 const TInt KOneSec = 1000000;
    25 _LIT(KTestFailed, "Invalid Test Step %d\n");
    26 _LIT(KTestFailed, "Invalid Test Step %d\n");
    26 
    27 
   445     ::DEF111025L();
   446     ::DEF111025L();
   446     }
   447     }
   447 
   448 
   448 TInt E32Main()
   449 TInt E32Main()
   449 	{
   450 	{
       
   451 	LogRTestToFile(TheTest);
       
   452     TheTest.Title();
   450 	__UHEAP_MARK;
   453 	__UHEAP_MARK;
   451 	CTrapCleanup* tc = CTrapCleanup::New();
   454 	CTrapCleanup* tc = CTrapCleanup::New();
   452     TEST(tc != NULL);
   455     TEST(tc != NULL);
   453 
   456 
   454 	TheTest.Start(_L("Power shutdown tests"));
   457 	TheTest.Start(_L("Power shutdown tests"));