on xenial help sign in
sessionStarting/Stopping
commit090a7f6b5907a931dd7964b349e3616caa7be4f1 authorNick Dedekind <nicholas.dedekind@gmail.com> dateTue 26 Aug 2014, 13:35 (12 years ago) parent86ea5be
3 files changed+5−5
tests/mocks/Unity/Application/SessionManager.cpp+2−2 tests/mocks/Unity/Application/SessionManager.h+2−2 tests/qmltests/Stages/tst_SessionContainer.qml+1−1
tests/mocks/Unity/Application/SessionManager.cpp+2−2
@@ -40,9 +40,9 @@ MirSessionItem *SessionManager::createSession(const QString& name,
4040{
4141 MirSessionItem* session = new MirSessionItem(name, screenshot);
4242 connect(session, &MirSessionItem::aboutToBeDestroyed, this, [&] {
43− Q_EMIT sessionDestroyed(qobject_cast<MirSessionItem*>(sender()));
43+ Q_EMIT sessionStopping(qobject_cast<MirSessionItem*>(sender()));
4444 });
4545
46− Q_EMIT sessionCreated(session);
46+ Q_EMIT sessionStarting(session);
4747 return session;
4848}
tests/mocks/Unity/Application/SessionManager.h+2−2
@@ -32,8 +32,8 @@ public:
3232 MirSessionItem* createSession(const QString& name, const QUrl& screenshot);
3333
3434Q_SIGNALS:
35− void sessionCreated(MirSessionItem *session);
36− void sessionDestroyed(MirSessionItem *session);
35+ void sessionStarting(MirSessionItem *session);
36+ void sessionStopping(MirSessionItem *session);
3737
3838private:
3939 static SessionManager *the_session_manager;
tests/qmltests/Stages/tst_SessionContainer.qml+1−1
@@ -41,7 +41,7 @@ Item {
4141 SignalSpy {
4242 id: sessionSpy
4343 target: SessionManager
44− signalName: "sessionDestroyed"
44+ signalName: "sessionStopping"
4545 }
4646
4747 UT.UnityTestCase {