~mzanetti/unity8/panel-button-fixes

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Application/MirSurface.cpp

  • Committer: CI Train Bot
  • Author(s): Albert Astals Cid, Michał Sawicz
  • Date: 2015-09-22 12:57:02 UTC
  • mfrom: (1752.8.47 origin/autopkgtests)
  • Revision ID: ci-train-bot@canonical.com-20150922125702-wboqbqanpto9l9s2
Add DEP-8 test for all our UI and unit tests

Some refactoring was needed:
- added a basic Ubuntu.Web mock
- made plugin path an environment, not a compiled-in bit
- moved Unity.Application resources into .qrc

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
        Mir::Type type,
23
23
        Mir::State state,
24
24
        const QUrl& screenshot,
25
 
        const QString &qmlFilePath)
 
25
        const QUrl &qmlFilePath)
26
26
    : unity::shell::application::MirSurfaceInterface(nullptr)
27
27
    , m_name(name)
28
28
    , m_type(type)
87
87
    }
88
88
}
89
89
 
90
 
QString MirSurface::qmlFilePath() const
 
90
QUrl MirSurface::qmlFilePath() const
91
91
{
92
92
    return m_qmlFilePath;
93
93
}