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

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

Issue 2606593002: [ServiceWorker] Associate interfaces.
Patch Set: Fix unit tests Created 4 years 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 | « content/public/test/mock_render_process_host.h ('k') | content/renderer/render_thread_impl.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.cc
diff --git a/content/public/test/mock_render_process_host.cc b/content/public/test/mock_render_process_host.cc
index 1d87a48ad2aaad174b1c5963fa088021616a0839..ddcb3c5b33252a711368033d8f7ebab3cd91f8d1 100644
--- a/content/public/test/mock_render_process_host.cc
+++ b/content/public/test/mock_render_process_host.cc
@@ -29,6 +29,7 @@
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_widget_host_iterator.h"
#include "content/public/browser/storage_partition.h"
+#include "content/public/test/fake_associated_interface_provider_impl.h"
#include "media/media_features.h"
#include "mojo/public/cpp/bindings/associated_interface_ptr.h"
@@ -260,6 +261,16 @@ MockRenderProcessHost::GetRemoteInterfaces() {
return remote_interfaces_.get();
}
+AssociatedInterfaceProvider*
+MockRenderProcessHost::GetAssociatedInterfaceProviderForTesting() {
+ if (!fake_associated_interface_provider_) {
+ fake_associated_interface_provider_ =
+ base::MakeUnique<FakeAssociatedInterfaceProviderImpl>();
+ }
+
+ return fake_associated_interface_provider_.get();
+}
+
std::unique_ptr<base::SharedPersistentMemoryAllocator>
MockRenderProcessHost::TakeMetricsAllocator() {
return nullptr;
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698