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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.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
Index: chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
index 928f07c761be74e144e3d98db1918c921ec8bdcd..8999761efc4215a2610f2c4d5a79b6f404c264cf 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java
@@ -59,9 +59,9 @@ public class InfoBarTest extends ChromeShellTestBase {
List<InfoBar> infoBars = getActivity().getActiveTab().getInfoBarContainer().getInfoBars();
assertEquals("Wrong infobar count", 1, infoBars.size());
- assertTrue(InfoBarUtil.hasPrimaryButton(this, infoBars.get(0)));
- assertFalse(InfoBarUtil.hasSecondaryButton(this, infoBars.get(0)));
- InfoBarUtil.clickPrimaryButton(this, infoBars.get(0));
+ assertTrue(InfoBarUtil.hasPrimaryButton(infoBars.get(0)));
+ assertFalse(InfoBarUtil.hasSecondaryButton(infoBars.get(0)));
+ InfoBarUtil.clickPrimaryButton(infoBars.get(0));
assertTrue("InfoBar not removed.", mListener.removeInfoBarAnimationFinished());
assertEquals("Wrong infobar count", 0, infoBars.size());
@@ -83,8 +83,8 @@ public class InfoBarTest extends ChromeShellTestBase {
// Make sure it has OK/Cancel buttons.
List<InfoBar> infoBars = getActivity().getActiveTab().getInfoBarContainer().getInfoBars();
assertEquals("Wrong infobar count", 1, infoBars.size());
- assertTrue(InfoBarUtil.hasPrimaryButton(this, infoBars.get(0)));
- assertTrue(InfoBarUtil.hasSecondaryButton(this, infoBars.get(0)));
+ assertTrue(InfoBarUtil.hasPrimaryButton(infoBars.get(0)));
+ assertTrue(InfoBarUtil.hasSecondaryButton(infoBars.get(0)));
loadUrlWithSanitization(HELLO_WORLD_URL);
assertTrue("InfoBar not removed.", mListener.removeInfoBarAnimationFinished());

Powered by Google App Engine
This is Rietveld 408576698