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

Side by Side Diff: content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ChildProcessLauncherTestUtils.java

Issue 2845243002: Moving BindingManager and ChildProcessConnection to base/.
Patch Set: Moving BindingManager and ChildProcessConnection to base/. Created 3 years, 7 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content_shell_apk; 5 package org.chromium.content_shell_apk;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 8
9 import org.chromium.base.process_launcher.BaseChildProcessConnection;
9 import org.chromium.base.process_launcher.ChildProcessCreationParams; 10 import org.chromium.base.process_launcher.ChildProcessCreationParams;
10 import org.chromium.base.process_launcher.FileDescriptorInfo; 11 import org.chromium.base.process_launcher.FileDescriptorInfo;
11 import org.chromium.base.process_launcher.IChildProcessService; 12 import org.chromium.base.process_launcher.IChildProcessService;
12 import org.chromium.content.browser.BaseChildProcessConnection;
13 import org.chromium.content.browser.ChildProcessLauncher; 13 import org.chromium.content.browser.ChildProcessLauncher;
14 import org.chromium.content.browser.LauncherThread; 14 import org.chromium.content.browser.LauncherThread;
15 15
16 import java.util.concurrent.Callable; 16 import java.util.concurrent.Callable;
17 import java.util.concurrent.FutureTask; 17 import java.util.concurrent.FutureTask;
18 import java.util.concurrent.Semaphore; 18 import java.util.concurrent.Semaphore;
19 19
20 /** An assortment of static methods used in tests that deal with launching child processes. */ 20 /** An assortment of static methods used in tests that deal with launching child processes. */
21 public final class ChildProcessLauncherTestUtils { 21 public final class ChildProcessLauncherTestUtils {
22 // Do not instanciate, use static methods instead. 22 // Do not instanciate, use static methods instead.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 public static IChildProcessService getConnectionService( 94 public static IChildProcessService getConnectionService(
95 final BaseChildProcessConnection connection) { 95 final BaseChildProcessConnection connection) {
96 return runOnLauncherAndGetResult(new Callable<IChildProcessService>() { 96 return runOnLauncherAndGetResult(new Callable<IChildProcessService>() {
97 @Override 97 @Override
98 public IChildProcessService call() { 98 public IChildProcessService call() {
99 return connection.getService(); 99 return connection.getService();
100 } 100 }
101 }); 101 });
102 } 102 }
103 } 103 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698