| Index: android_webview/javatests/src/org/chromium/android_webview/test/AndroidWebViewTestRunnerApplication.java | 
| diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AndroidWebViewTestRunnerApplication.java b/android_webview/javatests/src/org/chromium/android_webview/test/AndroidWebViewTestRunnerApplication.java | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..a0aa00acbbd0121c001b8874f27ac83b0db366cf | 
| --- /dev/null | 
| +++ b/android_webview/javatests/src/org/chromium/android_webview/test/AndroidWebViewTestRunnerApplication.java | 
| @@ -0,0 +1,42 @@ | 
| +package org.chromium.android_webview.test; | 
| + | 
| +import android.app.Application; | 
| + | 
| +import org.chromium.base.PathUtils; | 
| +import org.chromium.content.app.LibraryLoader; | 
| +import org.chromium.content.browser.ResourceExtractor; | 
| +import org.chromium.content.common.CommandLine; | 
| + | 
| +import android.util.Log; | 
| + | 
| +public class AndroidWebViewTestRunnerApplication extends Application { | 
| + | 
| +    /** | 
| +     * The name of the library to load. | 
| +     */ | 
| +    private static final String NATIVE_LIBRARY = "webview"; | 
| + | 
| +    /** The minimum set of .pak files Chrome needs. */ | 
| +    private static final String[] CHROME_MANDATORY_PAKS = { | 
| +        "chrome.pak", "chrome_100_percent.pak", "en-US.pak", "resources.pak", | 
| +    }; | 
| + | 
| +    private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "webview"; | 
| + | 
| +    @Override | 
| +    public void onCreate() { | 
| +        super.onCreate(); | 
| +        initializeApplicationParameters(); | 
| +    } | 
| + | 
| +    /** Handles initializing the common application parameters. */ | 
| +    private static void initializeApplicationParameters() { | 
| +        CommandLine.initFromFile("/data/local/tmp/chrome-command-line"); | 
| +        PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); | 
| +        // We don't need to extract any paks because for WebView, they are | 
| +        // in the system image. | 
| +        ResourceExtractor.setMandatoryPaksToExtract(CHROME_MANDATORY_PAKS); | 
| +        LibraryLoader.setLibraryToLoad(NATIVE_LIBRARY); | 
| +        LibraryLoader.loadAndInitSync(); | 
| +    } | 
| +} | 
|  |