~mir-team/qtmir/mir-0.16-rebuild

« back to all changes in this revision

Viewing changes to tests/modules/common/mock_mir_session.h

  • Committer: Daniel d'Andrada
  • Date: 2014-12-10 10:33:48 UTC
  • mto: This revision was merged to the branch mainline in revision 294.
  • Revision ID: daniel.dandrada@canonical.com-20141210103348-mn2kmwtxxo0y8yyw
removed :PATH from command line

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
struct MockSession : public Session
32
32
{
33
33
    MockSession() {}
34
 
    MockSession(std::string const& sessionName, pid_t processId)
 
34
    MockSession(std::string const& sessionName, pid_t processId) 
35
35
        : m_sessionName(sessionName), m_sessionId(processId)
36
36
    {}
37
37
 
49
49
 
50
50
    MOCK_CONST_METHOD0(default_surface, std::shared_ptr<Surface>());
51
51
    MOCK_CONST_METHOD1(get_surface, std::shared_ptr<frontend::Surface>(frontend::SurfaceId));
52
 
    MOCK_CONST_METHOD1(surface, std::shared_ptr<scene::Surface>(frontend::SurfaceId));
53
52
 
54
53
    MOCK_METHOD1(take_snapshot, void(SnapshotCallback const&));
55
54
    MOCK_METHOD1(set_lifecycle_state, void(MirLifecycleState));
63
62
 
64
63
    void start_prompt_session() override {};
65
64
    void stop_prompt_session() override {};
66
 
    void suspend_prompt_session() override {};
67
 
    void resume_prompt_session() override {};
68
 
    std::shared_ptr<Surface> surface_after(std::shared_ptr<Surface> const&) const override { return {}; }
69
 
 
70
 
    MOCK_CONST_METHOD1(get_buffer_stream, std::shared_ptr<frontend::BufferStream>(frontend::BufferStreamId));
71
 
    MOCK_METHOD1(destroy_buffer_stream, void(frontend::BufferStreamId));
72
 
    MOCK_METHOD1(create_buffer_stream, frontend::BufferStreamId(graphics::BufferProperties const&));
73
 
    void configure_streams(Surface&, std::vector<shell::StreamSpecification> const&) override {};
74
65
 
75
66
private:
76
67
    std::string m_sessionName;