| Index: android_webview/javatests/src/org/chromium/android_webview/test/GeolocationTest.java
|
| diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/GeolocationTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/GeolocationTest.java
|
| index efc827f29567e556669eaa4209a5830dc1e60bbe..54e07e369bb6dda25842a8353dbb16fd7f15e7b9 100644
|
| --- a/android_webview/javatests/src/org/chromium/android_webview/test/GeolocationTest.java
|
| +++ b/android_webview/javatests/src/org/chromium/android_webview/test/GeolocationTest.java
|
| @@ -107,7 +107,7 @@ public class GeolocationTest extends AwTestBase {
|
| }
|
|
|
| private void ensureGeolocationRunning(final boolean running) throws Exception {
|
| - poll(new Callable<Boolean>() {
|
| + pollInstrumentationThread(new Callable<Boolean>() {
|
| @Override
|
| public Boolean call() throws Exception {
|
| return mMockLocationProvider.isRunning() == running;
|
| @@ -128,7 +128,7 @@ public class GeolocationTest extends AwTestBase {
|
|
|
| mAwContents.evaluateJavaScriptForTests("initiate_getCurrentPosition();", null);
|
|
|
| - poll(new Callable<Boolean>() {
|
| + pollInstrumentationThread(new Callable<Boolean>() {
|
| @Override
|
| public Boolean call() throws Exception {
|
| return getPositionCountFromJS() == 1;
|
| @@ -136,7 +136,7 @@ public class GeolocationTest extends AwTestBase {
|
| });
|
|
|
| mAwContents.evaluateJavaScriptForTests("initiate_getCurrentPosition();", null);
|
| - poll(new Callable<Boolean>() {
|
| + pollInstrumentationThread(new Callable<Boolean>() {
|
| @Override
|
| public Boolean call() throws Exception {
|
| return getPositionCountFromJS() == 2;
|
| @@ -156,7 +156,7 @@ public class GeolocationTest extends AwTestBase {
|
|
|
| mAwContents.evaluateJavaScriptForTests("initiate_watchPosition();", null);
|
|
|
| - poll(new Callable<Boolean>() {
|
| + pollInstrumentationThread(new Callable<Boolean>() {
|
| @Override
|
| public Boolean call() throws Exception {
|
| return getPositionCountFromJS() > 1;
|
| @@ -174,7 +174,7 @@ public class GeolocationTest extends AwTestBase {
|
|
|
| mAwContents.evaluateJavaScriptForTests("initiate_watchPosition();", null);
|
|
|
| - poll(new Callable<Boolean>() {
|
| + pollInstrumentationThread(new Callable<Boolean>() {
|
| @Override
|
| public Boolean call() throws Exception {
|
| return getPositionCountFromJS() > 1;
|
| @@ -208,7 +208,7 @@ public class GeolocationTest extends AwTestBase {
|
|
|
| ensureGeolocationRunning(true);
|
|
|
| - poll(new Callable<Boolean>() {
|
| + pollInstrumentationThread(new Callable<Boolean>() {
|
| @Override
|
| public Boolean call() throws Exception {
|
| return getPositionCountFromJS() > 1;
|
| @@ -246,7 +246,7 @@ public class GeolocationTest extends AwTestBase {
|
|
|
| ensureGeolocationRunning(true);
|
|
|
| - poll(new Callable<Boolean>() {
|
| + pollInstrumentationThread(new Callable<Boolean>() {
|
| @Override
|
| public Boolean call() throws Exception {
|
| return getPositionCountFromJS() > 1;
|
| @@ -287,7 +287,7 @@ public class GeolocationTest extends AwTestBase {
|
|
|
| mAwContents.evaluateJavaScriptForTests("initiate_getCurrentPosition();", null);
|
|
|
| - poll(new Callable<Boolean>() {
|
| + pollInstrumentationThread(new Callable<Boolean>() {
|
| @SuppressFBWarnings("DM_GC")
|
| @Override
|
| public Boolean call() throws Exception {
|
|
|