| Index: remoting/protocol/fake_session.h
|
| diff --git a/remoting/protocol/fake_session.h b/remoting/protocol/fake_session.h
|
| index b7b02c8bd5f78c7321da6eb43f1e5592fcf9c258..b346f9cf4d1b686d8341a407595e110592f03512 100644
|
| --- a/remoting/protocol/fake_session.h
|
| +++ b/remoting/protocol/fake_session.h
|
| @@ -12,6 +12,7 @@
|
|
|
| #include "base/macros.h"
|
| #include "base/memory/weak_ptr.h"
|
| +#include "base/time/time.h"
|
| #include "remoting/protocol/fake_stream_socket.h"
|
| #include "remoting/protocol/session.h"
|
| #include "remoting/protocol/transport.h"
|
| @@ -34,6 +35,11 @@ class FakeSession : public Session {
|
| void set_error(ErrorCode error) { error_ = error; }
|
| bool is_closed() const { return closed_; }
|
|
|
| + // Sets delay for signaling message deliver when connected to a peer.
|
| + void set_signaling_delay(base::TimeDelta signaling_delay) {
|
| + signaling_delay_ = signaling_delay;
|
| + }
|
| +
|
| // Session interface.
|
| void SetEventHandler(EventHandler* event_handler) override;
|
| ErrorCode error() override;
|
| @@ -46,6 +52,9 @@ class FakeSession : public Session {
|
| // Callback provided to the |transport_|.
|
| void SendTransportInfo(std::unique_ptr<buzz::XmlElement> transport_info);
|
|
|
| + // Called by the |peer_| to deliver incoming |transport_info|.
|
| + void ProcessTransportInfo(std::unique_ptr<buzz::XmlElement> transport_info);
|
| +
|
| EventHandler* event_handler_ = nullptr;
|
| std::unique_ptr<SessionConfig> config_;
|
|
|
| @@ -58,6 +67,7 @@ class FakeSession : public Session {
|
| bool closed_ = false;
|
|
|
| base::WeakPtr<FakeSession> peer_;
|
| + base::TimeDelta signaling_delay_;
|
|
|
| base::WeakPtrFactory<FakeSession> weak_factory_;
|
|
|
|
|