resourcemgmt/powerandmemorynotificationservice/tsrc/t_shutdownserver.cpp
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-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".
    14 //
    14 //
    15 
    15 
    16 #include <e32test.h>        //RTest
    16 #include <e32test.h>        //RTest
    17 #include <e32svr.h>         //RDebug
    17 #include <e32svr.h>         //RDebug
    18 #include <savenotf.h>       //RSaveSession, MSaveObserver, CSaveNotifier
    18 #include <savenotf.h>       //RSaveSession, MSaveObserver, CSaveNotifier
    19 #include <e32consf.h>		//for logging to file
       
    20 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    19 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    21 #include <shutdownsrv.h>    //CServShutdownServer
    20 #include <shutdownsrv.h>    //CServShutdownServer
    22 #else //SYMBIAN_ENABLE_SPLIT_HEADERS
    21 #else //SYMBIAN_ENABLE_SPLIT_HEADERS
    23 #include "shutdownsess.h" //CServShutdownServer
    22 #include "shutdownsess.h" //CServShutdownServer
    24 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    23 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
   293     ::TestShutDownSrvObserverFunctions();
   292     ::TestShutDownSrvObserverFunctions();
   294     }
   293     }
   295 
   294 
   296 TInt E32Main()
   295 TInt E32Main()
   297 	{
   296 	{
   298 	LogRTestToFile(TheTest);
       
   299     TheTest.Title();
       
   300 	CTrapCleanup* tc = CTrapCleanup::New();
   297 	CTrapCleanup* tc = CTrapCleanup::New();
   301     TEST(tc != NULL);
   298     TEST(tc != NULL);
   302 
   299 
   303 	TheTest.Start(_L("Power shutdown tests"));
   300 	TheTest.Start(_L("Power shutdown tests"));
   304 
   301