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

Unified Diff: content/browser/child_process_launcher_helper_posix.h

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
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..059e567cd795003603d3fd710bdd65124eee4a49 100644
--- a/content/browser/child_process_launcher_helper_posix.h
+++ b/content/browser/child_process_launcher_helper_posix.h
@@ -43,6 +43,9 @@ std::unique_ptr<FileDescriptorInfo> CreateDefaultPosixFilesToMap(
void SetFilesToShareForServicePosix(const std::string& service_name,
catalog::RequiredFileMap required_files);
+// Called from unit_tests in order to reset all previously registered 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 +56,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