| 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/socket/client_socket_pool_base.h" | 5 #include "net/socket/client_socket_pool_base.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; } | 190 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; } |
| 191 void GetConnectionAttempts(ConnectionAttempts* out) const override { | 191 void GetConnectionAttempts(ConnectionAttempts* out) const override { |
| 192 out->clear(); | 192 out->clear(); |
| 193 } | 193 } |
| 194 void ClearConnectionAttempts() override {} | 194 void ClearConnectionAttempts() override {} |
| 195 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 195 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 196 int64_t GetTotalReceivedBytes() const override { | 196 int64_t GetTotalReceivedBytes() const override { |
| 197 NOTIMPLEMENTED(); | 197 NOTIMPLEMENTED(); |
| 198 return 0; | 198 return 0; |
| 199 } | 199 } |
| 200 void DumpMemoryStats( |
| 201 base::trace_event::MemoryAllocatorDump* dump) const override { |
| 202 NOTREACHED(); |
| 203 } |
| 200 | 204 |
| 201 private: | 205 private: |
| 202 bool connected_; | 206 bool connected_; |
| 203 bool has_unread_data_; | 207 bool has_unread_data_; |
| 204 NetLogWithSource net_log_; | 208 NetLogWithSource net_log_; |
| 205 bool was_used_to_convey_data_; | 209 bool was_used_to_convey_data_; |
| 206 | 210 |
| 207 DISALLOW_COPY_AND_ASSIGN(MockClientSocket); | 211 DISALLOW_COPY_AND_ASSIGN(MockClientSocket); |
| 208 }; | 212 }; |
| 209 | 213 |
| (...skipping 3721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3931 request(1)->handle()->Reset(); | 3935 request(1)->handle()->Reset(); |
| 3932 ASSERT_EQ(1, pool_->NumConnectJobsInGroup("a")); | 3936 ASSERT_EQ(1, pool_->NumConnectJobsInGroup("a")); |
| 3933 | 3937 |
| 3934 EXPECT_THAT(request(2)->WaitForResult(), IsOk()); | 3938 EXPECT_THAT(request(2)->WaitForResult(), IsOk()); |
| 3935 EXPECT_FALSE(request(1)->have_result()); | 3939 EXPECT_FALSE(request(1)->have_result()); |
| 3936 } | 3940 } |
| 3937 | 3941 |
| 3938 } // namespace | 3942 } // namespace |
| 3939 | 3943 |
| 3940 } // namespace net | 3944 } // namespace net |
| OLD | NEW |