2
* Copyright (C) 2014-2015 Canonical, Ltd.
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.
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.
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/>.
17
#ifndef MOCK_MIR_SCENE_PROMPT_SESSION_MANAGER_H_
18
#define MOCK_MIR_SCENE_PROMPT_SESSION_MANAGER_H_
20
#include "mir/scene/prompt_session_manager.h"
21
#include "mir/scene/prompt_session_creation_parameters.h"
23
#include <gmock/gmock.h>
28
class MockPromptSessionManager: public PromptSessionManager
31
MockPromptSessionManager();
32
virtual ~MockPromptSessionManager();
34
MOCK_CONST_METHOD2(start_prompt_session_for, std::shared_ptr<PromptSession>(std::shared_ptr<mir::scene::Session> const&,
35
mir::scene::PromptSessionCreationParameters const&));
37
MOCK_CONST_METHOD1(stop_prompt_session, void(std::shared_ptr<PromptSession> const&));
39
MOCK_CONST_METHOD1(suspend_prompt_session, void(std::shared_ptr<PromptSession> const&));
41
MOCK_CONST_METHOD1(resume_prompt_session, void(std::shared_ptr<PromptSession> const&));
43
MOCK_CONST_METHOD2(add_prompt_provider, void(std::shared_ptr<PromptSession> const&,
44
std::shared_ptr<mir::scene::Session> const&));
46
MOCK_CONST_METHOD1(add_expected_session, void(std::shared_ptr<Session> const&));
48
MOCK_CONST_METHOD1(remove_session, void(std::shared_ptr<Session> const&));
50
MOCK_CONST_METHOD1(application_for, std::shared_ptr<Session>(std::shared_ptr<PromptSession> const&));
52
MOCK_CONST_METHOD1(helper_for, std::shared_ptr<Session>(std::shared_ptr<PromptSession> const&));
54
MOCK_CONST_METHOD2(for_each_provider_in, void(std::shared_ptr<PromptSession> const&,
55
std::function<void(std::shared_ptr<Session> const&)> const&));
61
#endif // MOCK_MIR_SCENE_PROMPT_SESSION_MANAGER_H_