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

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

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/foo_interface.mojom ('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 e246dc7d7755276ba68bc1efe6a402b6bc782606..6fbc9ab9065ee2032b4ea96569859afe975d8fea 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -25,6 +25,7 @@ class StoragePartition;
namespace content {
+class FakeAssociatedInterfaceProviderImpl;
class MockRenderProcessHostFactory;
class RenderWidgetHost;
@@ -97,6 +98,8 @@ class MockRenderProcessHost : public RenderProcessHost {
#endif
void ResumeDeferredNavigation(const GlobalRequestID& request_id) override;
service_manager::InterfaceProvider* GetRemoteInterfaces() override;
+ AssociatedInterfaceProvider* GetAssociatedInterfaceProviderForTesting()
+ override;
std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator()
override;
const base::TimeTicks& GetInitTimeForNavigationMetrics() const override;
@@ -165,6 +168,8 @@ class MockRenderProcessHost : public RenderProcessHost {
std::unique_ptr<base::ProcessHandle> process_handle;
int worker_ref_count_;
std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_;
+ std::unique_ptr<FakeAssociatedInterfaceProviderImpl>
+ fake_associated_interface_provider_;
std::unique_ptr<mojo::AssociatedInterfacePtr<mojom::Renderer>>
renderer_interface_;
« no previous file with comments | « content/public/test/foo_interface.mojom ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698