on xenial help sign in
sessionStarting/Stopping
090a7f6Nick Dedekind
tests/mocks/Unity/Application/SessionManager.cpp+2−2
@@ -40,9 +40,9 @@ MirSessionItem *SessionManager::createSession(const QString& name,
40{
40{
41 MirSessionItem* session = new MirSessionItem(name, screenshot);
41 MirSessionItem* session = new MirSessionItem(name, screenshot);
42 connect(session, &MirSessionItem::aboutToBeDestroyed, this, [&] {
42 connect(session, &MirSessionItem::aboutToBeDestroyed, this, [&] {
43− Q_EMIT sessionDestroyed(qobject_cast<MirSessionItem*>(sender()));
43+ Q_EMIT sessionStopping(qobject_cast<MirSessionItem*>(sender()));
44 });
44 });
45
45
46− Q_EMIT sessionCreated(session);
46+ Q_EMIT sessionStarting(session);
47 return session;
47 return session;
48}
48}
tests/mocks/Unity/Application/SessionManager.h+2−2
@@ -32,8 +32,8 @@ public:
32 MirSessionItem* createSession(const QString& name, const QUrl& screenshot);
32 MirSessionItem* createSession(const QString& name, const QUrl& screenshot);
33
33
34Q_SIGNALS:
34Q_SIGNALS:
35− void sessionCreated(MirSessionItem *session);
35+ void sessionStarting(MirSessionItem *session);
36− void sessionDestroyed(MirSessionItem *session);
36+ void sessionStopping(MirSessionItem *session);
37
37
38private:
38private:
39 static SessionManager *the_session_manager;
39 static SessionManager *the_session_manager;
tests/qmltests/Stages/tst_SessionContainer.qml+1−1
@@ -41,7 +41,7 @@ Item {
41 SignalSpy {
41 SignalSpy {
42 id: sessionSpy
42 id: sessionSpy
43 target: SessionManager
43 target: SessionManager
44− signalName: "sessionDestroyed"
44+ signalName: "sessionStopping"
45 }
45 }
46
46
47 UT.UnityTestCase {
47 UT.UnityTestCase {