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 1e05fd5a10d1a25e26324c4b3dbc62e4f6b2aca7..fd02f8539b1a2a61c4c778a2346d6ca2906ee6c7 100644 |
--- a/content/public/test/mock_render_process_host.h |
+++ b/content/public/test/mock_render_process_host.h |
@@ -10,6 +10,7 @@ |
#include "base/observer_list.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_process_host_factory.h" |
+#include "content/public/common/service_registry.h" |
#include "ipc/ipc_test_sink.h" |
class StoragePartition; |
@@ -130,6 +131,10 @@ class MockRenderProcessHost : public RenderProcessHost { |
int worker_ref_count() const { return worker_ref_count_; } |
+ void SetServiceRegistry(scoped_ptr<ServiceRegistry> service_registry) { |
+ service_registry_ = std::move(service_registry); |
+ } |
+ |
private: |
// Stores IPC messages that would have been sent to the renderer. |
IPC::TestSink sink_; |
@@ -149,6 +154,7 @@ class MockRenderProcessHost : public RenderProcessHost { |
bool is_process_backgrounded_; |
scoped_ptr<base::ProcessHandle> process_handle; |
int worker_ref_count_; |
+ scoped_ptr<ServiceRegistry> service_registry_; |
DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost); |
}; |