~mir-team/qtmir/mir-0.16-rebuild

« back to all changes in this revision

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

  • Committer: Daniel d'Andrada
  • Date: 2014-12-10 10:33:48 UTC
  • mto: This revision was merged to the branch mainline in revision 294.
  • Revision ID: daniel.dandrada@canonical.com-20141210103348-mn2kmwtxxo0y8yyw
removed :PATH from command line

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 mir {
 
27
namespace shell {
 
28
 
 
29
class MockFocusController : public FocusController
 
30
{
 
31
public:
 
32
    MOCK_METHOD0(focus_next, void());
 
33
    MOCK_CONST_METHOD0(focussed_application, std::weak_ptr<scene::Session>());
 
34
    MOCK_METHOD1(set_focus_to, void(std::shared_ptr<scene::Session>const&));
 
35
};
 
36
 
 
37
} // namespace shell
 
38
} // namespace mir
 
39
 
 
40
#endif // MOCK_MIR_SHELL_FOCUS_CONTROLLER_H_