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

Unified Diff: mojo/service_manager/service_manager_unittest.cc

Issue 337533002: Introduce internal::ServiceRegistry to prepare for ServiceProvider split. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge problems Created 6 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
Index: mojo/service_manager/service_manager_unittest.cc
diff --git a/mojo/service_manager/service_manager_unittest.cc b/mojo/service_manager/service_manager_unittest.cc
index 429b707936a9cf21273b8c157d32998bb7c61033..f621fe9bc89778af355af9f907e3c35055dfa944 100644
--- a/mojo/service_manager/service_manager_unittest.cc
+++ b/mojo/service_manager/service_manager_unittest.cc
@@ -150,19 +150,15 @@ class TestApp : public Application, public ServiceLoader {
BindServiceProvider(service_provider_handle.Pass());
}
- virtual void ConnectToService(const mojo::String& service_url,
- const mojo::String& service_name,
- ScopedMessagePipeHandle client_handle,
- const mojo::String& requestor_url)
+ virtual bool IsConnectionValid(const mojo::String& service_name,
+ const mojo::String& requestor_url)
MOJO_OVERRIDE {
if (requestor_url_.empty() || requestor_url_ == requestor_url) {
++num_connects_;
- Application::ConnectToService(service_url,
- service_name,
- client_handle.Pass(),
- requestor_url);
+ return true;
} else {
base::MessageLoop::current()->Quit();
+ return false;
}
}

Powered by Google App Engine
This is Rietveld 408576698