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

Side by Side Diff: base/test/android/java/src/org/chromium/base/ITestClient.aidl

Issue 2611323002: Relanding "Multiprocess test client: Android child process launcher rework." (Closed)
Patch Set: Addressed nyquist@'s comment + sync Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.base;
6
7 import org.chromium.base.FileDescriptorInfo;
8 import org.chromium.base.MainReturnCodeResult;
9
10 /**
11 * This interface is used to control child processes.
12 */
13 interface ITestClient {
14 /**
15 * Runs the native <code>main</code> method in that service's process.
16 * @param args the arguments passed to <code>main</code>
17 * @param fdsToMap a list of file descriptors that are mapped in the native co de
18 * in <code>base::GlobalDescriptors</code>.
19 * @return the process ID for the service's process.
20 */
21 int launch(in String[] args, in FileDescriptorInfo[] fdsToMap);
22
23 /**
24 * Blocks until the <code>main</code> method started with {@link #launch()} re turns, or returns
25 * immediately if main has already returned.
26 * @param timeoutMs time in milliseconds after which this method returns even if the main method
27 * has not returned yet.
28 * @return a result containing whether a timeout occured and the value returne d by the
29 * <code>main</code> method
30 */
31 MainReturnCodeResult waitForMainToReturn(int timeoutMs);
32
33 /**
34 * Forces the service process to terminate and block until the process stops.
35 * @param exitCode the exit code the process should terminate with.
36 * @return always true, a return value is only returned to force the call to b e synchronous.
37 */
38 boolean forceStopSynchronous(int exitCode);
39
40 /**
41 * Forces the service process to terminate.
42 * @param exitCode the exit code the process should terminate with.
43 */
44 void forceStop(int exitCode);
45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698