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

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: Plumbed SetPriority down from HttpStreamFactoryImpl::Job. Created 4 years, 8 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 8068a11daa9c836fd12620eb46d826d62bbd6b25..d5a14f136c3d61a3298ab881b6e5158a461fac35 100644
--- a/net/socket/socket_test_util.cc
+++ b/net/socket/socket_test_util.cc
@@ -1641,6 +1641,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_) {
@@ -1685,6 +1691,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