satui/satapp/tsrc/ut_satapp/inc/ut_satapppopupprovider.h
branchRCL_3
changeset 19 7d48bed6ce0c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/satui/satapp/tsrc/ut_satapp/inc/ut_satapppopupprovider.h	Tue Aug 31 15:45:17 2010 +0300
@@ -0,0 +1,85 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+#ifndef UT_SATAPPPOPUPPROVIDER_H
+#define UT_SATAPPPOPUPPROVIDER_H
+
+// includes
+#include <QtTest/QtTest>
+#include <QObject>
+
+
+// forward declarations
+class SatAppPopupProvider;
+
+
+
+// QTest class
+class Ut_SatAppPopupProvider : public QObject
+{
+    Q_OBJECT
+
+public:
+
+    Ut_SatAppPopupProvider(
+            QObject *parent = 0);
+
+private slots:
+
+
+    void testDisplayTextAndOk_data();
+    void testDisplayTextAndOk();
+    
+    void testDisplayTextAndCancel_data();
+    void testDisplayTextAndCancel();
+  
+    void testDisplayTextAndTimeout();
+    
+    void testNotificationWithCancel_data();
+    void testNotificationWithCancel();
+  
+    void testNotification_data();
+    void testNotification();
+
+};
+
+
+// internal helper class
+class PopupProviderTest: public QObject
+{
+    Q_OBJECT
+
+public:
+
+    PopupProviderTest();
+    ~PopupProviderTest();
+
+public slots:
+
+    bool simulateOkClicked();
+    bool simulateCancelClicked();
+    void cleanup();
+
+public:
+    
+    // test data
+    SatAppPopupProvider *mPopup;
+
+};
+
+
+#endif // UT_SATAPPPOPUPPROVIDER_H