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

Unified Diff: content/common/mojo/service_registry_impl.h

Issue 1806843005: Promote {Add,Clear}ServiceOverrideForTesting to ServiceRegistry public interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit. Created 4 years, 9 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 | « no previous file | content/common/mojo/service_registry_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/service_registry_impl.h
diff --git a/content/common/mojo/service_registry_impl.h b/content/common/mojo/service_registry_impl.h
index 7c7748ee9549dbe2b53ec19d0bf8d1523b95a609..807924cb1e3714aeeed029e6644530f5ecf2233c 100644
--- a/content/common/mojo/service_registry_impl.h
+++ b/content/common/mojo/service_registry_impl.h
@@ -39,19 +39,16 @@ class CONTENT_EXPORT ServiceRegistryImpl
void BindRemoteServiceProvider(
mojo::shell::mojom::InterfaceProviderPtr service_provider);
- // Registers a local service factory to intercept ConnectToRemoteService
- // requests instead of actually connecting to the remote registry. Used only
- // for testing.
- void AddServiceOverrideForTesting(const std::string& service_name,
- const ServiceFactory& service_factory);
- void ClearServiceOverridesForTesting();
-
// ServiceRegistry overrides.
void AddService(const std::string& service_name,
const ServiceFactory service_factory) override;
void RemoveService(const std::string& service_name) override;
void ConnectToRemoteService(const base::StringPiece& service_name,
mojo::ScopedMessagePipeHandle handle) override;
+ void AddServiceOverrideForTesting(
+ const std::string& service_name,
+ const ServiceFactory& service_factory) override;
+ void ClearServiceOverridesForTesting() override;
bool IsBound() const;
« no previous file with comments | « no previous file | content/common/mojo/service_registry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698