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

Unified Diff: content/public/test/mock_render_process_host.h

Issue 472383002: Add ProcessPowerCollector to audit power information. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iOS doesn't actually run chrome_browser_main, so removed ifdefs related to ios. Created 6 years, 4 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 | « chrome/chrome_tests_unit.gypi ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_process_host.h
diff --git a/content/public/test/mock_render_process_host.h b/content/public/test/mock_render_process_host.h
index 634017094921913ac039d8e371e61ad52d405a76..f769c5fa13dc333281f6df462e09cf3906e3a29d 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -103,6 +103,10 @@ class MockRenderProcessHost : public RenderProcessHost {
is_isolated_guest_ = is_isolated_guest;
}
+ void SetProcessHandle(scoped_ptr<base::ProcessHandle> new_handle) {
+ process_handle = new_handle.Pass();
+ }
+
private:
// Stores IPC messages that would have been sent to the renderer.
IPC::TestSink sink_;
@@ -118,6 +122,7 @@ class MockRenderProcessHost : public RenderProcessHost {
bool fast_shutdown_started_;
bool deletion_callback_called_;
bool is_isolated_guest_;
+ scoped_ptr<base::ProcessHandle> process_handle;
DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost);
};
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698