on xenial help sign in
Adapt mock to new api.
commite5182f202c0816faa8d24fc3cc841e6185281d77 authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 27 Jun 2014, 09:58 (12 years ago) parent5454d2a
2 files changed+7
tests/mocks/Unity/fake_scope.cpp+5 tests/mocks/Unity/fake_scope.h+2
tests/mocks/Unity/fake_scope.cpp+5
@@ -155,6 +155,11 @@ bool Scope::hasDepartments() const
155155 return true;
156156}
157157
158+QVariantMap Scope::customizations() const
159+{
160+ return QVariantMap();
161+}
162+
158163unity::shell::scopes::DepartmentInterface* Scope::getDepartment(const QString& id)
159164{
160165 if (id.isEmpty())
tests/mocks/Unity/fake_scope.h+2
@@ -64,6 +64,8 @@ public:
6464 Q_INVOKABLE unity::shell::scopes::DepartmentInterface* getDepartment(const QString& id) override;
6565 Q_INVOKABLE void loadDepartment(const QString& id) override;
6666
67+ QVariantMap customizations() const override;
68+
6769protected:
6870
6971 QString m_id;