emailservices/emailstore/tsrc/message_store_test/src/ShutdownServerTest.cpp
changeset 1 12c456ceeff2
child 8 e1b6206813b4
equal deleted inserted replaced
0:8466d47a6819 1:12c456ceeff2
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Base class for all test cases class member functions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 //#include <BAUTILS.H>
       
    20 #include "ShutdownServerTest.h"
       
    21 //#include <ismsgstorepropertykeys.h>
       
    22 //#include "messagestoreclientserver.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 CShutdownServerTest* CShutdownServerTest::NewL( CStifLogger* aLog )
       
    27     {
       
    28     CShutdownServerTest* self = new(ELeave) CShutdownServerTest( aLog );
       
    29     CleanupStack::PushL( self );
       
    30     self->ConstructL();
       
    31     CleanupStack::Pop( self );
       
    32     return self;
       
    33     }
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // Constructor
       
    37 // -----------------------------------------------------------------------------
       
    38 CShutdownServerTest::CShutdownServerTest( CStifLogger* aLog ) : CAsyncTestCaseBase( aLog ) 
       
    39     {
       
    40     }
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // Destructor
       
    44 // -----------------------------------------------------------------------------
       
    45 CShutdownServerTest::~CShutdownServerTest()
       
    46     {
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // 2nd phase constructor
       
    51 // -----------------------------------------------------------------------------
       
    52 void CShutdownServerTest::ConstructL()
       
    53     {
       
    54     CAsyncTestCaseBase::ConstructL();
       
    55     }
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // ExecuteL : start executing the test case
       
    59 // -----------------------------------------------------------------------------
       
    60 TBool CShutdownServerTest::ExecuteL()
       
    61     {
       
    62     LogHeader( _L("Shutdown Server") );
       
    63     
       
    64     ShutdownServerL();
       
    65     WaitForServerToTerminate();
       
    66     
       
    67     //we are done 
       
    68     return ETrue;
       
    69     }
       
    70 
       
    71 
       
    72 //  End of File