Mir

Merge lp://qastaging/~afrantzis/mir/abstract-host-connection into lp://qastaging/mir

Proposed by Alexandros Frantzis
Status: Merged
Approved by: Kevin DuBois
Approved revision: no longer in the source branch.
Merged at revision: 1568
Proposed branch: lp://qastaging/~afrantzis/mir/abstract-host-connection
Merge into: lp://qastaging/mir
Diff against target: 923 lines (+331/-245)
15 files modified
src/server/graphics/default_configuration.cpp (+2/-2)
src/server/graphics/nested/CMakeLists.txt (+1/-1)
src/server/graphics/nested/host_connection.cpp (+0/-32)
src/server/graphics/nested/host_connection.h (+38/-12)
src/server/graphics/nested/mir_api_wrappers.h (+0/-66)
src/server/graphics/nested/mir_client_host_connection.cpp (+169/-0)
src/server/graphics/nested/mir_client_host_connection.h (+60/-0)
src/server/graphics/nested/nested_display.cpp (+8/-37)
src/server/graphics/nested/nested_display.h (+1/-2)
src/server/graphics/nested/nested_display_configuration.cpp (+9/-10)
src/server/graphics/nested/nested_display_configuration.h (+7/-5)
src/server/graphics/nested/nested_output.cpp (+5/-16)
src/server/graphics/nested/nested_output.h (+4/-19)
src/server/graphics/nested/nested_platform.cpp (+4/-38)
tests/unit-tests/graphics/nested/test_nested_display_configuration.cpp (+23/-5)
To merge this branch: bzr merge lp://qastaging/~afrantzis/mir/abstract-host-connection
Reviewer Review Type Date Requested Status
Robert Carr (community) Approve
Alan Griffiths Approve
Kevin DuBois (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+216290@code.qastaging.launchpad.net

Commit message

nested: Abstract communication with host server

Description of the change

nested: Abstract communication with host server

Abstract communication with the host server to make it possible to write unit tests for the nested platform.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Robert Carr (robertcarr) wrote :

l883: Why not display config destroy?

review: Needs Information
Revision history for this message
Kevin DuBois (kdub) wrote :

okay overall, like the promise of tests :)

MirClientHostConnection:
perhaps NestedConnection?

review: Approve
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

> l883: Why not display config destroy?

We are populating the struct manually, so it's safer and more future proof to release it manually, too. If we use mir_display_config_destroy() we are making the assumption that the way we populate the struct matches what the client library does internally. This assumption is true at the moment, but that may change in the future.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Ill go along for now - but what I really want to see are the promised tests

review: Approve
Revision history for this message
Robert Carr (robertcarr) wrote :

Ok!

review: Approve
Revision history for this message
Kevin DuBois (kdub) wrote :

looks good to top-approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches