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

Unified Diff: remoting/protocol/network_settings.h

Issue 1687543002: Fix IceTransportTest.TestBrokenTransport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/ice_transport_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/network_settings.h
diff --git a/remoting/protocol/network_settings.h b/remoting/protocol/network_settings.h
index 86485284d4710c8d7901585c42d12ed6f60b7d49..73d5171eced3a58a876c08e1b5803646e55f1bde 100644
--- a/remoting/protocol/network_settings.h
+++ b/remoting/protocol/network_settings.h
@@ -10,6 +10,7 @@
#include <string>
#include "base/logging.h"
+#include "base/time/time.h"
#include "remoting/protocol/port_range.h"
namespace remoting {
@@ -44,17 +45,20 @@ struct NetworkSettings {
NAT_TRAVERSAL_OUTGOING
};
- NetworkSettings() : flags(NAT_TRAVERSAL_DISABLED) {
- DCHECK(!(flags & (NAT_TRAVERSAL_STUN | NAT_TRAVERSAL_RELAY)) ||
- (flags & NAT_TRAVERSAL_OUTGOING));
- }
+ NetworkSettings() {}
explicit NetworkSettings(uint32_t flags) : flags(flags) {}
- uint32_t flags;
+ uint32_t flags = NAT_TRAVERSAL_DISABLED;
// Range of ports used by P2P sessions.
PortRange port_range;
+
+ // ICE Timeout.
+ base::TimeDelta ice_timeout = base::TimeDelta::FromSeconds(15);
+
+ // ICE reconnect attempts.
+ int ice_reconnect_attempts = 2;
};
} // namespace protocol
« no previous file with comments | « remoting/protocol/ice_transport_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698