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

COVERAGE SUMMARY FOR SOURCE FILE [ContentMain.java]

nameclass, %method, %block, %line, %
ContentMain.java100% (1/1)67%  (2/3)62%  (5/8)75%  (3/4)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ContentMain100% (1/1)67%  (2/3)62%  (5/8)75%  (3/4)
ContentMain (): void 0%   (0/1)0%   (0/3)0%   (0/1)
initApplicationContext (Context): void 100% (1/1)100% (3/3)100% (2/2)
start (): int 100% (1/1)100% (2/2)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.content.app;
6 
7import android.content.Context;
8 
9import org.chromium.base.JNINamespace;
10 
11/**
12 * This class is used to initialize all types of process. It corresponds to
13 * content/public/app/content_main.h which is not used in Android as it has
14 * the different initialization process.
15 *
16 * TODO (michaelbai): Refactorying the BrowserProcessMain.java and the
17 * ChildProcessService.java to start ContentMain, and run the process
18 * specific initialization code in ContentMainRunner::Initialize.
19 *
20 **/
21@JNINamespace("content")
22public class ContentMain {
23    /**
24     * Initialize application context in native side.
25     **/
26    public static void initApplicationContext(Context context) {
27        nativeInitApplicationContext(context);
28    }
29 
30    /**
31     * Start the ContentMainRunner in native side.
32     **/
33    public static int start() {
34        return nativeStart();
35    }
36 
37    private static native void nativeInitApplicationContext(Context context);
38    private static native int nativeStart();
39};

[all classes][org.chromium.content.app]
EMMA 2.0.5312 (C) Vladimir Roubtsov