on xenial help sign in
"implement" Scope::resetFilters in the mock
ddec1bbAlbert Astals Cid
tests/mocks/Unity/fake_scope.cpp+5
@@ -262,6 +262,11 @@ void Scope::refresh()
262 Q_EMIT refreshed();
262 Q_EMIT refreshed();
263}
263}
264
264
265+void Scope::resetFilters()
266+{
267+ qWarning() << "Scope::resetFilters is unimplemented";
268+}
269+
265void Scope::activateAction(QVariant const& /*result*/, QString const& /*categoryId*/, QString const& /*actionId*/)
270void Scope::activateAction(QVariant const& /*result*/, QString const& /*categoryId*/, QString const& /*actionId*/)
266{
271{
267 qFatal("Using Scope::activateAction");
272 qFatal("Using Scope::activateAction");
tests/mocks/Unity/fake_scope.h+3−1
@@ -83,7 +83,9 @@ public:
83
83
84 Q_INVOKABLE void refresh() override;
84 Q_INVOKABLE void refresh() override;
85
85
86+ Q_INVOKABLE void resetFilters() override;
87+
86− Q_INVOKABLE virtual void activateAction(QVariant const& result, QString const& categoryId, QString const& actionId) override;
88+ Q_INVOKABLE void activateAction(QVariant const& result, QString const& categoryId, QString const& actionId) override;
87
89
88Q_SIGNALS:
90Q_SIGNALS:
89 // These are not in the Interface, here for testing benefits
91 // These are not in the Interface, here for testing benefits