Skip to content

Commit dc8730a

Browse files
committed
Fixing the tests that I broke as well
1 parent 4b44ba6 commit dc8730a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/integration-tests/test_surface_stack_with_compositor.cpp

+8-4
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,15 @@ struct SurfaceStackCompositor : public Test
165165
std::shared_ptr<mg::CursorImage>(),
166166
null_scene_report)},
167167
stub_buffer(std::make_shared<mtd::StubBuffer>()),
168+
other_stream(std::make_shared<mc::Stream>(geom::Size{ 1, 1 }, mir_pixel_format_abgr_8888 )),
169+
other_streams({ { other_stream, {0,0}, {} } }),
168170
other_stub_surface{std::make_shared<ms::BasicSurface>(
169171
nullptr /* session */,
170172
mw::Weak<mf::WlSurface>{},
171-
std::string("stub"),
172-
geom::Rectangle{{0,0},{1,1}},
173+
std::string("other_stub"),
174+
geom::Rectangle{{10,0},{1,1}},
173175
mir_pointer_unconfined,
174-
streams,
176+
other_streams,
175177
std::shared_ptr<mg::CursorImage>(),
176178
null_scene_report)},
177179
other_stub_buffer(std::make_shared<mtd::StubBuffer>())
@@ -189,6 +191,8 @@ struct SurfaceStackCompositor : public Test
189191
std::list<ms::StreamInfo> const streams;
190192
std::shared_ptr<ms::BasicSurface> stub_surface;
191193
std::shared_ptr<mg::Buffer> stub_buffer;
194+
std::shared_ptr<mc::Stream> other_stream;
195+
std::list<ms::StreamInfo> const other_streams;
192196
std::shared_ptr<ms::BasicSurface> other_stub_surface;
193197
std::shared_ptr<mg::Buffer> other_stub_buffer;
194198
CountingDisplaySyncGroup stub_primary_db;
@@ -373,7 +377,7 @@ TEST_F(SurfaceStackCompositor, removing_a_surface_triggers_composition)
373377
streams.front().stream->submit_buffer(stub_buffer);
374378
stack.add_surface(stub_surface, mi::InputReceptionMode::normal);
375379

376-
streams.front().stream->submit_buffer(other_stub_buffer);
380+
other_streams.front().stream->submit_buffer(other_stub_buffer);
377381
stack.add_surface(other_stub_surface, mi::InputReceptionMode::normal);
378382

379383
mc::MultiThreadedCompositor mt_compositor(

0 commit comments

Comments
 (0)