~dandrader/qtmir/keyState

« back to all changes in this revision

Viewing changes to tests/modules/common/mock_focus_controller.h

  • Committer: Gerry Boland
  • Date: 2014-07-01 13:38:06 UTC
  • mto: This revision was merged to the branch mainline in revision 158.
  • Revision ID: gerry.boland@canonical.com-20140701133806-lwfnplkijthydzj4
Update QML plugin: rename to Unity.Application, merge latest unity-mir changes, add tests (not passing yet) and use category logging

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2014 Canonical, Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it under
 
5
 * the terms of the GNU Lesser General Public License version 3, as published by
 
6
 * the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but WITHOUT
 
9
 * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
 
10
 * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
 * Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 */
 
17
 
 
18
#ifndef MOCK_MIR_SHELL_FOCUS_CONTROLLER_H
 
19
#define MOCK_MIR_SHELL_FOCUS_CONTROLLER_H
 
20
 
 
21
#include <mir/shell/focus_controller.h>
 
22
#include <gmock/gmock.h>
 
23
 
 
24
#include <string>
 
25
 
 
26
namespace testing
 
27
{
 
28
class MockFocusController : public mir::shell::FocusController
 
29
{
 
30
public:
 
31
    MOCK_METHOD0(focus_next, void());
 
32
    MOCK_CONST_METHOD0(focussed_application, std::weak_ptr<mir::scene::Session>());
 
33
    MOCK_METHOD1(set_focus_to, void(std::shared_ptr<mir::scene::Session>const&));
 
34
};
 
35
}
 
36
 
 
37
#endif // MOCK_MIR_SHELL_FOCUS_CONTROLLER_H_