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

Unified Diff: remoting/protocol/fake_session.cc

Issue 4313001: Rename classes for Chromoting: (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Resolve merge conflicts Created 10 years, 1 month 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_session.h ('k') | remoting/protocol/host_message_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_session.cc
diff --git a/remoting/protocol/fake_connection.cc b/remoting/protocol/fake_session.cc
similarity index 75%
rename from remoting/protocol/fake_connection.cc
rename to remoting/protocol/fake_session.cc
index 3288b2ae1772d5e936a93148c1219806df778ac3..492f4d865b43b337460d26dc532057d77ece8978 100644
--- a/remoting/protocol/fake_connection.cc
+++ b/remoting/protocol/fake_session.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "remoting/protocol/fake_connection.h"
+#include "remoting/protocol/fake_session.h"
#include "base/message_loop.h"
#include "net/base/io_buffer.h"
@@ -10,6 +10,8 @@
namespace remoting {
+namespace protocol {
+
const char kTestJid[] = "host1@gmail.com/chromoting123";
FakeSocket::FakeSocket()
@@ -69,66 +71,68 @@ bool FakeSocket::SetSendBufferSize(int32 size) {
return false;
}
-FakeChromotocolConnection::FakeChromotocolConnection()
+FakeSession::FakeSession()
: candidate_config_(CandidateChromotocolConfig::CreateDefault()),
config_(ChromotocolConfig::CreateDefault()),
message_loop_(NULL),
jid_(kTestJid) {
}
-FakeChromotocolConnection::~FakeChromotocolConnection() { }
+FakeSession::~FakeSession() { }
-void FakeChromotocolConnection::SetStateChangeCallback(
+void FakeSession::SetStateChangeCallback(
StateChangeCallback* callback) {
callback_.reset(callback);
}
-FakeSocket* FakeChromotocolConnection::control_channel() {
+FakeSocket* FakeSession::control_channel() {
return &control_channel_;
}
-FakeSocket* FakeChromotocolConnection::event_channel() {
+FakeSocket* FakeSession::event_channel() {
return &event_channel_;
}
-FakeSocket* FakeChromotocolConnection::video_channel() {
+FakeSocket* FakeSession::video_channel() {
return &video_channel_;
}
-FakeSocket* FakeChromotocolConnection::video_rtp_channel() {
+FakeSocket* FakeSession::video_rtp_channel() {
return &video_rtp_channel_;
}
-FakeSocket* FakeChromotocolConnection::video_rtcp_channel() {
+FakeSocket* FakeSession::video_rtcp_channel() {
return &video_rtcp_channel_;
}
-const std::string& FakeChromotocolConnection::jid() {
+const std::string& FakeSession::jid() {
return jid_;
}
-MessageLoop* FakeChromotocolConnection::message_loop() {
+MessageLoop* FakeSession::message_loop() {
return message_loop_;
}
const CandidateChromotocolConfig*
-FakeChromotocolConnection::candidate_config() {
+FakeSession::candidate_config() {
return candidate_config_.get();
}
-const ChromotocolConfig* FakeChromotocolConnection::config() {
+const ChromotocolConfig* FakeSession::config() {
CHECK(config_.get());
return config_.get();
}
-void FakeChromotocolConnection::set_config(const ChromotocolConfig* config) {
+void FakeSession::set_config(const ChromotocolConfig* config) {
config_.reset(config);
}
-void FakeChromotocolConnection::Close(Task* closed_task) {
+void FakeSession::Close(Task* closed_task) {
closed_ = true;
closed_task->Run();
delete closed_task;
}
+} // namespace protocol
+
} // namespace remoting
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/host_message_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698