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

Side by Side Diff: net/dns/dns_session_unittest.cc

Issue 1376473003: Notify NQE of TCP RTT values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed net tests compilation issues, Added tests Created 4 years, 10 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 (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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698