~kdub/mir/fix-1301040

« back to all changes in this revision

Viewing changes to include/test/mir_test_doubles/mock_surface_factory.h

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2014-04-01 17:40:49 UTC
  • mfrom: (1513.3.10 mir1)
  • Revision ID: tarmac-20140401174049-vj1jmakptw9v31qg
scene: Simplify BasicSurface creation by separating out an initial cut of SurfaceObserver.

Approved by Andreas Pokorny, Alexandros Frantzis, Gerry Boland, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
struct MockSurfaceFactory : public shell::SurfaceFactory
35
35
{
36
 
    MOCK_METHOD4(create_surface, std::shared_ptr<shell::Surface>(
 
36
    MOCK_METHOD3(create_surface, std::shared_ptr<shell::Surface>(
37
37
        shell::Session*,
38
38
        const shell::SurfaceCreationParameters&,
39
 
        frontend::SurfaceId,
40
 
        std::shared_ptr<frontend::EventSink> const&));
 
39
        std::shared_ptr<scene::SurfaceObserver> const&));
41
40
 
42
41
    void destroy_surface(std::shared_ptr<shell::Surface> const& /*surface*/) override {}
43
42
};