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

Side by Side Diff: net/socket/transport_client_socket_pool_test_util.h

Issue 1898603002: Move Network Quality Estimator files to //net/nqe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, removed //net/socket/OWNERS Created 4 years, 7 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
« no previous file with comments | « net/socket/transport_client_socket_pool.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Test methods and classes common to transport_client_socket_pool_unittest.cc 5 // Test methods and classes common to transport_client_socket_pool_unittest.cc
6 // and websocket_transport_client_socket_pool_unittest.cc. If you find you need 6 // and websocket_transport_client_socket_pool_unittest.cc. If you find you need
7 // to use these for another purpose, consider moving them to socket_test_util.h. 7 // to use these for another purpose, consider moving them to socket_test_util.h.
8 8
9 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_TEST_UTIL_H_ 9 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_TEST_UTIL_H_
10 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_TEST_UTIL_H_ 10 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_TEST_UTIL_H_
11 11
12 #include <memory> 12 #include <memory>
13 #include <queue> 13 #include <queue>
14 14
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "net/base/address_list.h" 19 #include "net/base/address_list.h"
20 #include "net/base/socket_performance_watcher.h"
21 #include "net/log/net_log.h" 20 #include "net/log/net_log.h"
22 #include "net/socket/client_socket_factory.h" 21 #include "net/socket/client_socket_factory.h"
23 #include "net/socket/client_socket_handle.h" 22 #include "net/socket/client_socket_handle.h"
23 #include "net/socket/socket_performance_watcher.h"
24 #include "net/socket/stream_socket.h" 24 #include "net/socket/stream_socket.h"
25 25
26 namespace net { 26 namespace net {
27 27
28 class ClientSocketHandle; 28 class ClientSocketHandle;
29 class IPEndPoint; 29 class IPEndPoint;
30 30
31 // Make sure |handle| sets load times correctly when it has been assigned a 31 // Make sure |handle| sets load times correctly when it has been assigned a
32 // reused socket. Uses gtest expectations. 32 // reused socket. Uses gtest expectations.
33 void TestLoadTimingInfoConnectedReused(const ClientSocketHandle& handle); 33 void TestLoadTimingInfoConnectedReused(const ClientSocketHandle& handle);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 base::TimeDelta delay_; 124 base::TimeDelta delay_;
125 std::queue<base::Closure> triggerable_sockets_; 125 std::queue<base::Closure> triggerable_sockets_;
126 base::Closure run_loop_quit_closure_; 126 base::Closure run_loop_quit_closure_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(MockTransportClientSocketFactory); 128 DISALLOW_COPY_AND_ASSIGN(MockTransportClientSocketFactory);
129 }; 129 };
130 130
131 } // namespace net 131 } // namespace net
132 132
133 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_TEST_UTIL_H_ 133 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/socket/transport_client_socket_pool.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698