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

Unified Diff: remoting/protocol/fake_connection_to_host.cc

Issue 1520323007: Simplify ConnectionToHost interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sm_cleanup
Patch Set: Created 5 years 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/fake_connection_to_host.h ('k') | remoting/test/test_chromoting_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_connection_to_host.cc
diff --git a/remoting/protocol/fake_connection_to_host.cc b/remoting/protocol/fake_connection_to_host.cc
index 865b61cf8be422e3000d34590808ec74ccfacdfe..f818730dd0cbc6bd85cd76e48d99322f55ab61b9 100644
--- a/remoting/protocol/fake_connection_to_host.cc
+++ b/remoting/protocol/fake_connection_to_host.cc
@@ -11,36 +11,20 @@ namespace remoting {
namespace test {
FakeConnectionToHost::FakeConnectionToHost()
- : state_(INITIALIZING),
- session_config_(protocol::SessionConfig::ForTest()) {
-}
+ : session_config_(protocol::SessionConfig::ForTest()) {}
+FakeConnectionToHost::~FakeConnectionToHost() {}
-FakeConnectionToHost::~FakeConnectionToHost() {
-}
-
-void FakeConnectionToHost::set_candidate_config(
- scoped_ptr<protocol::CandidateSessionConfig> config) {
-}
-
-void FakeConnectionToHost::set_client_stub(protocol::ClientStub* client_stub) {
-}
+void FakeConnectionToHost::set_client_stub(protocol::ClientStub* client_stub) {}
void FakeConnectionToHost::set_clipboard_stub(
- protocol::ClipboardStub* clipboard_stub) {
-}
+ protocol::ClipboardStub* clipboard_stub) {}
-void FakeConnectionToHost::set_video_stub(protocol::VideoStub* video_stub) {
-}
+void FakeConnectionToHost::set_video_stub(protocol::VideoStub* video_stub) {}
-void FakeConnectionToHost::set_audio_stub(protocol::AudioStub* audio_stub) {
-}
+void FakeConnectionToHost::set_audio_stub(protocol::AudioStub* audio_stub) {}
-void FakeConnectionToHost::Connect(
- SignalStrategy* signal_strategy,
- scoped_refptr<protocol::TransportContext> transport_context,
- scoped_ptr<protocol::Authenticator> authenticator,
- const std::string& host_jid,
- HostEventCallback* event_callback) {
+void FakeConnectionToHost::Connect(scoped_ptr<protocol::Session> session,
+ HostEventCallback* event_callback) {
DCHECK(event_callback);
event_callback_ = event_callback;
« no previous file with comments | « remoting/protocol/fake_connection_to_host.h ('k') | remoting/test/test_chromoting_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698