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

Unified Diff: remoting/protocol/fake_session.h

Issue 2035803002: Fix WebRtcFrameScheduler to wait for first key frame request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/connection_unittest.cc ('k') | 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 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_;
« no previous file with comments | « remoting/protocol/connection_unittest.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698