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

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

Issue 691623002: [Android] Remove non-static version of TouchCommon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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
« no previous file with comments | « content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java
index 711aa4d7ac5678ca4d3b9fd1b0f67c98962080bf..3cbb585e5a2f1e4aeedb78f05155b62e8c439976 100644
--- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java
+++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java
@@ -6,7 +6,6 @@ package org.chromium.content.browser.test.util;
import android.app.Activity;
import android.os.SystemClock;
-import android.test.ActivityInstrumentationTestCase2;
import android.test.TouchUtils;
import android.view.MotionEvent;
import android.view.View;
@@ -21,49 +20,8 @@ import java.util.concurrent.ExecutionException;
* Touch-related functionality reused across test cases.
*/
public class TouchCommon {
- private ActivityInstrumentationTestCase2<?> mActivityTestCase;
-
- // TODO(tedchoc): This method should receive and use an activity
- // instead of the ActivityInstrumentationTestCase2. However this is causing
- // problems downstream. Any fix for this should be landed downstream first.
- public TouchCommon(ActivityInstrumentationTestCase2<?> activityTestCase) {
- mActivityTestCase = activityTestCase;
- }
-
- /**
- * @see #dragStart(Activity, float, float, long)
- */
- public void dragStart(float x, float y, long downTime) {
- dragStart(mActivityTestCase.getActivity(), x, y, downTime);
- }
-
- /**
- * @see #dragTo(Activity, float, float, float, float, int, long)
- */
- public void dragTo(
- float fromX, float toX, float fromY, float toY, int stepCount, long downTime) {
- dragTo(mActivityTestCase.getActivity(), fromX, toX, fromY, toY, stepCount, downTime);
- }
-
- /**
- * @see #dragEnd(Activity, float, float, long)
- */
- public void dragEnd(float x, float y, long downTime) {
- dragEnd(mActivityTestCase.getActivity(), x, y, downTime);
- }
-
- /**
- * @see #singleClick(Activity, float, float)
- */
- public void singleClick(float x, float y) {
- singleClick(mActivityTestCase.getActivity(), x, y);
- }
-
- /**
- * @see #longPress(Activity, float, float)
- */
- public void longPress(float x, float y) {
- longPress(mActivityTestCase.getActivity(), x, y);
+ // Prevent instantiation.
+ private TouchCommon() {
}
/**
« no previous file with comments | « content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698