| 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_TEST_TEST_CHROMOTING_CLIENT_H_ | 5 #ifndef REMOTING_TEST_TEST_CHROMOTING_CLIENT_H_ |
| 6 #define REMOTING_TEST_TEST_CHROMOTING_CLIENT_H_ | 6 #define REMOTING_TEST_TEST_CHROMOTING_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class TestChromotingClient : public ClientUserInterface, | 42 class TestChromotingClient : public ClientUserInterface, |
| 43 public protocol::ClipboardStub, | 43 public protocol::ClipboardStub, |
| 44 public protocol::CursorShapeStub { | 44 public protocol::CursorShapeStub { |
| 45 public: | 45 public: |
| 46 TestChromotingClient(); | 46 TestChromotingClient(); |
| 47 explicit TestChromotingClient( | 47 explicit TestChromotingClient( |
| 48 std::unique_ptr<protocol::VideoRenderer> video_renderer); | 48 std::unique_ptr<protocol::VideoRenderer> video_renderer); |
| 49 ~TestChromotingClient() override; | 49 ~TestChromotingClient() override; |
| 50 | 50 |
| 51 // Starts a Chromoting connection using the specified connection setup info. | 51 // Starts a Chromoting connection using the specified connection setup info. |
| 52 void StartConnection(const ConnectionSetupInfo& connection_setup_info); | 52 void StartConnection(bool use_test_api_values, |
| 53 const ConnectionSetupInfo& connection_setup_info); |
| 53 | 54 |
| 54 // Ends the current remote connection and updates the connection state. | 55 // Ends the current remote connection and updates the connection state. |
| 55 void EndConnection(); | 56 void EndConnection(); |
| 56 | 57 |
| 57 // Stubs used to send messages to the remote host. | 58 // Stubs used to send messages to the remote host. |
| 58 protocol::ClipboardStub* clipboard_forwarder() { | 59 protocol::ClipboardStub* clipboard_forwarder() { |
| 59 return chromoting_client_->clipboard_forwarder(); | 60 return chromoting_client_->clipboard_forwarder(); |
| 60 } | 61 } |
| 61 protocol::HostStub* host_stub() { return chromoting_client_->host_stub(); } | 62 protocol::HostStub* host_stub() { return chromoting_client_->host_stub(); } |
| 62 protocol::InputStub* input_stub() { return chromoting_client_->input_stub(); } | 63 protocol::InputStub* input_stub() { return chromoting_client_->input_stub(); } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // SignalStrategy used for connection signaling. | 124 // SignalStrategy used for connection signaling. |
| 124 std::unique_ptr<SignalStrategy> signal_strategy_; | 125 std::unique_ptr<SignalStrategy> signal_strategy_; |
| 125 | 126 |
| 126 DISALLOW_COPY_AND_ASSIGN(TestChromotingClient); | 127 DISALLOW_COPY_AND_ASSIGN(TestChromotingClient); |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace test | 130 } // namespace test |
| 130 } // namespace remoting | 131 } // namespace remoting |
| 131 | 132 |
| 132 #endif // REMOTING_TEST_TEST_CHROMOTING_CLIENT_H_ | 133 #endif // REMOTING_TEST_TEST_CHROMOTING_CLIENT_H_ |
| OLD | NEW |