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 d6dcea0e02899415f87600806604c33400fc1de4..9c5a8fa907f8b373c8d079cdf583799ec9972a4c 100644 |
--- a/content/public/test/mock_render_process_host.h |
+++ b/content/public/test/mock_render_process_host.h |
@@ -11,6 +11,7 @@ |
#include "base/macros.h" |
#include "base/memory/scoped_vector.h" |
+#include "base/metrics/persistent_memory_allocator.h" |
#include "base/observer_list.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_process_host_factory.h" |
@@ -92,6 +93,8 @@ class MockRenderProcessHost : public RenderProcessHost { |
void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
void NotifyTimezoneChange(const std::string& zone_id) override; |
ServiceRegistry* GetServiceRegistry() override; |
+ scoped_ptr<base::SharedPersistentMemoryAllocator> ExtractMetricsAllocator() |
+ override; |
const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
bool SubscribeUniformEnabled() const override; |
void OnAddSubscription(unsigned int target) override; |
@@ -140,6 +143,11 @@ class MockRenderProcessHost : public RenderProcessHost { |
service_registry_ = std::move(service_registry); |
} |
+ void SetMetricsAllocator( |
+ scoped_ptr<base::SharedPersistentMemoryAllocator> allocator) { |
+ metrics_allocator_ = std::move(allocator); |
+ } |
+ |
private: |
// Stores IPC messages that would have been sent to the renderer. |
IPC::TestSink sink_; |
@@ -160,6 +168,7 @@ class MockRenderProcessHost : public RenderProcessHost { |
scoped_ptr<base::ProcessHandle> process_handle; |
int worker_ref_count_; |
scoped_ptr<ServiceRegistry> service_registry_; |
+ scoped_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; |
DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost); |
}; |