| Index: android_webview/javatests/src/org/chromium/android_webview/test/ClearHistoryTest.java
|
| ===================================================================
|
| --- android_webview/javatests/src/org/chromium/android_webview/test/ClearHistoryTest.java (revision 160963)
|
| +++ android_webview/javatests/src/org/chromium/android_webview/test/ClearHistoryTest.java (working copy)
|
| @@ -6,7 +6,6 @@
|
|
|
| import android.test.suitebuilder.annotation.SmallTest;
|
|
|
| -import org.chromium.android_webview.AwContents;
|
| import org.chromium.base.test.util.Feature;
|
| import org.chromium.content.browser.ContentViewCore;
|
| import org.chromium.content.browser.test.util.HistoryUtils;
|
| @@ -28,14 +27,12 @@
|
| @Feature({"History", "Main"})
|
| public void testClearHistory() throws Throwable {
|
| final TestAwContentsClient contentsClient = new TestAwContentsClient();
|
| - final AwTestContainerView testContainerView =
|
| - createAwTestContainerViewOnMainSync(contentsClient);
|
| - final AwContents awContents = testContainerView.getAwContents();
|
| - final ContentViewCore contentViewCore = testContainerView.getContentViewCore();
|
| + final ContentViewCore contentViewCore =
|
| + createAwTestContainerViewOnMainSync(contentsClient).getContentViewCore();
|
|
|
| OnPageFinishedHelper onPageFinishedHelper = contentsClient.getOnPageFinishedHelper();
|
| for (int i = 0; i < 3; i++) {
|
| - loadUrlSync(awContents, onPageFinishedHelper, URLS[i]);
|
| + loadUrlSync(contentViewCore, onPageFinishedHelper, URLS[i]);
|
| }
|
|
|
| HistoryUtils.goBackSync(getInstrumentation(), contentViewCore, onPageFinishedHelper);
|
|
|