diff options
author | Adrian Yanes <ext-adrian.yanes@nokia.com> | 2010-06-17 12:49:05 +0300 |
---|---|---|
committer | Daniel d'Andrada <daniel.dandrada@nokia.com> | 2010-06-24 09:46:17 +0300 |
commit | 85161a08258d88bb71d1cea783f7dfa4144407d4 (patch) | |
tree | 8be2ea82020d41d5e511ecb2b24f7c0f637b2e29 /tests/ut_mbanner/ut_mbanner.h | |
parent | b831818a749a7968bb734f12ddbdb984cc6ac983 (diff) |
Changes: MBanner - small improvements
RevBy: Daniel d'Andrada
Details:
documentation improved, unit test added, code style reviewed.
Diffstat (limited to 'tests/ut_mbanner/ut_mbanner.h')
-rw-r--r-- | tests/ut_mbanner/ut_mbanner.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/ut_mbanner/ut_mbanner.h b/tests/ut_mbanner/ut_mbanner.h new file mode 100644 index 00000000..d8164ca0 --- /dev/null +++ b/tests/ut_mbanner/ut_mbanner.h @@ -0,0 +1,48 @@ +/*************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (directui@nokia.com) +** +** This file is part of libmeegotouch. +** +** If you have questions regarding the use of this file, please contact +** Nokia at directui@nokia.com. +** +** This library is free software; you can redistribute it and/or +** modify it under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation +** and appearing in the file LICENSE.LGPL included in the packaging +** of this file. +** +****************************************************************************/ + +#ifndef UT_MBANNER_H +#define UT_MBANNER_H + +#include <QtTest/QtTest> +#include <QObject> +#include "mbanner.h" + +class Ut_MBanner : public QObject +{ + Q_OBJECT + +private slots: + void init(); + void cleanup(); + void initTestCase(); + void cleanupTestCase(); + + void testTitle(); + void testSubTitle(); + void testIcon(); + void testBannerCreation(); + void testBannerClicking(); + +private: + MBanner *m_subject; + MBanner *m_tmp; +}; + +#endif |