Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: remoting/test/test_chromoting_client.h

Issue 1008043003: Adding Test Fixture for initial test cases for the App Remoting Test Driver. Also includes the pub… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing 2nd round of feedback Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/test/remote_host_info_fetcher.cc ('k') | remoting/test/test_chromoting_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..69f39670c490126acd1f43828b9956e99f774709 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,13 +18,17 @@
#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 {
namespace test {
// Manages a chromoting connection to a remote host. Destroying a
@@ -46,6 +51,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.
« no previous file with comments | « remoting/test/remote_host_info_fetcher.cc ('k') | remoting/test/test_chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698