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

Unified Diff: webrtc/p2p/base/faketransportcontroller.h

Issue 1369773003: Add a continual_gathering_policy in PeerConnection RTCConfiguration (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 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
Index: webrtc/p2p/base/faketransportcontroller.h
diff --git a/webrtc/p2p/base/faketransportcontroller.h b/webrtc/p2p/base/faketransportcontroller.h
index e356e814b754a1b2b6f88f987b7bd33cb46e943a..c36b1a1611b2e48f20e5f907db97c163c5349430 100644
--- a/webrtc/p2p/base/faketransportcontroller.h
+++ b/webrtc/p2p/base/faketransportcontroller.h
@@ -182,11 +182,13 @@ class FakeTransportChannel : public TransportChannelImpl,
void SetReceiving(bool receiving) { set_receiving(receiving); }
- void SetReceivingTimeout(int timeout) override {
- receiving_timeout_ = timeout;
+ void SetIceConfig(const IceConfig& config) override {
+ receiving_timeout_ = config.receiving_timeout_ms;
+ continue_getting_ports_ = config.continue_getting_ports;
}
int receiving_timeout() const { return receiving_timeout_; }
+ bool continue_getting_ports() const { return continue_getting_ports_; }
int SendPacket(const char* data,
size_t len,
@@ -319,6 +321,7 @@ class FakeTransportChannel : public TransportChannelImpl,
std::vector<std::string> srtp_ciphers_;
std::string chosen_srtp_cipher_;
int receiving_timeout_ = -1;
+ bool continue_getting_ports_ = false;
IceRole role_ = ICEROLE_UNKNOWN;
uint64 tiebreaker_ = 0;
std::string ice_ufrag_;

Powered by Google App Engine
This is Rietveld 408576698