Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: content/shell/android/javatests/src/org/chromium/content_shell/ContentShellPreconditionsTest.java

Issue 11642050: [Android] Add test that asserts screen is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove network test Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
5 package org.chromium.content_shell;
6
7 import android.content.Context;
8 import android.os.PowerManager;
9 import android.test.suitebuilder.annotation.Smoke;
10
11 import org.chromium.base.test.util.Feature;
12
13 /**
14 * Test that verifies preconditions for tests to run.
15 */
16 public class ContentShellPreconditionsTest extends ContentShellTestBase {
17 @Smoke
18 @Feature({"TestInfrastructure"})
19 public void testScreenIsOn() throws Exception {
20 PowerManager pm = (PowerManager) getInstrumentation().getContext().getSy stemService(
21 Context.POWER_SERVICE);
22
23 assertTrue("Many tests will fail if the screen is not on.", pm.isScreenO n());
24 }
25 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698