Fix TranslateInfobarTests and move to ChromePublic.
commit9c85e158e64e2392d9cfab12a454aab8d9edecc9
authornewt <newt@chromium.org>
Mon, 27 Jul 2015 23:55:33 +0000 (27 16:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Jul 2015 23:57:13 +0000 (27 23:57 +0000)
treef5eb50191ce7679902c459fcb1e0409204a933f5
parenta8bc7e058e1b016826b1e954068a165949e82710
Fix TranslateInfobarTests and move to ChromePublic.

This fixes the tests so they now pass on local devices. Unfortunately,
they still fail on the bots because the bots have an old version of
Google Play Services installed (and that can't be fixed easily; see
http://crbug.com/514449).

Fixes:
 - Clear data before running the test, since that resets the count of how many
   times the translate infobar has been dismissed and affects when the "never
   translate?" infobar will appear
 - Wait for the infobar to finish swapping before checking the state of the
   "never translate?" infobar

BUG=505040

Review URL: https://codereview.chromium.org/1251213002

Cr-Commit-Position: refs/heads/master@{#340608}
chrome/android/javatests/src/org/chromium/chrome/browser/infobar/TranslateInfoBarTest2.java [deleted file]
chrome/android/javatests/src/org/chromium/chrome/browser/translate/TranslateInfoBarTest.java [new file with mode: 0644]
chrome/android/javatests_shell/src/org/chromium/chrome/browser/translate/TranslateInfoBarTest.java [deleted file]
chrome/test/android/javatests/src/org/chromium/chrome/test/util/TranslateUtil.java