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

Unified Diff: net/socket/socket_test_util.cc

Issue 1898133002: Add reprioritization to socket pools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated latest round of comments. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: net/socket/socket_test_util.cc
diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc
index ef21477adc6b9e7f54b0cdc032f16d34ef74427c..b84e673f4a5d0d7e82628515d0d1af4a3bb0b587 100644
--- a/net/socket/socket_test_util.cc
+++ b/net/socket/socket_test_util.cc
@@ -1650,6 +1650,12 @@ int MockTransportClientSocketPool::RequestSocket(
return job->Connect();
}
+void MockTransportClientSocketPool::SetPriority(const std::string& group_name,
+ ClientSocketHandle* handle,
+ RequestPriority priority) {
+ // TODO: Implement.
+}
+
void MockTransportClientSocketPool::CancelRequest(const std::string& group_name,
ClientSocketHandle* handle) {
for (std::unique_ptr<MockConnectJob>& it : job_list_) {
@@ -1694,6 +1700,12 @@ int MockSOCKSClientSocketPool::RequestSocket(const std::string& group_name,
net_log);
}
+void MockSOCKSClientSocketPool::SetPriority(const std::string& group_name,
+ ClientSocketHandle* handle,
+ RequestPriority priority) {
+ transport_pool_->SetPriority(group_name, handle, priority);
+}
+
void MockSOCKSClientSocketPool::CancelRequest(
const std::string& group_name,
ClientSocketHandle* handle) {

Powered by Google App Engine
This is Rietveld 408576698