summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_throttler_entry.cc
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-02 01:27:14 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-02 01:27:14 +0000
commitc35d5507f07fa3a7820b991b69786c6175590849 (patch)
tree836f70451be279d415a04a51f990733c93af5507 /net/url_request/url_request_throttler_entry.cc
parentd03a781e9a10277278b466060bc0ccaede6ae551 (diff)
downloadchromium_src-c35d5507f07fa3a7820b991b69786c6175590849.zip
chromium_src-c35d5507f07fa3a7820b991b69786c6175590849.tar.gz
chromium_src-c35d5507f07fa3a7820b991b69786c6175590849.tar.bz2
Single-threaded stress test for URLRequestThrottlerManager
to try to reproduce bug seen only in the wild. On my system, it does not reproduce the bug. Want to check in in case it reproduces on any of the bots. Also, add code that will make minidumps of this crash more information-rich, to help track down problem. Add guard buffers around a couple of key things, to help identify memory overwrite. Add simple unit test to make sure the new style of CHECK for one or more null values in the map works correctly. BUG=71721 TEST=none Review URL: http://codereview.chromium.org/6598043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_throttler_entry.cc')
-rw-r--r--net/url_request/url_request_throttler_entry.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/url_request/url_request_throttler_entry.cc b/net/url_request/url_request_throttler_entry.cc
index bf97feb..6db76c3 100644
--- a/net/url_request/url_request_throttler_entry.cc
+++ b/net/url_request/url_request_throttler_entry.cc
@@ -187,6 +187,10 @@ void URLRequestThrottlerEntry::ReceivedContentWasMalformed() {
exponential_backoff_release_time_ = CalculateExponentialBackoffReleaseTime();
}
+void URLRequestThrottlerEntry::SetEntryLifetimeMsForTest(int lifetime_ms) {
+ entry_lifetime_ms_ = lifetime_ms;
+}
+
URLRequestThrottlerEntry::~URLRequestThrottlerEntry() {
}