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

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

Issue 1264333002: First step to refactor ServiceWorkerVersion to make event dispatching more modular. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rockot nits Created 4 years, 11 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/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 295c7727114797cb62855c6554a841e958868dec..a86b4f5dfebc216a0b93122b8c5c9e0dc39d79cb 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -14,6 +14,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;
@@ -136,6 +137,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_;
@@ -155,6 +160,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);
};
« no previous file with comments | « content/browser/service_worker/service_worker_version_unittest.cc ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698