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

Unified Diff: remoting/protocol/protocol_mock_objects.h

Issue 902613004: Fix ConnectionToClient to connect stubs only after authentication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_pump
Patch Set: Created 5 years, 10 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/protocol/connection_to_client_unittest.cc ('k') | remoting/protocol/protocol_mock_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protocol_mock_objects.h
diff --git a/remoting/protocol/protocol_mock_objects.h b/remoting/protocol/protocol_mock_objects.h
index 24db36d78f5d3e20406dbf20d749bc838597b0b6..b0ff4f2626538b49c4cc55e64cd7e9778b5e39cd 100644
--- a/remoting/protocol/protocol_mock_objects.h
+++ b/remoting/protocol/protocol_mock_objects.h
@@ -42,7 +42,23 @@ class MockConnectionToClient : public ConnectionToClient {
MOCK_METHOD0(session, Session*());
MOCK_METHOD0(Disconnect, void());
+ void set_clipboard_stub(ClipboardStub* clipboard_stub) override {
+ clipboard_stub_ = clipboard_stub;
+ }
+ void set_host_stub(HostStub* host_stub) override { host_stub_ = host_stub; }
+ void set_input_stub(InputStub* input_stub) override {
+ input_stub_ = input_stub;
+ }
+
+ ClipboardStub* clipboard_stub() { return clipboard_stub_; }
+ HostStub* host_stub() { return host_stub_; }
+ InputStub* input_stub() { return input_stub_; }
+
private:
+ ClipboardStub* clipboard_stub_;
+ HostStub* host_stub_;
+ InputStub* input_stub_;
+
DISALLOW_COPY_AND_ASSIGN(MockConnectionToClient);
};
« no previous file with comments | « remoting/protocol/connection_to_client_unittest.cc ('k') | remoting/protocol/protocol_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698