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

Unified Diff: remoting/protocol/fake_session.h

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 | « no previous file | remoting/protocol/fake_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_session.h
diff --git a/remoting/protocol/fake_session.h b/remoting/protocol/fake_session.h
index d223774922f24df05d0dd42b1ece3cbda5d5aa1a..d415ab1abe9587a1df501b5570af06f2131d0de1 100644
--- a/remoting/protocol/fake_session.h
+++ b/remoting/protocol/fake_session.h
@@ -130,6 +130,8 @@ class FakeSession : public Session {
message_loop_ = message_loop;
}
+ void set_error(Session::Error error) { error_ = error; }
+
bool is_closed() const { return closed_; }
FakeSocket* GetStreamChannel(const std::string& name);
@@ -138,6 +140,8 @@ class FakeSession : public Session {
// Session interface.
virtual void SetStateChangeCallback(StateChangeCallback* callback);
+ virtual Session::Error error();
+
virtual void CreateStreamChannel(
const std::string& name, const StreamChannelCallback& callback);
virtual void CreateDatagramChannel(
@@ -179,6 +183,8 @@ class FakeSession : public Session {
std::string shared_secret_;
std::string jid_;
+
+ Session::Error error_;
bool closed_;
DISALLOW_COPY_AND_ASSIGN(FakeSession);
« no previous file with comments | « no previous file | remoting/protocol/fake_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698