aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutil.h')
-rw-r--r--tests/testutil.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/testutil.h b/tests/testutil.h
index 640a9f78a..775f3a1c9 100644
--- a/tests/testutil.h
+++ b/tests/testutil.h
@@ -31,12 +31,16 @@
class TestUtil
{
public:
- TestUtil(const char* cppCode, const char* xmlCode, bool silent = true, double apiVersion = 0) : m_builder(0)
+ TestUtil(const char* cppCode, const char* xmlCode,
+ bool silent = true, double apiVersion = 0,
+ QStringList dropTypeEntries = QStringList())
+ : m_builder(0)
{
ReportHandler::setSilent(silent);
m_builder = new AbstractMetaBuilder;
TypeDatabase* td = TypeDatabase::instance(true);
td->setApiVersion(apiVersion);
+ td->setDropTypeEntries(dropTypeEntries);
QBuffer buffer;
// parse typesystem
buffer.setData(xmlCode);