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

COVERAGE SUMMARY FOR SOURCE FILE [ContentViewUtil.java]

nameclass, %method, %block, %line, %
ContentViewUtil.java100% (1/1)33%  (1/3)33%  (3/9)20%  (1/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ContentViewUtil100% (1/1)33%  (1/3)33%  (3/9)20%  (1/5)
ContentViewUtil (): void 0%   (0/1)0%   (0/3)0%   (0/2)
destroyNativeWebContents (int): void 0%   (0/1)0%   (0/3)0%   (0/2)
createNativeWebContents (boolean): int 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.chrome.browser;
6 
7/**
8 * This class provides a way to create the native WebContents required for instantiating a
9 * ContentView.
10 */
11public abstract class ContentViewUtil {
12    // Don't instantiate me.
13    private ContentViewUtil() {
14    }
15 
16    /**
17     * @return pointer to native WebContents instance, suitable for using with a
18     *         (java) ContentViewCore instance.
19     */
20    public static int createNativeWebContents(boolean incognito) {
21        return nativeCreateNativeWebContents(incognito);
22    }
23 
24    /**
25     * @param webContentsPtr The WebContents reference to be deleted.
26     */
27    public static void destroyNativeWebContents(int webContentsPtr) {
28        nativeDestroyNativeWebContents(webContentsPtr);
29    }
30 
31    private static native int nativeCreateNativeWebContents(boolean incognito);
32    private static native void nativeDestroyNativeWebContents(int webContentsPtr);
33}

[all classes][org.chromium.chrome.browser]
EMMA 2.0.5312 (C) Vladimir Roubtsov