| 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);
|
|
|