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

Unified Diff: remoting/protocol/fake_session.cc

Issue 8046018: Parse termination reason and propagate the error to the Session interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 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/fake_session.h ('k') | remoting/protocol/jingle_messages.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_session.cc b/remoting/protocol/fake_session.cc
index 2445d0cc57a6e22c5192f7668e1601ddc4d3d1b1..a6ed4fdf556b7277c6a064092d82db3824eb2585 100644
--- a/remoting/protocol/fake_session.cc
+++ b/remoting/protocol/fake_session.cc
@@ -205,7 +205,9 @@ FakeSession::FakeSession()
: candidate_config_(CandidateSessionConfig::CreateDefault()),
config_(SessionConfig::GetDefault()),
message_loop_(NULL),
- jid_(kTestJid) {
+ jid_(kTestJid),
+ error_(OK),
+ closed_(false) {
}
FakeSession::~FakeSession() { }
@@ -222,6 +224,10 @@ void FakeSession::SetStateChangeCallback(StateChangeCallback* callback) {
callback_.reset(callback);
}
+Session::Error FakeSession::error() {
+ return error_;
+}
+
void FakeSession::CreateStreamChannel(
const std::string& name, const StreamChannelCallback& callback) {
FakeSocket* channel = new FakeSocket();
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/jingle_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698