satui/satapp/tsrc/ut_satapp/inc/ut_satappconfirmprovider.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     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 *
       
    16 */
       
    17 
       
    18 #ifndef UT_SATAPPCONFIRMPROVIDER_H
       
    19 #define UT_SATAPPCONFIRMPROVIDER_H
       
    20 
       
    21 // includes
       
    22 #include <QtTest/QtTest>
       
    23 #include <QObject>
       
    24 
       
    25 
       
    26 // forward declarations
       
    27 class SatAppConfirmProvider;
       
    28 
       
    29 
       
    30 
       
    31 // QTest class
       
    32 class Ut_SatAppConfirmProvider : public QObject
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36 public:
       
    37 
       
    38     Ut_SatAppConfirmProvider(
       
    39             QObject *parent = 0);
       
    40 
       
    41 private slots:
       
    42 
       
    43     void testConfirmCommand_data();
       
    44     void testConfirmCommand();
       
    45     void testConfirmFirstAction();
       
    46     void testConfirmSecondAction();
       
    47     void testConfirmAndClearScreen();
       
    48 
       
    49 };
       
    50 
       
    51 
       
    52 // internal helper class
       
    53 class ConfirmProviderTest: public QObject
       
    54 {
       
    55     Q_OBJECT
       
    56 
       
    57 public:
       
    58 
       
    59     ConfirmProviderTest();
       
    60     ~ConfirmProviderTest();
       
    61 
       
    62 public slots:
       
    63 
       
    64     void simulateFirstActionClicked();
       
    65     void simulateSecondActionClicked();
       
    66     void simulateClearScreen();
       
    67     void cleanup();
       
    68 
       
    69 public:
       
    70     
       
    71     // test data
       
    72     SatAppConfirmProvider *mConfirm;
       
    73 
       
    74 };
       
    75 
       
    76 
       
    77 #endif // UT_SATAPPCONFIRMPROVIDER_H