on xenial help sign in
fix createSession
be0ab1bMichael Zanetti
tests/mocks/Unity/Application/ApplicationInfo.cpp+1−3
@@ -73,8 +73,7 @@ void ApplicationInfo::createSession()
73{
73{
74 if (m_session || state() == ApplicationInfo::Stopped) { return; }
74 if (m_session || state() == ApplicationInfo::Stopped) { return; }
75
75
76− QUrl screenshotUrl = QString("file://%1").arg(m_screenshotFileName);
77− setSession(SessionManager::singleton()->createSession(appId(), screenshotUrl));
76+ setSession(SessionManager::singleton()->createSession(appId(), m_screenshotFileName));
78}
77}
79
78
80void ApplicationInfo::destroySession()
79void ApplicationInfo::destroySession()
@@ -101,7 +100,6 @@ void ApplicationInfo::setSession(Session* session)
101 if (m_session) {
100 if (m_session) {
102 m_session->setApplication(this);
101 m_session->setApplication(this);
103 m_session->setParent(this);
102 m_session->setParent(this);
104− m_session->setScreenshot(m_screenshotFileName);
105 SessionManager::singleton()->registerSession(m_session);
103 SessionManager::singleton()->registerSession(m_session);
106 connect(m_session, &Session::surfaceChanged,
104 connect(m_session, &Session::surfaceChanged,
107 this, &ApplicationInfo::onSessionSurfaceChanged);
105 this, &ApplicationInfo::onSessionSurfaceChanged);