| 74 | } |
| 75 | |
| 76 | void TestPluginEnabling::loadPluginCustomDefaults() |
| 77 | { |
| 78 | QFETCH(QString, pluginId); |
| 79 | QFETCH(bool, shouldBeEnabled); |
| 80 | |
| 81 | AutoTestShell::init({ |
| 82 | // set those as default which would not be by own metadata |
| 83 | // and do not set those which otherwise would, so both |
| 84 | QStringLiteral("test_globalnondefault"), |
| 85 | QStringLiteral("test_projectnondefault") |
| 86 | }); |
| 87 | // TODO: somehow currently the clean-up of the previous session is not yet done |
| 88 | // on the next data item test run, so the session with the name is still locked |
| 89 | // so we work-around that for now by using a custom session name per session |
| 90 | // TODO: consider adding a new bool temporarySession = true to TestCore::initialize() |
| 91 | TestCore::initialize(Core::NoUi, QStringLiteral("test_pluginenabling_custom_")+pluginId); |
| 92 | TestCore::self()->activeSession()->setTemporary(true); |
| 93 | m_pluginCtrl = Core::self()->pluginControllerInternal(); |
| 94 | |
| 95 | loadPlugin(pluginId, shouldBeEnabled); |
| 96 | |
| 97 | TestCore::shutdown(); |
| 98 | } |
| 99 | |
| 100 | void TestPluginEnabling::loadPluginNormalDefaults_data() |
| 101 | { |
nothing calls this directly
no test coverage detected