Chromium Code Reviews| 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; } |
|
simonmorris
2011/09/26 23:33:44
Any reason not to have error() in this file, if
se
Sergey Ulanov
2011/09/27 01:09:46
error() is virtual, and there is clang rule that r
simonmorris
2011/09/27 01:26:10
OK.
|
| + |
| 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); |