~ci-train-bot/qtmir/qtmir-ubuntu-zesty-2457

« back to all changes in this revision

Viewing changes to tests/framework/mock_task_controller.h

  • Committer: Bileto Bot
  • Author(s): Daniel d'Andrada
  • Date: 2017-02-23 11:18:40 UTC
  • mfrom: (606.1.2 byeSessionManager)
  • Revision ID: ci-train-bot@canonical.com-20170223111840-3pvx8w1eqy5i2v2n
Make TaskController absorb SessionManager

So that we can later on provide fake, internal, mir clients for tests
just by replacing the TaskController with a fake implementation.

Approved by: Gerry Boland, Unity8 CI Bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
{
29
29
struct MockTaskController : public qtmir::TaskController
30
30
{
31
 
    MockTaskController();
 
31
    MockTaskController(std::shared_ptr<qtmir::PromptSessionManager> promptSessionManager, QObject *parent = nullptr);
32
32
    virtual ~MockTaskController();
33
33
 
34
34
    MOCK_METHOD2(appIdHasProcessId, bool(const QString&, pid_t));