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

Unified Diff: mojo/service_manager/service_manager_unittest.cc

Issue 423963004: First cut at "content handling" support in Mojo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more gn Created 6 years, 4 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 | « mojo/service_manager/service_manager.cc ('k') | mojo/services/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f42113f5a66ca4457dfe25c29e6c97d128c2b875..0f984c17daaecee726872df485700d9061ea2a34 100644
--- a/mojo/service_manager/service_manager_unittest.cc
+++ b/mojo/service_manager/service_manager_unittest.cc
@@ -118,12 +118,12 @@ class TestServiceLoader : public ServiceLoader,
private:
// ServiceLoader implementation.
- virtual void LoadService(
- ServiceManager* manager,
- const GURL& url,
- ScopedMessagePipeHandle service_provider_handle) OVERRIDE {
+ virtual void Load(ServiceManager* manager,
+ const GURL& url,
+ scoped_refptr<LoadCallbacks> callbacks) OVERRIDE {
++num_loads_;
- test_app_.reset(new ApplicationImpl(this, service_provider_handle.Pass()));
+ test_app_.reset(
+ new ApplicationImpl(this, callbacks->RegisterApplication().Pass()));
}
virtual void OnServiceError(ServiceManager* manager,
@@ -332,11 +332,11 @@ class Tester : public ApplicationDelegate,
virtual ~Tester() {}
private:
- virtual void LoadService(
- ServiceManager* manager,
- const GURL& url,
- ScopedMessagePipeHandle shell_handle) OVERRIDE {
- app_.reset(new ApplicationImpl(this, shell_handle.Pass()));
+ virtual void Load(ServiceManager* manager,
+ const GURL& url,
+ scoped_refptr<LoadCallbacks> callbacks) OVERRIDE {
+ app_.reset(
+ new ApplicationImpl(this, callbacks->RegisterApplication().Pass()));
}
virtual void OnServiceError(ServiceManager* manager,
« no previous file with comments | « mojo/service_manager/service_manager.cc ('k') | mojo/services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698