| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.android_webview.test; | 5 package org.chromium.android_webview.test; |
| 6 | 6 |
| 7 import java.util.concurrent.Callable; | 7 import org.chromium.android_webview.AwContents; |
| 8 |
| 8 import java.util.concurrent.CountDownLatch; | 9 import java.util.concurrent.CountDownLatch; |
| 9 import java.util.concurrent.TimeUnit; | 10 import java.util.concurrent.TimeUnit; |
| 10 import java.util.concurrent.TimeoutException; | 11 import java.util.concurrent.TimeoutException; |
| 11 | 12 |
| 12 import org.chromium.android_webview.AwContents; | |
| 13 | |
| 14 /** | 13 /** |
| 15 * Base class for WebView find-in-page API tests. | 14 * Base class for WebView find-in-page API tests. |
| 16 */ | 15 */ |
| 17 public class WebViewFindApisTestBase extends AwTestBase { | 16 public class WebViewFindApisTestBase extends AwTestBase { |
| 18 | 17 |
| 19 private static final String WOODCHUCK = | 18 private static final String WOODCHUCK = |
| 20 "How much WOOD would a woodchuck chuck if a woodchuck could chuck wO
oD?"; | 19 "How much WOOD would a woodchuck chuck if a woodchuck could chuck wO
oD?"; |
| 21 | 20 |
| 22 private FindResultListener mFindResultListener; | 21 private FindResultListener mFindResultListener; |
| 23 private AwContents mContents; | 22 private AwContents mContents; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 151 |
| 153 /** | 152 /** |
| 154 * Sets the value of this Future. | 153 * Sets the value of this Future. |
| 155 */ | 154 */ |
| 156 protected void set(int value) { | 155 protected void set(int value) { |
| 157 mValue = value; | 156 mValue = value; |
| 158 mLatch.countDown(); | 157 mLatch.countDown(); |
| 159 } | 158 } |
| 160 } | 159 } |
| 161 } | 160 } |
| OLD | NEW |