diff options
Diffstat (limited to 'android_webview/test')
-rw-r--r-- | android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java index 585e9d9..bac071f 100644 --- a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java +++ b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java @@ -6,6 +6,8 @@ package org.chromium.android_webview.shell; import android.app.Application; import android.content.Context; +import android.os.Debug; +import android.util.Log; import org.chromium.android_webview.AwBrowserProcess; import org.chromium.content.browser.ResourceExtractor; @@ -13,6 +15,7 @@ import org.chromium.content.common.CommandLine; public class AwShellApplication extends Application { + private static final String TAG = AwShellApplication.class.getName(); /** The minimum set of .pak files the test runner needs. */ private static final String[] MANDATORY_PAKS = { "webviewchromium.pak", "en-US.pak" @@ -26,6 +29,12 @@ public class AwShellApplication extends Application { CommandLine.initFromFile("/data/local/chrome-command-line"); + if (CommandLine.getInstance().hasSwitch(CommandLine.WAIT_FOR_JAVA_DEBUGGER)) { + Log.e(TAG, "Waiting for Java debugger to connect..."); + Debug.waitForDebugger(); + Log.e(TAG, "Java debugger connected. Resuming execution."); + } + ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAKS); ResourceExtractor.setExtractImplicitLocaleForTesting(false); AwBrowserProcess.loadLibrary(); |