| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/renderer_host/p2p/socket_host_test_utils.h" | 5 #include "content/browser/renderer_host/p2p/socket_host_test_utils.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/sys_byteorder.h" | 10 #include "base/sys_byteorder.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 } | 152 } |
| 153 | 153 |
| 154 void FakeSocket::SetOmniboxSpeculation() { | 154 void FakeSocket::SetOmniboxSpeculation() { |
| 155 NOTREACHED(); | 155 NOTREACHED(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 bool FakeSocket::WasEverUsed() const { | 158 bool FakeSocket::WasEverUsed() const { |
| 159 return true; | 159 return true; |
| 160 } | 160 } |
| 161 | 161 |
| 162 bool FakeSocket::UsingTCPFastOpen() const { | |
| 163 return false; | |
| 164 } | |
| 165 | |
| 166 bool FakeSocket::WasNpnNegotiated() const { | 162 bool FakeSocket::WasNpnNegotiated() const { |
| 167 return false; | 163 return false; |
| 168 } | 164 } |
| 169 | 165 |
| 170 net::NextProto FakeSocket::GetNegotiatedProtocol() const { | 166 net::NextProto FakeSocket::GetNegotiatedProtocol() const { |
| 171 return net::kProtoUnknown; | 167 return net::kProtoUnknown; |
| 172 } | 168 } |
| 173 | 169 |
| 174 bool FakeSocket::GetSSLInfo(net::SSLInfo* ssl_info) { | 170 bool FakeSocket::GetSSLInfo(net::SSLInfo* ssl_info) { |
| 175 return false; | 171 return false; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 210 |
| 215 void CreateStunError(std::vector<char>* packet) { | 211 void CreateStunError(std::vector<char>* packet) { |
| 216 CreateStunPacket(packet, kStunBindingError); | 212 CreateStunPacket(packet, kStunBindingError); |
| 217 } | 213 } |
| 218 | 214 |
| 219 net::IPEndPoint ParseAddress(const std::string& ip_str, uint16_t port) { | 215 net::IPEndPoint ParseAddress(const std::string& ip_str, uint16_t port) { |
| 220 net::IPAddressNumber ip; | 216 net::IPAddressNumber ip; |
| 221 EXPECT_TRUE(net::ParseIPLiteralToNumber(ip_str, &ip)); | 217 EXPECT_TRUE(net::ParseIPLiteralToNumber(ip_str, &ip)); |
| 222 return net::IPEndPoint(ip, port); | 218 return net::IPEndPoint(ip, port); |
| 223 } | 219 } |
| OLD | NEW |