Description[Reland] Fix org.chromium.chrome.browser.GeolocationTest
The geolocation tests did not work because:
- They referred to incorrect test pages.
Correct test pages:
https://chrome-internal-review.googlesource.com/#/c/27084/3/test/data/android/geolocation/geolocation_on_load.html
https://chrome-internal-review.googlesource.com/#/c/27084/3/test/data/android/geolocation/geolocation_watch_on_load.html
- A race condition was causing LocationProviderAdapter.newLocationAvailable() to
be often called prior to LocationProviderFactory.LocationProvider.start().
In addition to fixing the above problems, this CL makes
org.chromium.chrome.browser.GeolocationTest more similar to
- org.chromium.android_webview.test.GeolocationTest
- org.chromium.content.browser.ContentViewLocationTest
In particular, all of the tests now:
- Use the same test page
- Use MockLocationProvider
BUG=141518
Test=Less flakiness
Committed: https://crrev.com/54d1c1e5d856c74aa0394cbf0fd1f30e63708702
Cr-Commit-Position: refs/heads/master@{#371257}
Patch Set 1 #Patch Set 2 : #
Messages
Total messages: 8 (3 generated)
|