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

Unified Diff: net/socket/udp_socket_unittest.cc

Issue 2809993003: ServerSetDoNotFragment skip IPv6 on ERR_ADDRESS_UNREACHABLE. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/udp_socket_unittest.cc
diff --git a/net/socket/udp_socket_unittest.cc b/net/socket/udp_socket_unittest.cc
index befa2da86088fe9246c141afad8754cf12899f3a..1a602125766aa3885adc848b5ac23d5a24b18555 100644
--- a/net/socket/udp_socket_unittest.cc
+++ b/net/socket/udp_socket_unittest.cc
@@ -606,7 +606,8 @@ TEST_F(UDPSocketTest, ServerSetDoNotFragment) {
UDPServerSocket server(nullptr, NetLogSource());
int rv = server.Listen(bind_address);
// May fail on IPv6 is IPv6 is not configure
- if (bind_address.address().IsIPv6() && rv == ERR_ADDRESS_INVALID)
+ if (bind_address.address().IsIPv6() &&
+ (rv == ERR_ADDRESS_INVALID || rv == ERR_ADDRESS_UNREACHABLE))
return;
EXPECT_THAT(rv, IsOk());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698