diff options
author | shouqun.liu@intel.com <shouqun.liu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-12 16:08:12 +0000 |
---|---|---|
committer | shouqun.liu@intel.com <shouqun.liu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-12 16:08:12 +0000 |
commit | 42c76329a78ac31d8cbc52568c9634a76f3511d7 (patch) | |
tree | 752843665e8aaf5c8fbc1d6a4eae0e93b99b91f7 /android_webview/test | |
parent | 8f6023bea0012eadbc32cbffb2585266e3bac527 (diff) | |
download | chromium_src-42c76329a78ac31d8cbc52568c9634a76f3511d7.zip chromium_src-42c76329a78ac31d8cbc52568c9634a76f3511d7.tar.gz chromium_src-42c76329a78ac31d8cbc52568c9634a76f3511d7.tar.bz2 |
[android_webview]Add wait for Java debugger for test shell of Webview.
BUG=
Review URL: https://chromiumcodereview.appspot.com/14159003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193945 0039d316-1c4b-4281-b951-d872f2087c98
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(); |