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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/api/cast_channel/cast_test_util.h" 5 #include "extensions/browser/api/cast_channel/cast_test_util.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "net/base/ip_address.h"
10
9 namespace extensions { 11 namespace extensions {
10 namespace api { 12 namespace api {
11 namespace cast_channel { 13 namespace cast_channel {
12 14
13 const char kTestExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf"; 15 const char kTestExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf";
14 16
15 MockCastTransport::MockCastTransport() { 17 MockCastTransport::MockCastTransport() {
16 } 18 }
17 MockCastTransport::~MockCastTransport() { 19 MockCastTransport::~MockCastTransport() {
18 } 20 }
(...skipping 13 matching lines...) Expand all
32 MockCastTransportDelegate::~MockCastTransportDelegate() { 34 MockCastTransportDelegate::~MockCastTransportDelegate() {
33 } 35 }
34 36
35 MockCastSocket::MockCastSocket() 37 MockCastSocket::MockCastSocket()
36 : CastSocket(kTestExtensionId), mock_transport_(new MockCastTransport) { 38 : CastSocket(kTestExtensionId), mock_transport_(new MockCastTransport) {
37 } 39 }
38 MockCastSocket::~MockCastSocket() { 40 MockCastSocket::~MockCastSocket() {
39 } 41 }
40 42
41 net::IPEndPoint CreateIPEndPointForTest() { 43 net::IPEndPoint CreateIPEndPointForTest() {
42 net::IPAddressNumber number; 44 return net::IPEndPoint(net::IPAddress(192, 168, 1, 1), 8009);
43 number.push_back(192);
44 number.push_back(168);
45 number.push_back(1);
46 number.push_back(1);
47 return net::IPEndPoint(number, 8009);
48 } 45 }
49 46
50 } // namespace cast_channel 47 } // namespace cast_channel
51 } // namespace api 48 } // namespace api
52 } // namespace extensions 49 } // namespace extensions
OLDNEW
« 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