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

« back to all changes in this revision

Viewing changes to tests/unit-tests/graphics/mesa/test_gbm_buffer.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:
30
30
#include "mir/graphics/buffer_properties.h"
31
31
#include "mir_test_doubles/null_virtual_terminal.h"
32
32
 
33
 
#include "mir/graphics/null_display_report.h"
 
33
#include "src/server/report/null_report_factory.h"
34
34
 
35
35
#include <gbm.h>
36
36
 
44
44
namespace mgm=mir::graphics::mesa;
45
45
namespace geom=mir::geometry;
46
46
namespace mtd=mir::test::doubles;
 
47
namespace mr=mir::report;
47
48
namespace mtf=mir::mir_test_framework;
48
49
 
49
50
class GBMBufferTest : public ::testing::Test
53
54
    {
54
55
        using namespace testing;
55
56
 
56
 
        fake_devices.add_standard_drm_devices();
 
57
        fake_devices.add_standard_device("standard-drm-devices");
57
58
 
58
59
        size = geom::Size{300, 200};
59
60
        pf = mir_pixel_format_argb_8888;
74
75
        .WillByDefault(Return(stride.as_uint32_t()));
75
76
 
76
77
        platform = std::make_shared<mgm::Platform>(
77
 
            std::make_shared<mg::NullDisplayReport>(),
 
78
            mr::null_display_report(),
78
79
            std::make_shared<mtd::NullVirtualTerminal>());
79
80
        null_init = std::make_shared<mg::NullBufferInitializer>();
80
81
        allocator.reset(new mgm::BufferAllocator(platform->gbm.device, null_init));