Keep on sending stun binding requests on zero-cost networks.
This is useful to keep the NAT binding alive on backup connections.
BUG=
Review URL: https://codereview.webrtc.org/1737493004
Cr-Commit-Position: refs/heads/master@{#11862}
diff --git a/webrtc/p2p/base/stunrequest.h b/webrtc/p2p/base/stunrequest.h
index 44c1ebf..4217a81 100644
--- a/webrtc/p2p/base/stunrequest.h
+++ b/webrtc/p2p/base/stunrequest.h
@@ -39,6 +39,10 @@
// Only for testing.
void Flush(int msg_type);
+ // Returns true if at least one request with |msg_type| is scheduled for
+ // transmission. For testing only.
+ bool HasRequest(int msg_type);
+
// Removes a stun request that was added previously. This will happen
// automatically when a request succeeds, fails, or times out.
void Remove(StunRequest* request);