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

Unified Diff: media/cast/test/utility/udp_proxy.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android Created 4 years, 11 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: media/cast/test/utility/udp_proxy.cc
diff --git a/media/cast/test/utility/udp_proxy.cc b/media/cast/test/utility/udp_proxy.cc
index 1e5c4faf3bd6ef35cd6d957f0e3000d6c76fea47..359b0de3dd6f1d7d57a45b49cad9cdebeda65522 100644
--- a/media/cast/test/utility/udp_proxy.cc
+++ b/media/cast/test/utility/udp_proxy.cc
@@ -669,7 +669,7 @@ class UDPProxyImpl : public UDPProxy {
net::NetLog* net_log)
: local_port_(local_port),
destination_(destination),
- destination_is_mutable_(destination.address().empty()),
+ destination_is_mutable_(destination.address_number().empty()),
proxy_thread_("media::cast::test::UdpProxy Thread"),
to_dest_pipe_(std::move(to_dest_pipe)),
from_dest_pipe_(std::move(from_dest_pipe)),
@@ -712,7 +712,7 @@ class UDPProxyImpl : public UDPProxy {
new net::WrappedIOBuffer(reinterpret_cast<char*>(&packet->front()));
size_t buf_size = packet->size();
int result;
- if (destination.address().empty()) {
+ if (destination.address_number().empty()) {
VLOG(1) << "Destination has not been set yet.";
result = net::ERR_INVALID_ARGUMENT;
} else {

Powered by Google App Engine
This is Rietveld 408576698