OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_PROTOCOL_FAKE_CONNECTION_TO_HOST_H_ | 5 #ifndef REMOTING_PROTOCOL_FAKE_CONNECTION_TO_HOST_H_ |
6 #define REMOTING_PROTOCOL_FAKE_CONNECTION_TO_HOST_H_ | 6 #define REMOTING_PROTOCOL_FAKE_CONNECTION_TO_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "remoting/protocol/connection_to_host.h" | 10 #include "remoting/protocol/connection_to_host.h" |
11 #include "remoting/protocol/protocol_mock_objects.h" | 11 #include "remoting/protocol/protocol_mock_objects.h" |
12 | 12 |
13 namespace remoting { | 13 namespace remoting { |
14 namespace test { | 14 namespace test { |
15 | 15 |
16 class FakeConnectionToHost : public protocol::ConnectionToHost { | 16 class FakeConnectionToHost : public protocol::ConnectionToHost { |
17 public: | 17 public: |
18 FakeConnectionToHost(); | 18 FakeConnectionToHost(); |
19 ~FakeConnectionToHost() override; | 19 ~FakeConnectionToHost() override; |
20 | 20 |
21 // ConnectionToHost interface. | 21 // ConnectionToHost interface. |
22 void set_candidate_config( | 22 void set_candidate_config( |
23 scoped_ptr<protocol::CandidateSessionConfig> config) override; | 23 scoped_ptr<protocol::CandidateSessionConfig> config) override; |
24 void set_client_stub(protocol::ClientStub* client_stub) override; | 24 void set_client_stub(protocol::ClientStub* client_stub) override; |
25 void set_clipboard_stub(protocol::ClipboardStub* clipboard_stub) override; | 25 void set_clipboard_stub(protocol::ClipboardStub* clipboard_stub) override; |
26 void set_video_stub(protocol::VideoStub* video_stub) override; | 26 void set_video_stub(protocol::VideoStub* video_stub) override; |
27 void set_audio_stub(protocol::AudioStub* audio_stub) override; | 27 void set_audio_stub(protocol::AudioStub* audio_stub) override; |
28 void Connect(SignalStrategy* signal_strategy, | 28 void Connect(SignalStrategy* signal_strategy, |
29 scoped_ptr<protocol::TransportFactory> transport_factory, | 29 scoped_refptr<protocol::TransportContext> transport_context, |
30 scoped_ptr<protocol::Authenticator> authenticator, | 30 scoped_ptr<protocol::Authenticator> authenticator, |
31 const std::string& host_jid, | 31 const std::string& host_jid, |
32 HostEventCallback* event_callback) override; | 32 HostEventCallback* event_callback) override; |
33 const protocol::SessionConfig& config() override; | 33 const protocol::SessionConfig& config() override; |
34 protocol::ClipboardStub* clipboard_forwarder() override; | 34 protocol::ClipboardStub* clipboard_forwarder() override; |
35 protocol::HostStub* host_stub() override; | 35 protocol::HostStub* host_stub() override; |
36 protocol::InputStub* input_stub() override; | 36 protocol::InputStub* input_stub() override; |
37 State state() const override; | 37 State state() const override; |
38 | 38 |
39 // Calls OnConnectionState on the |event_callback_| with the supplied state | 39 // Calls OnConnectionState on the |event_callback_| with the supplied state |
(...skipping 16 matching lines...) Expand all Loading... |
56 testing::NiceMock<protocol::MockInputStub> mock_input_stub_; | 56 testing::NiceMock<protocol::MockInputStub> mock_input_stub_; |
57 scoped_ptr<protocol::SessionConfig> session_config_; | 57 scoped_ptr<protocol::SessionConfig> session_config_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(FakeConnectionToHost); | 59 DISALLOW_COPY_AND_ASSIGN(FakeConnectionToHost); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace test | 62 } // namespace test |
63 } // namespace remoting | 63 } // namespace remoting |
64 | 64 |
65 #endif // REMOTING_PROTOCOL_FAKE_CONNECTION_TO_HOST_H_ | 65 #endif // REMOTING_PROTOCOL_FAKE_CONNECTION_TO_HOST_H_ |
OLD | NEW |