| 185 | } |
| 186 | |
| 187 | void TestSessionController::temporary() |
| 188 | { |
| 189 | ISession* s = Core::self()->activeSession(); |
| 190 | s->setTemporary(true); |
| 191 | const QString oldName = s->name(); |
| 192 | const auto dir = s->dataDirectory(); |
| 193 | |
| 194 | verifySessionDir(s, true); |
| 195 | Core::self()->sessionController()->cleanup(); |
| 196 | verifySessionDir(dir, oldName, false); |
| 197 | Core::self()->sessionController()->initialize(oldName); |
| 198 | QCOMPARE(Core::self()->activeSession()->name(), oldName); |
| 199 | // dir / UID can be different, hence don't verifySessionDir |
| 200 | } |
| 201 | |
| 202 | void TestSessionController::tryLockSession() |
| 203 | { |
nothing calls this directly
no test coverage detected