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

Unified Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 14137016: Lower the priority of shared workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix valgrind. Created 7 years, 7 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: 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();
}

Powered by Google App Engine
This is Rietveld 408576698