~ci-train-bot/miral/miral-ubuntu-zesty-2476

« back to all changes in this revision

Viewing changes to test/persistent_surface_store.cpp

  • Committer: Bileto Bot
  • Date: 2017-01-27 03:02:13 UTC
  • mfrom: (330.2.167 miral0)
  • Revision ID: ci-train-bot@canonical.com-20170127030213-q62prxw1xh7kasbu
* New upstream release 1.1.0 (https://launchpad.net/miral/+milestone/1.1)
  - ABI summary:
    . miral ABI unchanged at 2
  - Enhancements:
    . Compatibility with Mir 0.26 and update API to use the new Mir types and
      enums.
    . Logging of exceptions added to --window-management-trace
    . Rename WindowManagementPolicy::place_new_surface => place_new_window"
  - Bugs fixed:
    . top-level window is not raised along with its child (LP: #1658085)
    . miral-shell depends on default cursor theme being installed
      (LP: #1658159)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
#include <miral/toolkit/persistent_id.h>
20
 
#include <miral/toolkit/surface.h>
21
 
#include <miral/toolkit/surface_spec.h>
 
20
#include <miral/toolkit/window.h>
 
21
#include <miral/toolkit/window_spec.h>
22
22
 
23
23
#include <miral/application_info.h>
24
24
 
49
49
    using namespace miral::toolkit;
50
50
 
51
51
    auto const connection = connect_client(test_name);
52
 
    auto const spec = SurfaceSpec::for_normal_surface(connection, 50, 50, mir_pixel_format_argb_8888)
 
52
    auto const spec = WindowSpec::for_normal_surface(connection, 50, 50, mir_pixel_format_argb_8888)
53
53
        .set_name(test_name);
54
54
 
55
 
    Surface const surface{spec.create_surface()};
 
55
    Window const surface{spec.create_surface()};
56
56
 
57
57
    miral::toolkit::PersistentId client_surface_id{surface};
58
58
 
71
71
    using namespace miral::toolkit;
72
72
 
73
73
    auto const connection = connect_client(test_name);
74
 
    auto const spec = SurfaceSpec::for_normal_surface(connection, 50, 50, mir_pixel_format_argb_8888)
 
74
    auto const spec = WindowSpec::for_normal_surface(connection, 50, 50, mir_pixel_format_argb_8888)
75
75
        .set_name(test_name);
76
76
 
77
 
    Surface const surface{spec.create_surface()};
 
77
    Window const surface{spec.create_surface()};
78
78
 
79
79
    miral::toolkit::PersistentId client_surface_id{surface};
80
80
 
93
93
    using namespace miral::toolkit;
94
94
 
95
95
    auto const connection = connect_client(test_name);
96
 
    auto const spec = SurfaceSpec::for_normal_surface(connection, 50, 50, mir_pixel_format_argb_8888)
 
96
    auto const spec = WindowSpec::for_normal_surface(connection, 50, 50, mir_pixel_format_argb_8888)
97
97
        .set_name(test_name);
98
98
 
99
 
    Surface const surface{spec.create_surface()};
 
99
    Window const surface{spec.create_surface()};
100
100
 
101
101
    miral::toolkit::PersistentId client_surface_id{surface};
102
102
 
112
112
    using namespace miral::toolkit;
113
113
 
114
114
    auto const connection = connect_client(test_name);
115
 
    auto const spec = SurfaceSpec::for_normal_surface(connection, 50, 50, mir_pixel_format_argb_8888)
 
115
    auto const spec = WindowSpec::for_normal_surface(connection, 50, 50, mir_pixel_format_argb_8888)
116
116
        .set_name(test_name);
117
117
 
118
 
    Surface const surface{spec.create_surface()};
 
118
    Window const surface{spec.create_surface()};
119
119
 
120
120
    miral::toolkit::PersistentId client_surface_id{surface};
121
121
 
133
133
    using namespace miral::toolkit;
134
134
 
135
135
    auto const connection = connect_client(test_name);
136
 
    auto const spec = SurfaceSpec::for_normal_surface(connection, 50, 50, mir_pixel_format_argb_8888)
 
136
    auto const spec = WindowSpec::for_normal_surface(connection, 50, 50, mir_pixel_format_argb_8888)
137
137
        .set_name(test_name);
138
138
 
139
 
    Surface const surface{spec.create_surface()};
 
139
    Window const surface{spec.create_surface()};
140
140
 
141
141
    miral::toolkit::PersistentId client_surface_id{surface};
142
142