diff -r 594d59766373 -r 7d48bed6ce0c satui/satapp/tsrc/ut_satapp/inc/ut_satappmainhandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/satui/satapp/tsrc/ut_satapp/inc/ut_satappmainhandler.h Tue Aug 31 15:45:17 2010 +0300 @@ -0,0 +1,77 @@ +/* +* 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_SATAPPMAINHANDLER_H +#define UT_SATAPPMAINHANDLER_H + +#include +#include + + +// Class forwards +class HbMainWindow; +class SatAppMainHandler; + +/** + * Satapp unit test class. + * + * @since S60 + */ +class Ut_SatAppMainHandler : public QObject +{ + Q_OBJECT + +public: + + Ut_SatAppMainHandler( + HbMainWindow* mainWindow, QObject *parent = 0); + + virtual ~Ut_SatAppMainHandler(); + +private slots: + /** + * Called before the first testfunction is executed. + * Handles the SetUpMenu command. + */ + void initTestCase(); + + /** + * Called after the last testfunction has been executed. + * + */ + void cleanupTestCase(); + + /** + * Test SatAppMainHandler's constructor. + * + */ + void testCreateMainHandler(); + + /** + * Test SatAppMainHandler's constructor in offline. + * + */ + void testCreateMainHandler_OfflineMode(); + +private: + + HbMainWindow* mMainWindow; // not own + SatAppMainHandler *mMainHandler; + +}; + +#endif // UT_SATAPPMAINHANDLER_H