Index: remoting/test/test_chromoting_client.h |
diff --git a/remoting/test/test_chromoting_client.h b/remoting/test/test_chromoting_client.h |
index 6899df0c4d817512ded50b8370067503a51291ba..0864be9f936a072d953c39666857f6ce38fa7dfb 100644 |
--- a/remoting/test/test_chromoting_client.h |
+++ b/remoting/test/test_chromoting_client.h |
@@ -10,6 +10,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/observer_list.h" |
+#include "remoting/client/chromoting_client.h" |
#include "remoting/client/client_user_interface.h" |
#include "remoting/protocol/clipboard_filter.h" |
#include "remoting/protocol/cursor_shape_stub.h" |
@@ -17,10 +18,15 @@ |
#include "remoting/test/remote_host_info.h" |
namespace remoting { |
-class ChromotingClient; |
class ClientContext; |
class XmppSignalStrategy; |
class VideoRenderer; |
+ |
+namespace protocol { |
+class ClipboardStub; |
+class HostStub; |
+class InputStub; |
+} |
} |
namespace remoting { |
@@ -46,6 +52,13 @@ class TestChromotingClient : public ClientUserInterface, |
// Ends the current remote connection and updates the connection state. |
void EndConnection(); |
+ // Stubs used to send messages to the remote host. |
+ protocol::ClipboardStub* clipboard_forwarder() { |
+ return chromoting_client_->clipboard_forwarder(); |
+ } |
+ protocol::HostStub* host_stub() { return chromoting_client_->host_stub(); } |
+ protocol::InputStub* input_stub() { return chromoting_client_->input_stub(); } |
+ |
// Registers an observer which will be notfied when remote connection events |
// occur. Registered Observers must not tear-down this object on receipt of |
// these callbacks. The callbacks should be used for informational purposes. |
@@ -58,6 +71,13 @@ class TestChromotingClient : public ClientUserInterface, |
void SetConnectionToHostForTests( |
scoped_ptr<protocol::ConnectionToHost> connection_to_host); |
+ const protocol::ConnectionToHost::State& connection_to_host_state() { |
+ return connection_to_host_state_; |
+ } |
+ const protocol::ErrorCode& connection_error_code() { |
+ return connection_error_code_; |
+ } |
+ |
private: |
// ClientUserInterface interface. |
void OnConnectionState(protocol::ConnectionToHost::State state, |