Index: chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarUtil.java |
diff --git a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarUtil.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarUtil.java |
index 128af87c202d8307204445dac815bf7e855ea066..cafacff426c42262ec3e4de0dee5495e5342bd6b 100644 |
--- a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarUtil.java |
+++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarUtil.java |
@@ -9,7 +9,7 @@ import android.view.View; |
import org.chromium.chrome.R; |
import org.chromium.chrome.browser.infobar.InfoBar; |
-import org.chromium.content.browser.test.util.TestTouchUtils; |
+import org.chromium.content.browser.test.util.TouchCommon; |
/** |
* Utility functions for dealing with InfoBars. |
@@ -23,7 +23,7 @@ public class InfoBarUtil { |
InfoBar infoBar, int buttonId, boolean click) { |
View button = infoBar.getContentWrapper().findViewById(buttonId); |
if (button == null) return false; |
- if (click) TestTouchUtils.singleClickView(test.getInstrumentation(), button); |
+ if (click) new TouchCommon(test).singleClickView(button); |
return true; |
} |