aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testdtorinformation.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-24 10:19:10 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-24 10:19:10 -0300
commit6d8dea54288cf7864c602b826b5be90b4a0b95f6 (patch)
tree54984c56807b15fad39b8e372699faa781b07188 /tests/testdtorinformation.h
parent49610841579e8a7ef614477a0e73c78502c2afc9 (diff)
Added methods to set and check for protected and virtual destructor
on AbstractMetaClass objects. Also added tests for this.
Diffstat (limited to 'tests/testdtorinformation.h')
-rw-r--r--tests/testdtorinformation.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/testdtorinformation.h b/tests/testdtorinformation.h
new file mode 100644
index 000000000..2e378001b
--- /dev/null
+++ b/tests/testdtorinformation.h
@@ -0,0 +1,41 @@
+/*
+* This file is part of the API Extractor project.
+*
+* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+*
+* Contact: PySide team <contact@pyside.org>
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* version 2 as published by the Free Software Foundation.
+*
+* This program is distributed in the hope that it will be useful, but
+* WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA
+*
+*/
+
+#ifndef TESTDTORINFORMATION_H
+#define TESTDTORINFORMATION_H
+
+#include <QObject>
+
+class AbstractMetaBuilder;
+
+class TestDtorInformation: public QObject
+{
+ Q_OBJECT
+private slots:
+ void testDtorIsPrivate();
+ void testDtorIsProtected();
+ void testDtorIsVirtual();
+ void testClassWithVirtualDtorIsPolymorphic();
+};
+
+#endif // TESTDTORINFORMATION_H