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

Unified Diff: net/socket/socket_test_util.h

Issue 15927019: net: Socket pools prioritize requests with ignore_limits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Small comment fix Created 7 years, 6 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.h
===================================================================
--- net/socket/socket_test_util.h (revision 203448)
+++ net/socket/socket_test_util.h (working copy)
@@ -1025,7 +1025,10 @@
// Releases connections until there is nothing to release.
void ReleaseAllConnections(KeepAlive keep_alive);
+ // Note that this uses 0-based indices, while GetOrderOfRequest takes and
+ // returns 0-based indices.
TestSocketRequest* request(int i) { return requests_[i]; }
+
size_t requests_size() const { return requests_.size(); }
ScopedVector<TestSocketRequest>* requests() { return &requests_; }
size_t completion_count() const { return completion_count_; }
« net/socket/client_socket_pool_base.cc ('K') | « net/socket/client_socket_pool_base_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698