EMMA Coverage Report (generated Tue Aug 20 10:07:21 PDT 2013)
[all classes][org.chromium.content_browsertests_apk]

COVERAGE SUMMARY FOR SOURCE FILE [ContentBrowserTestsActivity.java]

nameclass, %method, %block, %line, %
ContentBrowserTestsActivity.java0%   (0/1)0%   (0/3)0%   (0/71)0%   (0/19)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ContentBrowserTestsActivity0%   (0/1)0%   (0/3)0%   (0/71)0%   (0/19)
ContentBrowserTestsActivity (): void 0%   (0/1)0%   (0/3)0%   (0/1)
onCreate (Bundle): void 0%   (0/1)0%   (0/60)0%   (0/16)
runTests (): void 0%   (0/1)0%   (0/8)0%   (0/2)

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_browsertests_apk;
6 
7import android.app.Activity;
8import android.content.Context;
9import android.os.Bundle;
10import android.view.LayoutInflater;
11import android.view.View;
12import android.util.Log;
13 
14import org.chromium.base.JNINamespace;
15import org.chromium.content.app.LibraryLoader;
16import org.chromium.content.browser.AndroidBrowserProcess;
17import org.chromium.content.common.ProcessInitException;
18import org.chromium.content_shell.ShellManager;
19import org.chromium.ui.WindowAndroid;
20 
21@JNINamespace("content")
22public class ContentBrowserTestsActivity extends Activity {
23    private static final String TAG = "ChromeBrowserTestsActivity";
24 
25    private ShellManager mShellManager;
26    private WindowAndroid mWindowAndroid;
27 
28    @Override
29    public void onCreate(Bundle savedInstanceState) {
30        super.onCreate(savedInstanceState);
31 
32        try {
33            LibraryLoader.ensureInitialized();
34        } catch (ProcessInitException e) {
35            Log.i(TAG, "Cannot load content_browsertests:" +  e);
36        }
37        AndroidBrowserProcess.initChromiumBrowserProcessForTests(getApplicationContext());
38 
39        LayoutInflater inflater =
40                (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
41        View view = inflater.inflate(R.layout.test_activity, null);
42        mShellManager = (ShellManager) view.findViewById(R.id.shell_container);
43        mWindowAndroid = new WindowAndroid(this);
44        mShellManager.setWindow(mWindowAndroid);
45 
46        Log.i(TAG, "Running tests");
47        runTests();
48        Log.i(TAG, "Tests finished.");
49        finish();
50    }
51 
52    private void runTests() {
53        nativeRunTests(getFilesDir().getAbsolutePath(), getApplicationContext());
54    }
55 
56    private native void nativeRunTests(String filesDir, Context appContext);
57}

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