~3v1n0/unity/light-shortcuts

« back to all changes in this revision

Viewing changes to tests/MockSwitcherController.h

  • Committer: Marco Trevisan (Treviño)
  • Date: 2013-04-26 12:41:09 UTC
  • Revision ID: mail@3v1n0.net-20130426124109-t3b2shjah2omiqa2
Unity: Remove all the views, but the Shortcuts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2012 Canonical Ltd.
3
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify it
5
 
 * under the terms of the GNU General Public License version 3, as published
6
 
 * by the  Free Software Foundation.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful, but
9
 
 * WITHOUT ANY WARRANTY; without even the implied warranties of
10
 
 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
11
 
 * PURPOSE.  See the GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * version 3 along with this program.  If not, see
15
 
 * <http://www.gnu.org/licenses/>
16
 
 *
17
 
 * Authored by: Marco Trevisan (Treviño) <3v1n0@ubuntu.com>
18
 
 *
19
 
 */
20
 
#ifndef _UNITY_MOCK_SWITCHER_CONTROLLER_H
21
 
#define _UNITY_MOCK_SWITCHER_CONTROLLER_H
22
 
 
23
 
#include <memory>
24
 
 
25
 
#include <gmock/gmock.h>
26
 
 
27
 
#include <SwitcherController.h>
28
 
#include <SwitcherView.h>
29
 
#include <AbstractLauncherIcon.h>
30
 
 
31
 
namespace unity
32
 
{
33
 
namespace switcher
34
 
{
35
 
class MockSwitcherController : public Controller::Impl
36
 
{
37
 
public:
38
 
  typedef std::shared_ptr <MockSwitcherController> Ptr;
39
 
 
40
 
  MOCK_METHOD3(Show, void(ShowMode, SortMode, std::vector<launcher::AbstractLauncherIcon::Ptr>));
41
 
  MOCK_METHOD1(Hide, void(bool));
42
 
  MOCK_METHOD0(Visible, bool());
43
 
  MOCK_METHOD0(Next, void());
44
 
  MOCK_METHOD0(Prev, void());
45
 
  MOCK_METHOD1(Select, void(int));
46
 
  MOCK_METHOD0(GetView, unity::switcher::SwitcherView * ());
47
 
  MOCK_CONST_METHOD1(CanShowSwitcher, bool(const std::vector<launcher::AbstractLauncherIcon::Ptr> &));
48
 
  MOCK_METHOD0(NextDetail, void());
49
 
  MOCK_METHOD0(PrevDetail, void());
50
 
  MOCK_METHOD2(SetDetail, void(bool, unsigned int));
51
 
  MOCK_METHOD0(SelectFirstItem, void());
52
 
  MOCK_METHOD2(SetWorkspace, void(nux::Geometry, int));
53
 
  MOCK_METHOD0(ExternalRenderTargets, unity::ui::LayoutWindow::Vector ());
54
 
  MOCK_CONST_METHOD0(GetSwitcherInputWindowId, guint());
55
 
  MOCK_CONST_METHOD0(IsShowDesktopDisabled, bool());
56
 
  MOCK_METHOD1(SetShowDesktopDisabled, void(bool));
57
 
  MOCK_CONST_METHOD0(StartIndex, int());
58
 
};
59
 
}
60
 
}
61
 
 
62
 
#endif