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

Unified Diff: mojo/service_manager/background_shell_service_loader_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/background_shell_service_loader.cc ('k') | mojo/service_manager/service_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/service_manager/background_shell_service_loader_unittest.cc
diff --git a/mojo/service_manager/background_shell_service_loader_unittest.cc b/mojo/service_manager/background_shell_service_loader_unittest.cc
index 7469b0f7bb3ab4e2412a3bc805ad4746395012aa..8aeacba1f9080e789cbcfb67b970edef0d602b8a 100644
--- a/mojo/service_manager/background_shell_service_loader_unittest.cc
+++ b/mojo/service_manager/background_shell_service_loader_unittest.cc
@@ -16,9 +16,9 @@ class DummyLoader : public ServiceLoader {
virtual ~DummyLoader() {}
// ServiceLoader overrides:
- virtual void LoadService(ServiceManager* manager,
- const GURL& url,
- ScopedMessagePipeHandle shell_handle) OVERRIDE {
+ virtual void Load(ServiceManager* manager,
+ const GURL& url,
+ scoped_refptr<LoadCallbacks> callbacks) OVERRIDE {
if (simulate_app_quit_)
base::MessageLoop::current()->Quit();
}
@@ -49,7 +49,9 @@ TEST(BackgroundShellServiceLoaderTest, Load) {
BackgroundShellServiceLoader loader(real_loader.Pass(), "test",
base::MessageLoop::TYPE_DEFAULT);
MessagePipe dummy;
- loader.LoadService(NULL, GURL(), dummy.handle0.Pass());
+ scoped_refptr<ServiceLoader::SimpleLoadCallbacks> callbacks(
+ new ServiceLoader::SimpleLoadCallbacks(dummy.handle0.Pass()));
+ loader.Load(NULL, GURL(), callbacks);
}
} // namespace mojo
« no previous file with comments | « mojo/service_manager/background_shell_service_loader.cc ('k') | mojo/service_manager/service_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698