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

Unified Diff: extensions/browser/api/cast_channel/cast_test_util.cc

Issue 1837713002: Migrate extensions/* to net::IPAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added a DCHECK 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
Index: extensions/browser/api/cast_channel/cast_test_util.cc
diff --git a/extensions/browser/api/cast_channel/cast_test_util.cc b/extensions/browser/api/cast_channel/cast_test_util.cc
index eb5908b0266a2a5bc4cc513e2afed1befcb68001..13a19641f2e0884bfa5c4f056c139554f02001bf 100644
--- a/extensions/browser/api/cast_channel/cast_test_util.cc
+++ b/extensions/browser/api/cast_channel/cast_test_util.cc
@@ -6,6 +6,8 @@
#include <utility>
+#include "net/base/ip_address.h"
+
namespace extensions {
namespace api {
namespace cast_channel {
@@ -39,12 +41,7 @@ MockCastSocket::~MockCastSocket() {
}
net::IPEndPoint CreateIPEndPointForTest() {
- net::IPAddressNumber number;
- number.push_back(192);
- number.push_back(168);
- number.push_back(1);
- number.push_back(1);
- return net::IPEndPoint(number, 8009);
+ return net::IPEndPoint(net::IPAddress(192, 168, 1, 1), 8009);
}
} // namespace cast_channel
« no previous file with comments | « extensions/browser/api/cast_channel/cast_channel_apitest.cc ('k') | extensions/browser/api/cast_channel/logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698