~mir-team/mir/trunk

« back to all changes in this revision

Viewing changes to tests/unit-tests/shell/test_unauthorized_display_changer.cpp

shell: Support per-session display configurations

This MP adds support for per-session display configurations, i.e., configurations that are active only when the client that submitted them has the focus.  mir_connection_apply_display_config() now changes the session display configuration instead of the base/global one.

Approved by Daniel van Vugt, Robert Ancell, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    msh::UnauthorizedDisplayChanger changer(mt::fake_shared(underlying_changer));
43
43
 
44
44
    EXPECT_THROW({
45
 
        changer.configure(std::weak_ptr<mf::Session>(), mt::fake_shared(conf));
 
45
        changer.configure(std::shared_ptr<mf::Session>(), mt::fake_shared(conf));
46
46
    }, std::runtime_error);
47
47
}
48
48