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

Unified Diff: content/browser/child_process_launcher_helper_posix.h

Issue 2749653002: allow unit_tests to re-create service manager context. (Closed)
Patch Set: 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
Index: content/browser/child_process_launcher_helper_posix.h
diff --git a/content/browser/child_process_launcher_helper_posix.h b/content/browser/child_process_launcher_helper_posix.h
index 8316ab903f87042813d47283233b799db1101d98..1a6e82b518b0b6926cfdc68a7d8c71e793fbe154 100644
--- a/content/browser/child_process_launcher_helper_posix.h
+++ b/content/browser/child_process_launcher_helper_posix.h
@@ -43,6 +43,10 @@ std::unique_ptr<FileDescriptorInfo> CreateDefaultPosixFilesToMap(
void SetFilesToShareForServicePosix(const std::string& service_name,
catalog::RequiredFileMap required_files);
+// Called by the TestServiceManagerContext to reset all previously registered
dgozman 2017/03/13 21:29:38 nit: don't mention class names in comments, they t
khmel 2017/03/13 21:53:04 Good point, done.
+// files.
+void ResetFilesToShareForTestingPosix();
+
// Opens the file in read mode at the given path. Note that the path should be
// relative and the way it is resolved is platform specific.
// |region| is set to the region of the file that should be read.
@@ -53,4 +57,4 @@ base::File OpenFileToShare(const base::FilePath& path,
} // namespace content
-#endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_POSIX_H_
+#endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_POSIX_H_
« no previous file with comments | « content/browser/child_process_launcher_helper_mac.cc ('k') | content/browser/child_process_launcher_helper_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698