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

Unified Diff: content/test/data/web_ui_mojo_shell_test.js

Issue 1889253002: Remove uses of shell::Loader from content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/test/data/web_ui_mojo_shell_test.html ('k') | content/utility/utility_process_control_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/web_ui_mojo_shell_test.js
diff --git a/content/test/data/web_ui_mojo_shell_test.js b/content/test/data/web_ui_mojo_shell_test.js
deleted file mode 100644
index 63a020844f59472864a242997bee4c979f03ba73..0000000000000000000000000000000000000000
--- a/content/test/data/web_ui_mojo_shell_test.js
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-
-/**
- * This URL is defined in content/public/test/test_mojo_app.cc. It identifies
- * content_shell's out-of-process Mojo test app.
- */
-var TEST_APP_URL = 'system:content_mojo_test';
-
-
-define('main', [
- 'mojo/public/js/core',
- 'mojo/public/js/router',
- 'services/shell/public/interfaces/connector.mojom',
- 'content/public/renderer/frame_service_registry',
- 'content/public/test/test_mojo_service.mojom',
-], function (core, router, connectorMojom, serviceRegistry, testMojom) {
-
- var connectToService = function(serviceProvider, iface) {
- var pipe = core.createMessagePipe();
- var service = new iface.proxyClass(new router.Router(pipe.handle0));
- serviceProvider.getInterface(iface.name, pipe.handle1);
- return service;
- };
-
- return function() {
- domAutomationController.setAutomationId(0);
- var connectorPipe =
- serviceRegistry.connectToService(connectorMojom.Connector.name);
- var connector = new connectorMojom.Connector.proxyClass(
- new router.Router(connectorPipe));
-
- var identity = {};
- identity.name = TEST_APP_URL;
- identity.user_id = connectorMojom.kInheritUserID;
- identity.instance = "";
- connector.connect(
- identity,
- function (services) {
- var test = connectToService(services, testMojom.TestMojoService);
- test.getRequestorName().then(function(response) {
- domAutomationController.send(
- response.name == 'chrome://mojo-web-ui/');
- });
- },
- function (exposedServices) {},
- null);
- };
-});
« no previous file with comments | « content/test/data/web_ui_mojo_shell_test.html ('k') | content/utility/utility_process_control_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698