| 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 android.test.suitebuilder.annotation.SmallTest; | 7 import android.test.suitebuilder.annotation.SmallTest; |
| 8 | 8 |
| 9 import org.chromium.android_webview.AwContents; | 9 import org.chromium.android_webview.AwContents; |
| 10 import org.chromium.android_webview.test.util.CommonResources; | 10 import org.chromium.android_webview.test.util.CommonResources; |
| 11 import org.chromium.base.ThreadUtils; | 11 import org.chromium.base.ThreadUtils; |
| 12 import org.chromium.base.test.util.DisabledTest; | 12 import org.chromium.base.test.util.DisabledTest; |
| 13 import org.chromium.content.browser.NavigationEntry; | |
| 14 import org.chromium.content.browser.NavigationHistory; | |
| 15 import org.chromium.content.browser.test.util.HistoryUtils; | 13 import org.chromium.content.browser.test.util.HistoryUtils; |
| 16 import org.chromium.content.browser.test.util.TestCallbackHelperContainer; | 14 import org.chromium.content.browser.test.util.TestCallbackHelperContainer; |
| 15 import org.chromium.content_public.browser.NavigationEntry; |
| 16 import org.chromium.content_public.browser.NavigationHistory; |
| 17 import org.chromium.net.test.util.TestWebServer; | 17 import org.chromium.net.test.util.TestWebServer; |
| 18 | 18 |
| 19 import java.util.concurrent.Callable; | 19 import java.util.concurrent.Callable; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * Navigation history tests. | 22 * Navigation history tests. |
| 23 */ | 23 */ |
| 24 public class NavigationHistoryTest extends AwTestBase { | 24 public class NavigationHistoryTest extends AwTestBase { |
| 25 | 25 |
| 26 private static final String PAGE_1_PATH = "/page1.html"; | 26 private static final String PAGE_1_PATH = "/page1.html"; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 onPageFinishedHelper); | 309 onPageFinishedHelper); |
| 310 pollOnUiThread(new Callable<Boolean>() { | 310 pollOnUiThread(new Callable<Boolean>() { |
| 311 @Override | 311 @Override |
| 312 public Boolean call() { | 312 public Boolean call() { |
| 313 String title = mAwContents.getContentViewCore().getTitle(); | 313 String title = mAwContents.getContentViewCore().getTitle(); |
| 314 return LOGIN_RESPONSE_PAGE_TITLE.equals(title); | 314 return LOGIN_RESPONSE_PAGE_TITLE.equals(title); |
| 315 } | 315 } |
| 316 }); | 316 }); |
| 317 } | 317 } |
| 318 } | 318 } |
| OLD | NEW |