cmmanager/cpdestinationplugin/tsrc/ut/testcpdestinationplugin.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
child 62 bb1f80fb7db2
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
     1 /*
       
     2 * Copyright (c) 2010 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 * Control Panel WLAN AP plugin unit testing.
       
    16 */
       
    17 
       
    18 #include <QStringList>
       
    19 #include <QtTest/QtTest>
       
    20 #include <cmmanagerdefines_shim.h>
       
    21 
       
    22 //#include "cmapplsettingsui.h"
       
    23 
       
    24 class HbDialog;
       
    25 class HbMainWindow;
       
    26 class HbAutoTestMainWindow;
       
    27 class HbDataFormModelItem;
       
    28 class CpBearerApPluginInterface;
       
    29 class CpPluginInterface;
       
    30 class HbView;
       
    31 
       
    32 class TestCpDestinationPlugin : public QObject
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36     public slots:
       
    37         // Test framework functions
       
    38         void initTestCase();
       
    39         void cleanupTestCase();
       
    40         void init();
       
    41         void cleanup();
       
    42 
       
    43     private slots:
       
    44         // Test cases
       
    45         void tcArrangeAps();
       
    46         void tcMoveAp();
       
    47         void tcShareDeleteAp();
       
    48         void tcAddDestination();
       
    49         void tcDestinationRename();
       
    50         void tcDestinationDelete();
       
    51         void tcCreateAndDeleteDestination();
       
    52         void tcDeleteUncat();
       
    53         void tcOpenDestinations();
       
    54 
       
    55     private:
       
    56         // Sub test cases
       
    57         void subCreateSettingsView();
       
    58         void subClickWidget(const QString &name);
       
    59         
       
    60         // Not Run cases
       
    61         void tcMoveProtected();
       
    62         
       
    63 
       
    64     private:
       
    65         // Code references
       
    66         
       
    67         // Test data
       
    68         HbAutoTestMainWindow              *mMainWindow;
       
    69         QSharedPointer<CpPluginInterface> mPlugin;
       
    70         HbView                            *mView;
       
    71 };