~alecu/unity-scope-click/uninstallable-scopes

« back to all changes in this revision

Viewing changes to scope/tests/test_query.cpp

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2014-06-12 15:59:36 UTC
  • mfrom: (279.2.4 local-keywords)
  • Revision ID: tarmac-20140612155936-0yuldzrqj4qfui5g
Get the Keywrods from the .desktop file.
Check for the search string in the Keywords.
Don't use QString for checking against the app title. Fixes: https://bugs.launchpad.net/bugs/1316237.

Approved by PS Jenkins bot, Pawel Stolowski.

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
    };
207
207
    MockIndex mock_index(packages);
208
208
    scopes::SearchMetadata metadata("en_EN", "phone");
209
 
    std::set<std::string> no_installed_packages;
210
209
    const unity::scopes::CannedQuery query("foo.scope", FAKE_QUERY, "");
211
210
    MockQueryRun q(query, mock_index, metadata);
212
211
    auto reply = scopes::SearchReplyProxy();
213
 
    EXPECT_CALL(q, add_available_apps(reply, no_installed_packages, _));
 
212
    EXPECT_CALL(q, add_available_apps(reply, _, _));
214
213
 
215
214
    q.run(reply);
216
215
}