| Index: content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java b/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
|
| index fe75a481d34994c4e2dd33abfb1ed2456b633d21..129f50dd1b9bc3058b4ac019787652f7e81d222a 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
|
| @@ -52,7 +52,7 @@ public class ChildProcessLauncher {
|
|
|
| static final int CALLBACK_FOR_UNKNOWN_PROCESS = 0;
|
| static final int CALLBACK_FOR_GPU_PROCESS = 1;
|
| - static final int CALLBACK_FOR_RENDERER_PROCESS = 2;
|
| + public static final int CALLBACK_FOR_RENDERER_PROCESS = 2;
|
| static final int CALLBACK_FOR_UTILITY_PROCESS = 3;
|
| static final int CALLBACK_FOR_DOWNLOAD_PROCESS = 4;
|
|
|
| @@ -796,7 +796,7 @@ public class ChildProcessLauncher {
|
| }
|
|
|
| @VisibleForTesting
|
| - static void triggerConnectionSetup(
|
| + public static void triggerConnectionSetup(
|
| final ChildProcessConnection connection,
|
| String[] commandLine,
|
| int childProcessId,
|
| @@ -940,7 +940,7 @@ public class ChildProcessLauncher {
|
| }
|
|
|
| @VisibleForTesting
|
| - static ChildProcessConnection allocateBoundConnectionForTesting(Context context,
|
| + public static ChildProcessConnection allocateBoundConnectionForTesting(Context context,
|
| ChildProcessCreationParams creationParams) {
|
| return allocateBoundConnection(context, null, true, false, creationParams);
|
| }
|
| @@ -949,7 +949,7 @@ public class ChildProcessLauncher {
|
| * Queue up a spawn requests for testing.
|
| */
|
| @VisibleForTesting
|
| - static void enqueuePendingSpawnForTesting(Context context, String[] commandLine,
|
| + public static void enqueuePendingSpawnForTesting(Context context, String[] commandLine,
|
| ChildProcessCreationParams creationParams, boolean inSandbox) {
|
| String packageName = creationParams != null ? creationParams.getPackageName()
|
| : context.getPackageName();
|
| @@ -967,7 +967,8 @@ public class ChildProcessLauncher {
|
| * allocator.
|
| */
|
| @VisibleForTesting
|
| - static int allocatedSandboxedConnectionsCountForTesting(Context context, String packageName) {
|
| + public static int allocatedSandboxedConnectionsCountForTesting(Context context,
|
| + String packageName) {
|
| initConnectionAllocatorsIfNecessary(context, true, packageName);
|
| return sSandboxedChildConnectionAllocatorMap.get(packageName)
|
| .allocatedConnectionsCountForTesting();
|
| @@ -975,7 +976,7 @@ public class ChildProcessLauncher {
|
|
|
| /** @return the count of services set up and working */
|
| @VisibleForTesting
|
| - static int connectedServicesCountForTesting() {
|
| + public static int connectedServicesCountForTesting() {
|
| return sServiceMap.size();
|
| }
|
|
|
| @@ -986,7 +987,7 @@ public class ChildProcessLauncher {
|
| * @return the count of pending spawns in the queue.
|
| */
|
| @VisibleForTesting
|
| - static int pendingSpawnsCountForTesting(Context context, String packageName,
|
| + public static int pendingSpawnsCountForTesting(Context context, String packageName,
|
| boolean inSandbox) {
|
| PendingSpawnQueue pendingSpawnQueue = getPendingSpawnQueue(context, packageName, inSandbox);
|
| synchronized (pendingSpawnQueue.mPendingSpawnsLock) {
|
|
|