EMMA Coverage Report (generated Fri Aug 23 16:39:17 PDT 2013)
[all classes][org.chromium.android_webview.shell]

COVERAGE SUMMARY FOR SOURCE FILE [AwShellApplication.java]

nameclass, %method, %block, %line, %
AwShellApplication.java100% (1/1)100% (3/3)79%  (33/42)79%  (11/14)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AwShellApplication100% (1/1)100% (3/3)79%  (33/42)79%  (11/14)
onCreate (): void 100% (1/1)67%  (18/27)75%  (9/12)
<static initializer> 100% (1/1)100% (12/12)100% (1/1)
AwShellApplication (): void 100% (1/1)100% (3/3)100% (1/1)

1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4 
5package org.chromium.android_webview.shell;
6 
7import android.app.Application;
8import android.content.Context;
9import android.os.Debug;
10import android.util.Log;
11 
12import org.chromium.android_webview.AwBrowserProcess;
13import org.chromium.content.browser.ResourceExtractor;
14import org.chromium.content.common.CommandLine;
15 
16public class AwShellApplication extends Application {
17 
18    private static final String TAG = "AwShellApplication";
19    /** The minimum set of .pak files the test runner needs. */
20    private static final String[] MANDATORY_PAKS = {
21        "webviewchromium.pak", "en-US.pak"
22    };
23 
24    @Override
25    public void onCreate() {
26        super.onCreate();
27 
28        AwShellResourceProvider.registerResources(this);
29 
30        CommandLine.initFromFile("/data/local/tmp/android-webview-command-line");
31 
32        if (CommandLine.getInstance().hasSwitch(CommandLine.WAIT_FOR_JAVA_DEBUGGER)) {
33           Log.e(TAG, "Waiting for Java debugger to connect...");
34           Debug.waitForDebugger();
35           Log.e(TAG, "Java debugger connected. Resuming execution.");
36        }
37 
38        ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAKS);
39        ResourceExtractor.setExtractImplicitLocaleForTesting(false);
40        AwBrowserProcess.loadLibrary();
41        AwBrowserProcess.start(this);
42    }
43}

[all classes][org.chromium.android_webview.shell]
EMMA 2.0.5312 (C) Vladimir Roubtsov