phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandler/src/ut_infowidgetsathandler.cpp
changeset 22 6bb1b21d2484
child 27 2f8f8080a020
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetsathandler/src/ut_infowidgetsathandler.cpp	Fri Apr 16 14:58:25 2010 +0300
@@ -0,0 +1,95 @@
+/*
+* Copyright (c) 2009 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:
+*
+*/
+#include "ut_infowidgetsathandler.h"
+#include "infowidgetsathandler.h"
+#include "qtestmains60.h"
+
+/*!
+  UT_InfoWidgetSatHandler::UT_InfoWidgetSatHandler
+ */
+UT_InfoWidgetSatHandler::UT_InfoWidgetSatHandler() 
+    : 
+    m_satHandler(0)
+{
+    
+}
+
+
+/*!
+  UT_InfoWidgetSatHandler::~UT_InfoWidgetSatHandler
+ */
+UT_InfoWidgetSatHandler::~UT_InfoWidgetSatHandler()
+{
+    delete m_satHandler;
+}
+
+/*!
+  UT_InfoWidgetSatHandler::init
+ */
+void UT_InfoWidgetSatHandler::init()
+{
+    initialize();
+    
+    m_satHandler =  new InfoWidgetSatHandler();
+    
+    QVERIFY(verify());
+}
+
+
+/*!
+  UT_InfoWidgetSatHandler::cleanup
+ */
+void UT_InfoWidgetSatHandler::cleanup()
+{
+    reset();
+    
+    delete m_satHandler;
+    m_satHandler = 0;
+}
+
+
+/*!
+  UT_InfoWidgetSatHandler::t_satDisplayText
+ */
+void UT_InfoWidgetSatHandler::t_satDisplayText()
+{
+    const QString& satDisplayText = m_satHandler->satDisplayText();
+    QVERIFY(satDisplayText == QString("SAT DISPLAY TEXT"));
+}
+
+
+/*!
+  UT_InfoWidgetSatHandler::t_setSatDisplayText
+ */
+void UT_InfoWidgetSatHandler::t_setSatDisplayText()
+{
+    QString satDisplayText("satDisplayText");
+    m_satHandler->setSatDisplayText(satDisplayText);
+    
+    QVERIFY(satDisplayText == m_satHandler->satDisplayText());
+}
+
+
+/*!
+  UT_InfoWidgetSatHandler::t_logCurrentInfo
+ */
+void UT_InfoWidgetSatHandler::t_logCurrentInfo()
+{
+    m_satHandler->logCurrentInfo();
+}
+
+QTEST_MAIN_S60(UT_InfoWidgetSatHandler)