resourcemgmt/powerandmemorynotificationservice/tsrc/t_pwroffevents.cpp
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-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".
    16 //This test will be able to do what it is planned to do only if the shutdown client and server
    16 //This test will be able to do what it is planned to do only if the shutdown client and server
    17 //components are built with SYSLIBS_TEST macro defined.
    17 //components are built with SYSLIBS_TEST macro defined.
    18 #include <e32test.h>        //RTest
    18 #include <e32test.h>        //RTest
    19 #include <e32svr.h>         //RDebug
    19 #include <e32svr.h>         //RDebug
    20 #include <savenotf.h>       //RSaveSession, MSaveObserver, CSaveNotifier
    20 #include <savenotf.h>       //RSaveSession, MSaveObserver, CSaveNotifier
    21 #include <e32consf.h>		//for logging to file
       
    22 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    21 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    23 #include <shutdownsrv.h>    //CServShutdownServer
    22 #include <shutdownsrv.h>    //CServShutdownServer
    24 #else //SYMBIAN_ENABLE_SPLIT_HEADERS
    23 #else //SYMBIAN_ENABLE_SPLIT_HEADERS
    25 #include "shutdownsess.h" //CServShutdownServer
    24 #include "shutdownsess.h" //CServShutdownServer
    26 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    25 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
   287     ::OOMTestL();
   286     ::OOMTestL();
   288     }
   287     }
   289 
   288 
   290 TInt E32Main()
   289 TInt E32Main()
   291 	{
   290 	{
   292 	LogRTestToFile(TheTest);
       
   293     TheTest.Title();
       
   294 	__UHEAP_MARK;
   291 	__UHEAP_MARK;
   295 	CTrapCleanup* tc = CTrapCleanup::New();
   292 	CTrapCleanup* tc = CTrapCleanup::New();
   296     TEST(tc != NULL);
   293     TEST(tc != NULL);
   297 
   294 
   298 	TheTest.Start(_L("Power shutdown tests"));
   295 	TheTest.Start(_L("Power shutdown tests"));