2
* Copyright 2012 Canonical Ltd.
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.
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.
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/>
17
* Authored by: Marco Trevisan (Treviño) <3v1n0@ubuntu.com>
20
#ifndef _UNITY_MOCK_SWITCHER_CONTROLLER_H
21
#define _UNITY_MOCK_SWITCHER_CONTROLLER_H
25
#include <gmock/gmock.h>
27
#include <SwitcherController.h>
28
#include <SwitcherView.h>
29
#include <AbstractLauncherIcon.h>
35
class MockSwitcherController : public Controller::Impl
38
typedef std::shared_ptr <MockSwitcherController> Ptr;
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());