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

Unified Diff: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/KeyUtils.java

Issue 141533006: [Android] Move the java content/ package to content_public/ to start the split. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small fixes and findbugs line update Created 6 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/KeyUtils.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/KeyUtils.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/KeyUtils.java
deleted file mode 100644
index 0abbe97bb2970f3b7a2e2cc41116a17cdce2e0f9..0000000000000000000000000000000000000000
--- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/KeyUtils.java
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.content.browser.test.util;
-
-import android.app.Instrumentation;
-import android.view.KeyEvent;
-
-/**
- * Collection of keyboard utilities.
- */
-public class KeyUtils {
- /**
- * Press "Enter".
- */
- public static void pressEnter(Instrumentation instrumentation) {
- instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN,
- KeyEvent.KEYCODE_ENTER));
- instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP,
- KeyEvent.KEYCODE_ENTER));
- instrumentation.waitForIdleSync();
- }
-
- /**
- * Press "Tab".
- */
- public static void pressTab(Instrumentation instrumentation) {
- instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN,
- KeyEvent.KEYCODE_TAB));
- instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP,
- KeyEvent.KEYCODE_TAB));
- instrumentation.waitForIdleSync();
- }
-
- /**
- * Press "Backspace".
- */
- public static void pressBackspace(Instrumentation instrumentation) {
- instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN,
- KeyEvent.KEYCODE_DEL));
- instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP,
- KeyEvent.KEYCODE_DEL));
- instrumentation.waitForIdleSync();
- }
-
- /**
- * Press "Back".
- */
- public static void pressBack(Instrumentation instrumentation) {
- instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN,
- KeyEvent.KEYCODE_BACK));
- instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP,
- KeyEvent.KEYCODE_BACK));
- instrumentation.waitForIdleSync();
- }
-
- /**
- * Input a String.
- */
- public static void inputString(Instrumentation instrumentation, String text) {
- instrumentation.sendStringSync(text);
- instrumentation.waitForIdleSync();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698