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

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

Issue 4039003: Add experimental option for TCP FastOpen.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/client_socket.h ('k') | net/socket/socket_test_util.h » ('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 (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
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
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
OLDNEW
« no previous file with comments | « net/socket/client_socket.h ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698