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/dns_session.h" | 5 #include "net/dns/dns_session.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 17 matching lines...) Expand all Loading... | |
28 ~TestClientSocketFactory() override; | 28 ~TestClientSocketFactory() override; |
29 | 29 |
30 scoped_ptr<DatagramClientSocket> CreateDatagramClientSocket( | 30 scoped_ptr<DatagramClientSocket> CreateDatagramClientSocket( |
31 DatagramSocket::BindType bind_type, | 31 DatagramSocket::BindType bind_type, |
32 const RandIntCallback& rand_int_cb, | 32 const RandIntCallback& rand_int_cb, |
33 NetLog* net_log, | 33 NetLog* net_log, |
34 const NetLog::Source& source) override; | 34 const NetLog::Source& source) override; |
35 | 35 |
36 scoped_ptr<StreamSocket> CreateTransportClientSocket( | 36 scoped_ptr<StreamSocket> CreateTransportClientSocket( |
37 const AddressList& addresses, | 37 const AddressList& addresses, |
38 SocketPerformanceWatcherFactory*, | |
bengr
2016/02/08 18:51:14
Forward declare?
tbansal1
2016/02/08 21:33:26
Done.
| |
38 NetLog*, | 39 NetLog*, |
39 const NetLog::Source&) override { | 40 const NetLog::Source&) override { |
40 NOTIMPLEMENTED(); | 41 NOTIMPLEMENTED(); |
41 return scoped_ptr<StreamSocket>(); | 42 return scoped_ptr<StreamSocket>(); |
42 } | 43 } |
43 | 44 |
44 scoped_ptr<SSLClientSocket> CreateSSLClientSocket( | 45 scoped_ptr<SSLClientSocket> CreateSSLClientSocket( |
45 scoped_ptr<ClientSocketHandle> transport_socket, | 46 scoped_ptr<ClientSocketHandle> transport_socket, |
46 const HostPortPair& host_and_port, | 47 const HostPortPair& host_and_port, |
47 const SSLConfig& ssl_config, | 48 const SSLConfig& ssl_config, |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
240 TEST_F(DnsSessionTest, HistogramTimeoutLong) { | 241 TEST_F(DnsSessionTest, HistogramTimeoutLong) { |
241 config_.timeout = base::TimeDelta::FromSeconds(15); | 242 config_.timeout = base::TimeDelta::FromSeconds(15); |
242 Initialize(2); | 243 Initialize(2); |
243 base::TimeDelta timeout = session_->NextTimeout(0, 0); | 244 base::TimeDelta timeout = session_->NextTimeout(0, 0); |
244 EXPECT_EQ(config_.timeout.InMilliseconds(), timeout.InMilliseconds()); | 245 EXPECT_EQ(config_.timeout.InMilliseconds(), timeout.InMilliseconds()); |
245 } | 246 } |
246 | 247 |
247 } // namespace | 248 } // namespace |
248 | 249 |
249 } // namespace net | 250 } // namespace net |
OLD | NEW |