~pete-woods/hud/tweak-search-parameters

« back to all changes in this revision

Viewing changes to tests/unit/service/Mocks.h

  • Committer: Pete Woods
  • Date: 2014-02-18 13:35:12 UTC
  • Revision ID: pete.woods@canonical.com-20140218133512-bnrkd5sbd2jr6fpo
Make legacy queries return no results with an empty search string

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
        MOCK_METHOD0(sessionBus, QDBusConnection());
36
36
 
37
 
        MOCK_METHOD2(newQuery, Query::Ptr( const QString &, const QString &));
 
37
        MOCK_METHOD3(newQuery, Query::Ptr( const QString &, const QString &, Query::EmptyBehaviour));
38
38
 
39
39
        MOCK_METHOD1(newApplication, Application::Ptr(const QString &));
40
40
 
106
106
 
107
107
class MockWindowToken: public WindowToken {
108
108
public:
109
 
        MOCK_METHOD2(search, void(const QString &, QList<Result> &));
 
109
        MOCK_METHOD3(search, void(const QString &,
 
110
                                        Query::EmptyBehaviour emptyBehaviour, QList<Result> &));
110
111
 
111
112
        MOCK_METHOD1(execute, void(unsigned long long));
112
113