~raof/mir/prober-drm-device-probe

« back to all changes in this revision

Viewing changes to tests/unit-tests/compositor/test_multi_threaded_compositor.cpp

mergeĀ lp:mir

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "mir/graphics/display.h"
23
23
#include "mir_test_doubles/null_display_buffer.h"
24
24
#include "mir_test_doubles/mock_display_buffer.h"
 
25
#include "mir_test_doubles/null_gl_context.h"
25
26
 
26
27
#include <unordered_map>
27
28
#include <unordered_set>
62
63
    void pause() {}
63
64
    void resume() {}
64
65
    std::weak_ptr<mg::Cursor> the_cursor() { return {}; }
 
66
    std::unique_ptr<mg::GLContext> create_gl_context()
 
67
    {
 
68
        return std::unique_ptr<mtd::NullGLContext>{new mtd::NullGLContext()};
 
69
    }
65
70
 
66
71
private:
67
72
    std::vector<mtd::NullDisplayBuffer> buffers;
90
95
    void resume() {}
91
96
    std::weak_ptr<mg::Cursor> the_cursor() { return {}; }
92
97
 
 
98
    std::unique_ptr<mg::GLContext> create_gl_context()
 
99
    {
 
100
        return std::unique_ptr<mtd::NullGLContext>{new mtd::NullGLContext()};
 
101
    }
 
102
 
93
103
    void for_each_mock_buffer(std::function<void(mtd::MockDisplayBuffer&)> const& f)
94
104
    {
95
105
        for (auto& db : buffers)