~vanvugt/mir/render-focus

« back to all changes in this revision

Viewing changes to tests/unit-tests/graphics/android/test_output_builder.cpp

  • Committer: Tarmac
  • Author(s): Alexandros Frantzis
  • Date: 2014-03-31 13:20:44 UTC
  • mfrom: (1513.1.1 android-gl-config)
  • Revision ID: tarmac-20140331132044-oxpv8kzzbn20f8i3
android: Respect GLConfig preferences.

Approved by Alan Griffiths, Kevin DuBois, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include "mir_test_doubles/mock_fb_hal_device.h"
30
30
#include "mir_test_doubles/mock_egl.h"
31
31
#include "mir_test_doubles/mock_android_native_buffer.h"
 
32
#include "mir_test_doubles/stub_gl_config.h"
32
33
#include <system/window.h>
33
34
#include <gtest/gtest.h>
34
35
 
101
102
    std::shared_ptr<MockResourceFactory> mock_resource_factory;
102
103
    testing::NiceMock<mtd::MockDisplayReport> mock_display_report;
103
104
    testing::NiceMock<MockGraphicBufferAllocator> mock_buffer_allocator;
104
 
    mga::GLContext gl_context{mga::to_mir_format(mock_egl.fake_visual_id), mock_display_report};
 
105
    mtd::StubGLConfig stub_gl_config;
 
106
    mga::GLContext gl_context{
 
107
        mga::to_mir_format(mock_egl.fake_visual_id), stub_gl_config, mock_display_report};
105
108
};
106
109
}
107
110
TEST_F(OutputBuilder, hwc_version_10_success)