~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to tests/mir_test_framework/stubbed_server_configuration.cpp

  • Committer: Package Import Robot
  • Author(s): CI Train Bot
  • Date: 2015-05-12 13:12:55 UTC
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: package-import@ubuntu.com-20150512131255-y7z12i8n4pbvo70x
Tags: upstream-0.13.0+15.10.20150512
ImportĀ upstreamĀ versionĀ 0.13.0+15.10.20150512

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Authored by: Alan Griffiths <alan@octopull.co.uk>
17
17
 */
18
18
 
19
 
#define MIR_INCLUDE_DEPRECATED_EVENT_HEADER
20
 
 
21
19
#include "mir_test_framework/stubbed_server_configuration.h"
22
20
#include "mir_test_framework/command_line_server_configuration.h"
23
21
 
35
33
#include "src/server/input/null_input_dispatcher.h"
36
34
#include "src/server/input/null_input_targeter.h"
37
35
#include "mir_test_doubles/null_logger.h"
 
36
#include "mir_test_doubles/stub_cursor.h"
38
37
 
39
38
namespace geom = mir::geometry;
40
39
namespace mc = mir::compositor;
48
47
 
49
48
namespace
50
49
{
51
 
class StubCursor : public mg::Cursor
52
 
{
53
 
    void show(mg::CursorImage const&) override {}
54
 
    void hide() override {}
55
 
    void move_to(geom::Point) override {}
56
 
};
57
 
 
58
50
class StubRendererFactory : public mc::RendererFactory
59
51
{
60
52
public:
156
148
 
157
149
std::shared_ptr<mg::Cursor> mtf::StubbedServerConfiguration::the_cursor()
158
150
{
159
 
    return std::make_shared<StubCursor>();
 
151
    return std::make_shared<mtd::StubCursor>();
160
152
}
161
153
 
162
154
std::shared_ptr<ml::Logger> mtf::StubbedServerConfiguration::the_logger()