Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/dns/address_sorter_posix.h" | 5 #include "net/dns/address_sorter_posix.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 101 | 101 |
| 102 scoped_ptr<DatagramClientSocket> CreateDatagramClientSocket( | 102 scoped_ptr<DatagramClientSocket> CreateDatagramClientSocket( |
| 103 DatagramSocket::BindType, | 103 DatagramSocket::BindType, |
| 104 const RandIntCallback&, | 104 const RandIntCallback&, |
| 105 NetLog*, | 105 NetLog*, |
| 106 const NetLog::Source&) override { | 106 const NetLog::Source&) override { |
| 107 return scoped_ptr<DatagramClientSocket>(new TestUDPClientSocket(&mapping_)); | 107 return scoped_ptr<DatagramClientSocket>(new TestUDPClientSocket(&mapping_)); |
| 108 } | 108 } |
| 109 scoped_ptr<StreamSocket> CreateTransportClientSocket( | 109 scoped_ptr<StreamSocket> CreateTransportClientSocket( |
| 110 const AddressList&, | 110 const AddressList&, |
| 111 SocketPerformanceWatcherFactory*, | |
|
bengr
2016/02/08 18:51:14
Forward declare?
tbansal1
2016/02/08 21:33:26
Done.
| |
| 111 NetLog*, | 112 NetLog*, |
| 112 const NetLog::Source&) override { | 113 const NetLog::Source&) override { |
| 113 NOTIMPLEMENTED(); | 114 NOTIMPLEMENTED(); |
| 114 return scoped_ptr<StreamSocket>(); | 115 return scoped_ptr<StreamSocket>(); |
| 115 } | 116 } |
| 116 scoped_ptr<SSLClientSocket> CreateSSLClientSocket( | 117 scoped_ptr<SSLClientSocket> CreateSSLClientSocket( |
| 117 scoped_ptr<ClientSocketHandle>, | 118 scoped_ptr<ClientSocketHandle>, |
| 118 const HostPortPair&, | 119 const HostPortPair&, |
| 119 const SSLConfig&, | 120 const SSLConfig&, |
| 120 const SSLClientSocketContext&) override { | 121 const SSLClientSocketContext&) override { |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 323 AddMapping("4000::1", "4000::10"); // global unicast | 324 AddMapping("4000::1", "4000::10"); // global unicast |
| 324 AddMapping("ff32::2", "fe81::20"); // deprecated link-local multicast | 325 AddMapping("ff32::2", "fe81::20"); // deprecated link-local multicast |
| 325 GetSourceInfo("fe81::20")->deprecated = true; | 326 GetSourceInfo("fe81::20")->deprecated = true; |
| 326 const char* const addresses[] = { "ff3e::1", "ff32::2", "4000::1", "ff32::1", | 327 const char* const addresses[] = { "ff3e::1", "ff32::2", "4000::1", "ff32::1", |
| 327 "::1", "8.0.0.1", NULL }; | 328 "::1", "8.0.0.1", NULL }; |
| 328 const int order[] = { 4, 3, 0, 2, 1, -1 }; | 329 const int order[] = { 4, 3, 0, 2, 1, -1 }; |
| 329 Verify(addresses, order); | 330 Verify(addresses, order); |
| 330 } | 331 } |
| 331 | 332 |
| 332 } // namespace net | 333 } // namespace net |
| OLD | NEW |