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

COVERAGE SUMMARY FOR SOURCE FILE [ContentShellPreconditionsTest.java]

nameclass, %method, %block, %line, %
ContentShellPreconditionsTest.java0%   (0/1)0%   (0/2)0%   (0/15)0%   (0/4)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ContentShellPreconditionsTest0%   (0/1)0%   (0/2)0%   (0/15)0%   (0/4)
ContentShellPreconditionsTest (): void 0%   (0/1)0%   (0/3)0%   (0/1)
testScreenIsOn (): void 0%   (0/1)0%   (0/12)0%   (0/3)

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_shell_apk;
6 
7import android.content.Context;
8import android.os.PowerManager;
9import android.test.suitebuilder.annotation.Smoke;
10 
11import org.chromium.base.test.util.Feature;
12 
13/**
14 * Test that verifies preconditions for tests to run.
15 */
16public class ContentShellPreconditionsTest extends ContentShellTestBase {
17    @Smoke
18    @Feature({"TestInfrastructure"})
19    public void testScreenIsOn() throws Exception {
20        PowerManager pm = (PowerManager) getInstrumentation().getContext().getSystemService(
21                Context.POWER_SERVICE);
22 
23        assertTrue("Many tests will fail if the screen is not on.", pm.isScreenOn());
24    }
25}

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