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

Unified Diff: net/http/http_cache_unittest.cc

Issue 1476123002: Bounce all requests off the cache lock after 25ms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke comments Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | net/http/mock_http_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_unittest.cc
diff --git a/net/http/http_cache_unittest.cc b/net/http/http_cache_unittest.cc
index 84dec613ce141988ce495dd4c2d98bbc757ff023..c2943a93351b3e3c91ca1340f0da0a8ed643958c 100644
--- a/net/http/http_cache_unittest.cc
+++ b/net/http/http_cache_unittest.cc
@@ -1688,11 +1688,10 @@ TEST(HttpCache, SimpleGET_ManyWriters_BypassCache) {
}
}
-// Tests that a (simulated) timeout allows transactions waiting on the cache
-// lock to continue.
+// Tests that a short timeout allows transactions waiting on the cache lock to
+// continue.
TEST(HttpCache, SimpleGET_WriterTimeout) {
MockHttpCache cache;
- cache.BypassCacheLock();
MockHttpRequest request(kSimpleGET_Transaction);
Context c1, c2;
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | net/http/mock_http_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698