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

Unified Diff: mojo/shell/tests/connect/connect_test.mojom

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
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 | « mojo/shell/tests/connect/BUILD.gn ('k') | mojo/shell/tests/connect/connect_test_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/tests/connect/connect_test.mojom
diff --git a/mojo/shell/tests/connect/connect_test.mojom b/mojo/shell/tests/connect/connect_test.mojom
deleted file mode 100644
index 55d76702b6e96af461211a49486539c82efaad08..0000000000000000000000000000000000000000
--- a/mojo/shell/tests/connect/connect_test.mojom
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2016 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.
-
-module mojo.shell.test.mojom;
-
-import "mojo/shell/public/interfaces/connector.mojom";
-
-interface ConnectTestService {
- GetTitle() => (string title);
- GetInstance() => (string instance);
-};
-
-interface ClassInterface {
- Ping() => (string response);
-};
-
-// Interface implemented by a standalone (non-package) app,
-// mojo:connect_test_app.
-interface StandaloneApp {
- // Attempts to connect to an application whose name is explicitly allowed by
- // the standalone app's CapabilitySpec, but whose enclosing package is not.
- // The connection should be blocked and title should be "uninitialized".
- ConnectToAllowedAppInBlockedPackage() => (string title);
-
- // Connects to mojo:connect_test_class_app & requests ClassInterface from it.
- // This should be permitted because mojo:connect_test_app requests class
- // "class" from mojo:connect_test_class_app, which mojo:connect_test_class_app
- // defines as including ClassInterface.
- // The response contains the response from ClassInterface::Ping() and
- // ConnectTestService::GetTitle().
- ConnectToClassInterface() => (string class_interface_response, string title);
-};
-
-interface UserIdTest {
- // Attempts to connect to mojo:connect_test_class_app as |user_id|.
- // The callback takes the connection response result, and the identity
- // mojo:connect_test_class_app was run as, which should match |user_id|.
- ConnectToClassAppAsDifferentUser(mojo.shell.mojom.Identity target) =>
- (int32 connection_result, mojo.shell.mojom.Identity target);
-};
-
-interface ClientProcessTest {
- // Attempts to launch a bare exe and connect to it using the
- // ClientProcessConnection param to Connector::Connect(). The callback takes
- // the result of the connection, and the identity of the app that the caller
- // can use to connect to this app as well.
- LaunchAndConnectToProcess() =>
- (int32 connection_result, mojo.shell.mojom.Identity target);
-};
-
-struct ConnectionState {
- string connection_local_name;
- string connection_remote_name;
- string connection_remote_userid;
- uint32 connection_remote_id;
- string initialize_local_name;
- string initialize_userid;
- uint32 initialize_id;
-};
-
-interface ExposedInterface {
- ConnectionAccepted(ConnectionState state);
-};
-
-interface BlockedInterface {
- GetTitleBlocked() => (string blocked_title);
-};
« no previous file with comments | « mojo/shell/tests/connect/BUILD.gn ('k') | mojo/shell/tests/connect/connect_test_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698