~ubuntu-branches/ubuntu/utopic/mir/utopic-proposed

« back to all changes in this revision

Viewing changes to tests/integration-tests/test_session.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-03-10 19:28:46 UTC
  • mto: This revision was merged to the branch mainline in revision 63.
  • Revision ID: package-import@ubuntu.com-20140310192846-rq9qm3ec26yrelo2
Tags: upstream-0.1.6+14.04.20140310
ImportĀ upstreamĀ versionĀ 0.1.6+14.04.20140310

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "mir_test_doubles/null_display.h"
35
35
#include "mir_test_doubles/null_event_sink.h"
36
36
#include "mir_test_doubles/stub_display_buffer.h"
 
37
#include "mir_test_doubles/stub_renderer.h"
37
38
 
38
39
#include <gtest/gtest.h>
39
40
 
85
86
 
86
87
    std::shared_ptr<mc::RendererFactory> the_renderer_factory() override
87
88
    {
88
 
        struct StubRenderer : public mc::Renderer
89
 
        {
90
 
            void begin(float) const override
91
 
            {
92
 
            }
93
 
            void render(mc::CompositingCriteria const&, mg::Buffer&) const override
94
 
            {
95
 
            }
96
 
            void end() const override
97
 
            {
98
 
            }
99
 
            void suspend() override
100
 
            {
101
 
            }
102
 
        };
103
 
 
104
89
        struct StubRendererFactory : public mc::RendererFactory
105
90
        {
106
91
            std::unique_ptr<mc::Renderer> create_renderer_for(geom::Rectangle const&)
107
92
            {
108
 
                auto raw = new StubRenderer{};
109
 
                return std::unique_ptr<StubRenderer>(raw);
 
93
                auto raw = new mtd::StubRenderer{};
 
94
                return std::unique_ptr<mtd::StubRenderer>(raw);
110
95
            }
111
96
        };
112
97