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

Unified Diff: content/public/test/test_service_manager_context.cc

Issue 2749653002: allow unit_tests to re-create service manager context. (Closed)
Patch Set: comment updated Created 3 years, 9 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
« no previous file with comments | « content/browser/child_process_launcher_helper_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_service_manager_context.cc
diff --git a/content/public/test/test_service_manager_context.cc b/content/public/test/test_service_manager_context.cc
index a400534deb04ebf61177ab0d27216b06bfce2f1a..534647db84ac9ea7b36bbb5cd528ee18b0fa7f5d 100644
--- a/content/public/test/test_service_manager_context.cc
+++ b/content/public/test/test_service_manager_context.cc
@@ -4,6 +4,7 @@
#include "content/public/test/test_service_manager_context.h"
+#include "content/browser/child_process_launcher.h"
#include "content/browser/service_manager/service_manager_context.h"
namespace content {
@@ -11,6 +12,8 @@ namespace content {
TestServiceManagerContext::TestServiceManagerContext()
: context_(new ServiceManagerContext) {}
-TestServiceManagerContext::~TestServiceManagerContext() {}
+TestServiceManagerContext::~TestServiceManagerContext() {
+ ChildProcessLauncher::ResetRegisteredFilesForTesting();
+}
} // namespace content
« no previous file with comments | « content/browser/child_process_launcher_helper_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698