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

Unified Diff: webrtc/api/webrtcsession_unittest.cc

Issue 2025573002: Use continual gathering to restore backup connections (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address comments and revised tests 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
Index: webrtc/api/webrtcsession_unittest.cc
diff --git a/webrtc/api/webrtcsession_unittest.cc b/webrtc/api/webrtcsession_unittest.cc
index ee1d19b23adaee4cf899e28666b294dafc0aa127..6f66319b3b2060f4d6823466cc67b1237b3391a5 100644
--- a/webrtc/api/webrtcsession_unittest.cc
+++ b/webrtc/api/webrtcsession_unittest.cc
@@ -2242,7 +2242,10 @@ TEST_F(WebRtcSessionTest,
candidates = local_desc->candidates(kMediaContentIndex0);
size_t num_local_candidates = candidates->count();
// Enable Continual Gathering
- session_->SetIceConfig(cricket::IceConfig(-1, -1, true, false, -1, true));
+ cricket::IceConfig config;
+ config.continual_gathering_policy = cricket::GATHER_CONTINUALLY;
+ config.presume_writable_when_fully_relayed = true;
Taylor Brandstetter 2016/06/29 22:12:27 I don't think presume_writable_when_fully_relayed
honghaiz3 2016/06/30 01:04:21 Done.
+ session_->SetIceConfig(config);
// Bring down the network interface to trigger candidate removals.
RemoveInterface(rtc::SocketAddress(kClientAddrHost1, kClientAddrPort));
// Verify that all local candidates are removed.

Powered by Google App Engine
This is Rietveld 408576698