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

Unified Diff: google_apis/gcm/base/socket_stream_unittest.cc

Issue 1833393002: Migrate google_apis/gcm/* to net::IPAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | google_apis/gcm/engine/connection_handler_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/base/socket_stream_unittest.cc
diff --git a/google_apis/gcm/base/socket_stream_unittest.cc b/google_apis/gcm/base/socket_stream_unittest.cc
index ca53c3be4cce6a4b2c16fb1b4792822a34c4d0ac..6838ec42568f4e5597e34bc3fa6f376a4eae4c52 100644
--- a/google_apis/gcm/base/socket_stream_unittest.cc
+++ b/google_apis/gcm/base/socket_stream_unittest.cc
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "base/strings/string_piece.h"
+#include "net/base/ip_address.h"
#include "net/socket/socket_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -77,9 +78,8 @@ class GCMSocketStreamTest : public testing::Test {
};
GCMSocketStreamTest::GCMSocketStreamTest() {
- net::IPAddressNumber ip_number;
- net::ParseIPLiteralToNumber("127.0.0.1", &ip_number);
- address_list_ = net::AddressList::CreateFromIPAddress(ip_number, 5228);
+ address_list_ = net::AddressList::CreateFromIPAddress(
+ net::IPAddress::IPv4Localhost(), 5228);
}
GCMSocketStreamTest::~GCMSocketStreamTest() {}
« no previous file with comments | « no previous file | google_apis/gcm/engine/connection_handler_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698