~ubuntu-branches/ubuntu/vivid/mir/vivid

« back to all changes in this revision

Viewing changes to include/test/mir_test_framework/deferred_in_process_server.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-07-01 15:54:36 UTC
  • mfrom: (1.1.65)
  • Revision ID: package-import@ubuntu.com-20140701155436-2gtp39qr2hu7a22w
Tags: 0.4.0+14.10.20140701.1-0ubuntu1
* New upstream release 0.4.0 (https://launchpad.net/mir/+milestone/0.4.0)
  - mirclient ABI bumped to 8. Clients need rebuilding.
    . Add surface attribute for visibility.
    . Add surface orientation API.
  - mirserver ABI bumped to 22. Shells need rebuilding.
    . Allow setting the orientation of a server surface.
    . Change compositor::Scene to expose compositor::SceneElements instead
      of graphics::Renderables.
    . Change various input and Surface classes to support the client cursor
      API.
    . Support unregistering fd handlers in the EventHandlerRegister and
      related interfaces (MainLoop).
    . server: Change mc::Scene to deal in mc::SceneElements instead of
      mg::Renderables.
    . Add visibility tracking to mc::SceneElement interface and
      implementations.
    . Unregister FD Handler from EventHandlerRegister.
    . Sending user input events through Surfaces.
    . Move InputChannelFactory into DefaultServerConfiguration.
    . Ensure default input region is updated when surface is resized. (LP: #1332632)
  - android: support alpha blending overlays together in HWC. Bumps
    android-headers version requirement from 4.2.2 to 4.4.2. (LP: #1329879)
  - android: designate the buffer usage when attempting to access or
    update the fence associated with the native buffer. (LP: #1329868)
  - Enable client cursor API.
  - Enable support for USB touchscreens.
  - Various test improvements.
  - Ensure the_cursor() is not null. (LP: #1334010)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2014 Canonical Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License version 3,
 
6
 * as published by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authored By: Alan Griffiths <alan@octopull.co.uk>
 
17
 */
 
18
 
 
19
#ifndef MIR_TEST_FRAMEWORK_DEFERRED_IN_PROCESS_SERVER_H_
 
20
#define MIR_TEST_FRAMEWORK_DEFERRED_IN_PROCESS_SERVER_H_
 
21
 
 
22
#include "mir_test_framework/server_runner.h"
 
23
 
 
24
#include <gtest/gtest.h>
 
25
 
 
26
namespace mir_test_framework
 
27
{
 
28
/** Fixture for running Mir server in test process.
 
29
 * The server startup is deferred until start_server() is called, to allows the
 
30
 * test code to initialize the server environment with expectations or stubs.
 
31
 */
 
32
struct DeferredInProcessServer : testing::Test, private ServerRunner
 
33
{
 
34
    void TearDown() override { ServerRunner::stop_server(); }
 
35
 
 
36
    using ServerRunner::start_server;
 
37
    using ServerRunner::new_connection;
 
38
};
 
39
}
 
40
 
 
41
#endif /* MIR_TEST_FRAMEWORK_DEFERRED_IN_PROCESS_SERVER_H_ */