From dcbfe9d4c645778b93e8716c95c3e31163c76292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Fri, 17 Oct 2014 10:36:24 +0300 Subject: Added skeletons for C++ graph proxies and series Task-number: QTRD-3368 Change-Id: I85680bfca28e5ed1039526310fdf89717b1e84ae Reviewed-by: Miikka Heikkinen --- .../cpptest/q3dsurface-modelproxy/tst_proxy.cpp | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 tests/auto/cpptest/q3dsurface-modelproxy/tst_proxy.cpp (limited to 'tests/auto/cpptest/q3dsurface-modelproxy/tst_proxy.cpp') diff --git a/tests/auto/cpptest/q3dsurface-modelproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dsurface-modelproxy/tst_proxy.cpp new file mode 100644 index 00000000..c7c1dd83 --- /dev/null +++ b/tests/auto/cpptest/q3dsurface-modelproxy/tst_proxy.cpp @@ -0,0 +1,85 @@ +/**************************************************************************** +** +** Copyright (C) 2014 Digia Plc +** All rights reserved. +** For any questions to Digia, please use contact form at http://qt.digia.com +** +** This file is part of the QtDataVisualization module. +** +** Licensees holding valid Qt Enterprise licenses may use this file in +** accordance with the Qt Enterprise License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. +** +** If you have questions regarding the use of this file, please use +** contact form at http://qt.digia.com +** +****************************************************************************/ + +#include + +#include + +using namespace QtDataVisualization; + +class tst_proxy: public QObject +{ + Q_OBJECT + +private slots: + void initTestCase(); + void cleanupTestCase(); + void init(); + void cleanup(); + + void construct(); + + void initialProperties(); + void initializeProperties(); + void invalidProperties(); + +private: + QItemModelSurfaceDataProxy *m_proxy; +}; + +void tst_proxy::initTestCase() +{ +} + +void tst_proxy::cleanupTestCase() +{ +} + +void tst_proxy::init() +{ + m_proxy = new QItemModelSurfaceDataProxy(); +} + +void tst_proxy::cleanup() +{ + delete m_proxy; +} + +void tst_proxy::construct() +{ + QItemModelSurfaceDataProxy *proxy = new QItemModelSurfaceDataProxy(); + QVERIFY(proxy); + delete proxy; +} + +void tst_proxy::initialProperties() +{ + QVERIFY(m_proxy); +} + +void tst_proxy::initializeProperties() +{ + QVERIFY(m_proxy); +} + +void tst_proxy::invalidProperties() +{ +} + +QTEST_MAIN(tst_proxy) +#include "tst_proxy.moc" -- cgit v1.2.3