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

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

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
Patch Set: . Created 4 years, 6 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
« no previous file with comments | « content/public/renderer/render_thread.h ('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 a7aca5f9f77452c19a0be6efa3e374595733d003..ce04990a856086e6517d4370109002f16b93f3b0 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -17,6 +17,8 @@
#include "content/public/browser/render_process_host_factory.h"
#include "content/public/common/service_registry.h"
#include "ipc/ipc_test_sink.h"
+#include "services/shell/public/cpp/interface_provider.h"
+#include "services/shell/public/cpp/interface_registry.h"
class StoragePartition;
@@ -93,7 +95,8 @@ class MockRenderProcessHost : public RenderProcessHost {
#endif
void ResumeDeferredNavigation(const GlobalRequestID& request_id) override;
void NotifyTimezoneChange(const std::string& zone_id) override;
- ServiceRegistry* GetServiceRegistry() override;
+ shell::InterfaceRegistry* GetInterfaceRegistry() override;
+ shell::InterfaceProvider* GetRemoteInterfaces() override;
shell::Connection* GetChildConnection() override;
std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator()
override;
@@ -137,8 +140,13 @@ class MockRenderProcessHost : public RenderProcessHost {
int worker_ref_count() const { return worker_ref_count_; }
- void SetServiceRegistry(std::unique_ptr<ServiceRegistry> service_registry) {
- service_registry_ = std::move(service_registry);
+ void SetInterfaceRegistry(
+ std::unique_ptr<shell::InterfaceRegistry> interface_registry) {
+ interface_registry_ = std::move(interface_registry);
+ }
+ void SetRemoteInterfaces(
+ std::unique_ptr<shell::InterfaceProvider> remote_interfaces) {
+ remote_interfaces_ = std::move(remote_interfaces);
}
private:
@@ -160,7 +168,8 @@ class MockRenderProcessHost : public RenderProcessHost {
bool is_process_backgrounded_;
std::unique_ptr<base::ProcessHandle> process_handle;
int worker_ref_count_;
- std::unique_ptr<ServiceRegistry> service_registry_;
+ std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
+ std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost);
};
« no previous file with comments | « content/public/renderer/render_thread.h ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698