/* * Copyright 2012 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * version 3 along with this program. If not, see * * * Authored by: Marco Trevisan (TreviƱo) <3v1n0@ubuntu.com> * */ #ifndef _UNITY_MOCK_SWITCHER_CONTROLLER_H #define _UNITY_MOCK_SWITCHER_CONTROLLER_H #include #include #include #include #include namespace unity { namespace switcher { class MockSwitcherController : public Controller::Impl { public: typedef std::shared_ptr Ptr; virtual ~MockSwitcherController() {} MOCK_METHOD3(Show, void(ShowMode, SortMode, std::vector)); MOCK_METHOD1(Hide, void(bool)); MOCK_METHOD0(Visible, bool()); MOCK_METHOD0(Next, void()); MOCK_METHOD0(Prev, void()); MOCK_METHOD1(Select, void(int)); MOCK_METHOD0(GetView, unity::switcher::SwitcherView * ()); MOCK_CONST_METHOD1(CanShowSwitcher, bool(const std::vector &)); MOCK_METHOD0(NextDetail, void()); MOCK_METHOD0(PrevDetail, void()); MOCK_METHOD0(SelectFirstItem, void()); MOCK_METHOD2(SetWorkspace, void(nux::Geometry, int)); MOCK_CONST_METHOD0(ExternalRenderTargets, unity::ui::LayoutWindow::Vector const&()); MOCK_CONST_METHOD0(StartIndex, int()); }; } } #endif