phoneengine/networkhandlingstarter/tsrc/ut_networkhandlingstarter/src/ut_networkhandlingstarter.cpp
changeset 27 2f8f8080a020
equal deleted inserted replaced
22:6bb1b21d2484 27:2f8f8080a020
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 #include <ut_networkhandlingstarter.h>
       
    18 #include <qtestmains60.h>
       
    19 #include <networkhandlingstarter.h>
       
    20 
       
    21 /*!
       
    22   ut_networkhandlingstarter::ut_networkhandlingstarter
       
    23  */
       
    24 ut_networkhandlingstarter::ut_networkhandlingstarter() 
       
    25     : m_NetworkHandlingStarter(0)
       
    26 {
       
    27 }
       
    28 
       
    29 /*!
       
    30   ut_networkhandlingstarter::~ut_networkhandlingstarter
       
    31  */
       
    32 ut_networkhandlingstarter::~ut_networkhandlingstarter()
       
    33 {
       
    34 }
       
    35 
       
    36 /*!
       
    37   ut_networkhandlingstarter::init
       
    38  */
       
    39 void ut_networkhandlingstarter::init()
       
    40 {
       
    41     initialize();
       
    42     
       
    43     m_NetworkHandlingStarter = new NetworkHandlingStarter();
       
    44     
       
    45     QVERIFY(verify());
       
    46 }
       
    47 
       
    48 /*!
       
    49   ut_networkhandlingstarter::cleanup
       
    50  */
       
    51 void ut_networkhandlingstarter::cleanup()
       
    52 {
       
    53     delete m_NetworkHandlingStarter;
       
    54     m_NetworkHandlingStarter = 0;
       
    55     
       
    56     reset();
       
    57 }
       
    58 
       
    59 /*!
       
    60   ut_networkhandlingstarter::t_test
       
    61  */
       
    62 void ut_networkhandlingstarter::t_test()
       
    63 {
       
    64     m_NetworkHandlingStarter->start();
       
    65     m_NetworkHandlingStarter->start();
       
    66 }
       
    67 
       
    68 QTEST_MAIN_S60(ut_networkhandlingstarter)