diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-05-25 16:15:05 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:03 -0300 |
commit | 2060c23e8d2d80c721dd4eb31a777f4be0fefdfc (patch) | |
tree | 7f2ac2dc24ef24f63befbc51fc17e091244f3446 /tests/testutil.h | |
parent | 6ddb2e91990b119017819c6290ca6de6c6b6ea21 (diff) |
Created unittest to flag "since".
Diffstat (limited to 'tests/testutil.h')
-rw-r--r-- | tests/testutil.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testutil.h b/tests/testutil.h index 1aed98349..7639a2535 100644 --- a/tests/testutil.h +++ b/tests/testutil.h @@ -31,10 +31,11 @@ class TestUtil { public: - TestUtil(const char* cppCode, const char* xmlCode, bool silent = true) : m_builder(0) + TestUtil(const char* cppCode, const char* xmlCode, bool silent = true, double apiVersion = 0) : m_builder(0) { ReportHandler::setSilent(silent); m_builder = new AbstractMetaBuilder; + TypeDatabase::instance()->setApiVersion(apiVersion); QBuffer buffer; // parse typesystem buffer.setData(xmlCode); |