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

Unified Diff: chrome/browser/local_discovery/service_discovery_client_mac_unittest.mm

Issue 1534583002: Migrate Local Discovery from net::IPAddressNumber to net::IPAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: chrome/browser/local_discovery/service_discovery_client_mac_unittest.mm
diff --git a/chrome/browser/local_discovery/service_discovery_client_mac_unittest.mm b/chrome/browser/local_discovery/service_discovery_client_mac_unittest.mm
index ccb10856674e990e14c88c2cb8c5f0f9833a4bd9..2dc08de3fc5aeebab38026377dc00a2b325ab00a 100644
--- a/chrome/browser/local_discovery/service_discovery_client_mac_unittest.mm
+++ b/chrome/browser/local_discovery/service_discovery_client_mac_unittest.mm
@@ -11,6 +11,7 @@
#include "chrome/browser/local_discovery/service_discovery_client_mac.h"
#include "chrome/common/local_discovery/service_discovery_client.h"
#include "content/public/test/test_browser_thread_bundle.h"
+#include "net/base/ip_address.h"
#include "net/base/ip_endpoint.h"
#include "net/base/net_util.h"
#include "testing/gtest_mac.h"
@@ -125,8 +126,8 @@ TEST_F(ServiceDiscoveryClientMacTest, ServiceResolver) {
const std::string kIp = "2001:4860:4860::8844";
const uint16_t kPort = 4321;
- net::IPAddressNumber ip_address;
- ASSERT_TRUE(net::ParseIPLiteralToNumber(kIp, &ip_address));
+ net::IPAddress ip_address;
+ ASSERT_TRUE(net::IPAddress::FromIPLiteral(kIp, &ip_address));
net::IPEndPoint endpoint(ip_address, kPort);
net::SockaddrStorage storage;
ASSERT_TRUE(endpoint.ToSockAddr(storage.addr, &storage.addr_len));

Powered by Google App Engine
This is Rietveld 408576698