~mir-team/mir/trunk

« back to all changes in this revision

Viewing changes to tests/unit-tests/frontend/test_session_mediator_android.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2013-04-25 23:50:01 UTC
  • mfrom: (526.2.22 mir1)
  • Revision ID: tarmac-20130425235001-c3b3x2yyb3eldyx1
frontend, shell, tests: surface-states updated to avoid supplying dependencies through public member functions.

Approved by PS Jenkins bot, Chris Halse Rogers, Robert Ancell, Kevin DuBois.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include "mir_test_doubles/mock_session.h"
32
32
#include "mir_test_doubles/stub_shell.h"
33
33
 
34
 
#include "mir/event_queue.h"
 
34
#include "mir/events/event_sink.h"
35
35
 
36
36
#include <gtest/gtest.h>
37
37
 
87
87
    }
88
88
};
89
89
 
90
 
}
 
90
class NullEventSink : public mir::events::EventSink
 
91
{
 
92
public:
 
93
    void handle_event(MirEvent const& ) override {}
 
94
};
91
95
 
92
96
struct SessionMediatorAndroidTest : public ::testing::Test
93
97
{
100
104
          resource_cache{std::make_shared<mf::ResourceCache>()},
101
105
          mediator{shell, graphics_platform, graphics_display,
102
106
                   buffer_allocator, report,
103
 
                   std::make_shared<mir::EventQueue>(),
 
107
                   std::make_shared<NullEventSink>(),
104
108
                   resource_cache},
105
109
          null_callback{google::protobuf::NewPermanentCallback(google::protobuf::DoNothing)}
106
110
    {
117
121
    std::unique_ptr<google::protobuf::Closure> null_callback;
118
122
};
119
123
 
 
124
}
 
125
 
120
126
TEST_F(SessionMediatorAndroidTest, drm_auth_magic_throws)
121
127
{
122
128
    mp::ConnectParameters connect_parameters;