QmlProfiler: Add test for debug messages model

Change-Id: Ie6872646c09a89a417379a3e1f551526234ab26a
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-05-30 11:59:32 +02:00
parent 1fc9bcc025
commit 652846c5c7
7 changed files with 236 additions and 0 deletions

View File

@@ -29,6 +29,10 @@
#include "qmlprofilertool.h"
#include "qmlprofilertimelinemodel.h"
#ifdef WITH_TESTS
#include "tests/debugmessagesmodel_test.h"
#endif
#include <extensionsystem/pluginmanager.h>
#include <utils/hostosinfo.h>
@@ -72,5 +76,14 @@ QmlProfilerSettings *QmlProfilerPlugin::globalSettings()
return qmlProfilerGlobalSettings();
}
QList<QObject *> QmlProfiler::Internal::QmlProfilerPlugin::createTestObjects() const
{
QList<QObject *> tests;
#ifdef WITH_TESTS
tests << new DebugMessagesModelTest;
#endif
return tests;
}
} // namespace Internal
} // namespace QmlProfiler