1
#ifndef UNITYSHELL_MOCK_H
2
#define UNITYSHELL_MOCK_H
4
#include <compiz_mock/core/core.h>
5
#include <sigc++/sigc++.h>
8
#include "SwitcherControllerMock.h"
14
class UnityWindowMock : public CompWindowMock
17
static UnityWindowMock *get(CompWindowMock *window)
19
return static_cast<UnityWindowMock*>(window);
23
sigc::signal<void> being_destroyed;
26
class UnityScreenMock : public CompScreenMock
31
switcher_controller_ = std::make_shared<switcher::ControllerMock>();
37
SetUpAndShowSwitcher_count_ = 0;
38
switcher_controller_->Reset();
41
virtual ~UnityScreenMock()
45
static UnityScreenMock *get(CompScreenMock *screen)
47
return static_cast<UnityScreenMock*>(screen);
51
void SetUpAndShowSwitcher()
53
++SetUpAndShowSwitcher_count_;
54
switcher_controller_->is_visible_ = true;
57
switcher::ControllerMock::Ptr switcher_controller()
59
return switcher_controller_;
62
switcher::ControllerMock::Ptr switcher_controller_;
63
int SetUpAndShowSwitcher_count_;
68
#endif // UNITYSHELL_MOCK_H