cmmanager/connection_settings_shim/tsrc/ut/testcmmgrshim.h
changeset 20 9c97ad6591ae
child 40 c5b848e6c7d1
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
       
     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 * Header for Connection Settings Shim Unit Test program.
       
    16 */
       
    17 
       
    18 #include <QtTest/QtTest>
       
    19 
       
    20 #include <cmmanager_shim.h>
       
    21 
       
    22 class HbMainWindow;
       
    23 
       
    24 class TestCmMgrShim : public QObject
       
    25 {
       
    26     Q_OBJECT
       
    27 
       
    28     public slots:
       
    29         // Test framework functions
       
    30         void initTestCase();
       
    31         void cleanupTestCase();
       
    32         void init();
       
    33         void cleanup();
       
    34 
       
    35     private slots:
       
    36         // Test cases
       
    37         void tcResetSettings();
       
    38         void tcLegacyConnMethodWlan();
       
    39         void tcLegacyConnMethodGprs();
       
    40         void tcCmManagerBasicFails();
       
    41         void tcBasicDestination();
       
    42         void tcDestinationModify();
       
    43         void tcConnMethodSetBoolAttribute();
       
    44         void tcConnMethodSetIntAttribute();
       
    45         void tcConnMethodSetStringAttribute();
       
    46         void tcConnMethodWrongTypeAttributeRead();
       
    47         void tcConnMethodWrongTypeAttributeWrite();
       
    48         void tcConnectionMethodRefresh();
       
    49         void tcDestinationReadConnectionMethods();
       
    50         void tcDestinationRemoveConnectionMethod();
       
    51         void tcDestinationPriority();
       
    52         void tcDestinationMisc();
       
    53         void tcDestinationRefresh();
       
    54         void tcDestinationInvalidParams();
       
    55         
       
    56     private:
       
    57         // Sub test cases
       
    58         void deleteDestinations();
       
    59         void deleteConnectionMethods();
       
    60 
       
    61     private:
       
    62         // Test data
       
    63         CmManagerShim *mCmManagerShim;
       
    64 };