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

Side by Side Diff: net/socket/websocket_transport_client_socket_pool_unittest.cc

Issue 663043004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 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 #include "net/socket/websocket_transport_client_socket_pool.h" 5 #include "net/socket/websocket_transport_client_socket_pool.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 histograms_(new ClientSocketPoolHistograms("TCPUnitTest")), 60 histograms_(new ClientSocketPoolHistograms("TCPUnitTest")),
61 host_resolver_(new MockHostResolver), 61 host_resolver_(new MockHostResolver),
62 client_socket_factory_(&net_log_), 62 client_socket_factory_(&net_log_),
63 pool_(kMaxSockets, 63 pool_(kMaxSockets,
64 kMaxSocketsPerGroup, 64 kMaxSocketsPerGroup,
65 histograms_.get(), 65 histograms_.get(),
66 host_resolver_.get(), 66 host_resolver_.get(),
67 &client_socket_factory_, 67 &client_socket_factory_,
68 NULL) {} 68 NULL) {}
69 69
70 virtual ~WebSocketTransportClientSocketPoolTest() { 70 ~WebSocketTransportClientSocketPoolTest() override {
71 ReleaseAllConnections(ClientSocketPoolTest::NO_KEEP_ALIVE); 71 ReleaseAllConnections(ClientSocketPoolTest::NO_KEEP_ALIVE);
72 EXPECT_TRUE(WebSocketEndpointLockManager::GetInstance()->IsEmpty()); 72 EXPECT_TRUE(WebSocketEndpointLockManager::GetInstance()->IsEmpty());
73 } 73 }
74 74
75 int StartRequest(const std::string& group_name, RequestPriority priority) { 75 int StartRequest(const std::string& group_name, RequestPriority priority) {
76 scoped_refptr<TransportSocketParams> params( 76 scoped_refptr<TransportSocketParams> params(
77 new TransportSocketParams( 77 new TransportSocketParams(
78 HostPortPair("www.google.com", 80), 78 HostPortPair("www.google.com", 80),
79 false, 79 false,
80 false, 80 false,
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 EXPECT_EQ(OK, request(1)->WaitForResult()); 1134 EXPECT_EQ(OK, request(1)->WaitForResult());
1135 // Third socket should still be waiting for endpoint. 1135 // Third socket should still be waiting for endpoint.
1136 ASSERT_FALSE(request(2)->handle()->is_initialized()); 1136 ASSERT_FALSE(request(2)->handle()->is_initialized());
1137 EXPECT_EQ(LOAD_STATE_WAITING_FOR_AVAILABLE_SOCKET, 1137 EXPECT_EQ(LOAD_STATE_WAITING_FOR_AVAILABLE_SOCKET,
1138 request(2)->handle()->GetLoadState()); 1138 request(2)->handle()->GetLoadState());
1139 } 1139 }
1140 1140
1141 } // namespace 1141 } // namespace
1142 1142
1143 } // namespace net 1143 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/websocket_endpoint_lock_manager_unittest.cc ('k') | net/socket_stream/socket_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698