diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-02-16 08:22:04 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:15 -0300 |
commit | 6fda7c1130e1ca7512ea2936ce2336722381fe07 (patch) | |
tree | 7c8240502fde9a37df15adae1cfc23be711c28a0 /tests/testutil.h | |
parent | eab5d72e3f7727f5726fa49267985cfcbd8e2c07 (diff) |
Added a test for dropped type system entries.
Also updated the TestUtil class to deal with dropped entries.
Diffstat (limited to 'tests/testutil.h')
-rw-r--r-- | tests/testutil.h | 6 |
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); |