satui/satapp/tsrc/ut_satapp/inc/ut_satapppopupprovider.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_SATAPPPOPUPPROVIDER_H
       
    19 #define UT_SATAPPPOPUPPROVIDER_H
       
    20 
       
    21 // includes
       
    22 #include <QtTest/QtTest>
       
    23 #include <QObject>
       
    24 
       
    25 
       
    26 // forward declarations
       
    27 class SatAppPopupProvider;
       
    28 
       
    29 
       
    30 
       
    31 // QTest class
       
    32 class Ut_SatAppPopupProvider : public QObject
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36 public:
       
    37 
       
    38     Ut_SatAppPopupProvider(
       
    39             QObject *parent = 0);
       
    40 
       
    41 private slots:
       
    42 
       
    43 
       
    44     void testDisplayTextAndOk_data();
       
    45     void testDisplayTextAndOk();
       
    46     
       
    47     void testDisplayTextAndCancel_data();
       
    48     void testDisplayTextAndCancel();
       
    49   
       
    50     void testDisplayTextAndTimeout();
       
    51     
       
    52     void testNotificationWithCancel_data();
       
    53     void testNotificationWithCancel();
       
    54   
       
    55     void testNotification_data();
       
    56     void testNotification();
       
    57 
       
    58 };
       
    59 
       
    60 
       
    61 // internal helper class
       
    62 class PopupProviderTest: public QObject
       
    63 {
       
    64     Q_OBJECT
       
    65 
       
    66 public:
       
    67 
       
    68     PopupProviderTest();
       
    69     ~PopupProviderTest();
       
    70 
       
    71 public slots:
       
    72 
       
    73     bool simulateOkClicked();
       
    74     bool simulateCancelClicked();
       
    75     void cleanup();
       
    76 
       
    77 public:
       
    78     
       
    79     // test data
       
    80     SatAppPopupProvider *mPopup;
       
    81 
       
    82 };
       
    83 
       
    84 
       
    85 #endif // UT_SATAPPPOPUPPROVIDER_H