Chromium Code Reviews| Index: content/browser/loader/resource_dispatcher_host_unittest.cc |
| diff --git a/content/browser/loader/resource_dispatcher_host_unittest.cc b/content/browser/loader/resource_dispatcher_host_unittest.cc |
| index 03419356efbcfd1a1f0d016c7418245b7219b418..c35804fe5c1611e8821a6b65c7c3edc0377d130b 100644 |
| --- a/content/browser/loader/resource_dispatcher_host_unittest.cc |
| +++ b/content/browser/loader/resource_dispatcher_host_unittest.cc |
| @@ -16,6 +16,7 @@ |
| #include "content/browser/child_process_security_policy_impl.h" |
| #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| #include "content/browser/loader/resource_message_filter.h" |
| +#include "content/browser/worker_host/worker_service_impl.h" |
| #include "content/common/child_process_host_impl.h" |
| #include "content/common/resource_messages.h" |
| #include "content/common/view_messages.h" |
| @@ -591,6 +592,9 @@ class ResourceDispatcherHostTest : public testing::Test, |
| if (ResourceDispatcherHostImpl::Get()) |
| ResourceDispatcherHostImpl::Get()->CancelRequestsForContext( |
| browser_context_->GetResourceContext()); |
| + |
| + WorkerServiceImpl::GetInstance()->PerformUnitTestTeardown(); |
|
darin (slow to review)
2013/05/24 20:48:40
another approach might have been to register a Mes
shatch
2013/05/28 17:52:13
Didn't know about those, do you mind if I try that
|
| + |
| browser_context_.reset(); |
| message_loop_.RunUntilIdle(); |
| } |