| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/platform_thread.h" | 10 #include "base/platform_thread.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 return ERR_UNEXPECTED; | 73 return ERR_UNEXPECTED; |
| 74 } | 74 } |
| 75 | 75 |
| 76 virtual const BoundNetLog& NetLog() const { | 76 virtual const BoundNetLog& NetLog() const { |
| 77 return net_log_; | 77 return net_log_; |
| 78 } | 78 } |
| 79 | 79 |
| 80 virtual void SetSubresourceSpeculation() {} | 80 virtual void SetSubresourceSpeculation() {} |
| 81 virtual void SetOmniboxSpeculation() {} | 81 virtual void SetOmniboxSpeculation() {} |
| 82 virtual bool WasEverUsed() const { return was_used_to_convey_data_; } | 82 virtual bool WasEverUsed() const { return was_used_to_convey_data_; } |
| 83 virtual bool UsingTCPFastOpen() const { return false; } |
| 83 | 84 |
| 84 private: | 85 private: |
| 85 bool connected_; | 86 bool connected_; |
| 86 BoundNetLog net_log_; | 87 BoundNetLog net_log_; |
| 87 bool was_used_to_convey_data_; | 88 bool was_used_to_convey_data_; |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(MockClientSocket); | 90 DISALLOW_COPY_AND_ASSIGN(MockClientSocket); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 class TestConnectJob; | 93 class TestConnectJob; |
| (...skipping 2897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2990 ASSERT_EQ(OK, callback1.WaitForResult()); | 2991 ASSERT_EQ(OK, callback1.WaitForResult()); |
| 2991 | 2992 |
| 2992 handle1.Reset(); | 2993 handle1.Reset(); |
| 2993 | 2994 |
| 2994 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); | 2995 EXPECT_EQ(1, pool_->IdleSocketCountInGroup("a")); |
| 2995 } | 2996 } |
| 2996 | 2997 |
| 2997 } // namespace | 2998 } // namespace |
| 2998 | 2999 |
| 2999 } // namespace net | 3000 } // namespace net |
| OLD | NEW |