summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-19 23:06:42 +0000
committerasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-19 23:06:42 +0000
commit5713385882f91dd6c49701b377495dad31df7d19 (patch)
tree94ab3053a7821923d97f80b9a8ed9aa2f20c064f /content
parent6a64e8a2affa73435a7f90dcddb4cad873c1884e (diff)
downloadchromium_src-5713385882f91dd6c49701b377495dad31df7d19.zip
chromium_src-5713385882f91dd6c49701b377495dad31df7d19.tar.gz
chromium_src-5713385882f91dd6c49701b377495dad31df7d19.tar.bz2
Add a file thread to ResourceDispatcherHostTest.
During content_unittests:ResourceDispatcherHostTest.IgnoreCancelForDownloads, DownloadResourceHandler releases a DownloadBuffer and posts a task to the FILE thread so that DownloadFileManager can handle the buffer. If there's no FILE thread, the download doesn't complete processing and the DownloadBuffer is leaked. BUG=Leak of DownloadBuffer during IgnoreCancelForDownloads test. TEST=valgrind tests Review URL: http://codereview.chromium.org/7941026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/renderer_host/resource_dispatcher_host_unittest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/browser/renderer_host/resource_dispatcher_host_unittest.cc b/content/browser/renderer_host/resource_dispatcher_host_unittest.cc
index 8dfc1ad..7f9fa9a 100644
--- a/content/browser/renderer_host/resource_dispatcher_host_unittest.cc
+++ b/content/browser/renderer_host/resource_dispatcher_host_unittest.cc
@@ -258,6 +258,7 @@ class ResourceDispatcherHostTest : public testing::Test,
public:
ResourceDispatcherHostTest()
: ui_thread_(BrowserThread::UI, &message_loop_),
+ file_thread_(BrowserThread::FILE, &message_loop_),
io_thread_(BrowserThread::IO, &message_loop_),
ALLOW_THIS_IN_INITIALIZER_LIST(filter_(new ForwardingFilter(this))),
host_(ResourceQueue::DelegateSet()),
@@ -386,6 +387,7 @@ class ResourceDispatcherHostTest : public testing::Test,
MessageLoopForIO message_loop_;
BrowserThread ui_thread_;
+ BrowserThread file_thread_;
BrowserThread io_thread_;
scoped_refptr<ForwardingFilter> filter_;
ResourceDispatcherHost host_;