/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
AwLegacyQuirksTest.java | 9 import org.chromium.android_webview.AwContents; 30 final AwContents awContents = testContainerView.getAwContents(); 31 AwSettings settings = getAwSettingsOnUiThread(awContents); 45 loadDataSync(awContents, onPageFinishedHelper, pageDeviceDpi, "text/html", false); 46 int actualWidth = Integer.parseInt(getTitleOnUiThread(awContents)); 52 loadDataSync(awContents, onPageFinishedHelper, pageHighDpi, "text/html", false); 53 actualWidth = Integer.parseInt(getTitleOnUiThread(awContents)); 56 loadDataSync(awContents, onPageFinishedHelper, pageDpi100, "text/html", false); 57 actualWidth = Integer.parseInt(getTitleOnUiThread(awContents)); [all...] |
WebViewModalDialogOverrideTest.java | 14 import org.chromium.android_webview.AwContents; 51 final AwContents awContents = view.getAwContents(); 53 enableJavaScriptOnUiThread(awContents); 54 loadDataSync(awContents, client.getOnPageFinishedHelper(), 56 executeJavaScriptAndWaitForResult(awContents, client, 84 final AwContents awContents = view.getAwContents(); 86 enableJavaScriptOnUiThread(awContents); 87 loadDataSync(awContents, client.getOnPageFinishedHelper() [all...] |
AwTestBase.java | 16 import org.chromium.android_webview.AwContents; 83 public void enableJavaScriptOnUiThread(final AwContents awContents) { 87 awContents.getSettings().setJavaScriptEnabled(true); 92 public void setNetworkAvailableOnUiThread(final AwContents awContents, 97 awContents.setNetworkAvailable(networkUp); 105 public void loadUrlSync(final AwContents awContents, 108 loadUrlSync(awContents, onPageFinishedHelper, url, null) [all...] |
AwJavaBridgeTest.java | 9 import org.chromium.android_webview.AwContents; 33 final AwContents awContents = mTestContainerView.getAwContents(); 42 awContents.destroy(); 45 // Destroying one AwContents from within the JS callback should still 55 enableJavaScriptOnUiThread(awContents); 59 awContents.addPossiblyUnsafeJavascriptInterface(new Test(), "test", null); 63 loadDataSync(awContents, mContentsClient.getOnPageFinishedHelper(), HTML, 68 awContents, mContentsClient, "typeof test.destroy")); 69 awContents.evaluateJavaScript("test.destroy()", null) [all...] |
AwContentsTest.java | 20 import org.chromium.android_webview.AwContents; 40 * AwContents tests. 72 AwContents awContents = testView.getAwContents(); 74 loadUrlSync(awContents, mContentsClient.getOnPageFinishedHelper(), "about:blank"); 75 destroyAwContentsOnMainSync(awContents); 111 return AwContents.getNativeInstanceCount() <= MAX_IDLE_INSTANCES; 119 assertTrue(AwContents.getNativeInstanceCount() >= CONCURRENT_INSTANCES); 120 assertTrue(AwContents.getNativeInstanceCount() <= (i + 1) * CONCURRENT_INSTANCES); 134 return AwContents.getNativeInstanceCount() <= MAX_IDLE_INSTANCES [all...] |
MediaAccessPermissionRequestTest.java | 9 import org.chromium.android_webview.AwContents; 87 final AwContents awContents = testContainerView.getAwContents(); 88 enableJavaScriptOnUiThread(awContents); 90 loadUrlAsync(awContents, mWebRTCPage, null); 92 pollTitleAs("grant", awContents); 109 final AwContents awContents = testContainerView.getAwContents(); 110 enableJavaScriptOnUiThread(awContents); 112 loadUrlAsync(awContents, mWebRTCPage, null) [all...] |
AwContentsClientShouldOverrideUrlLoadingTest.java | 10 import org.chromium.android_webview.AwContents; 48 private void clickOnLinkUsingJs(final AwContents awContents, 50 enableJavaScriptOnUiThread(awContents); 51 JSUtils.clickOnLinkUsingJs(this, awContents, 122 final AwContents awContents = testContainerView.getAwContents(); 126 loadDataSync(awContents, contentsClient.getOnPageFinishedHelper(), 132 private void waitForNavigationRunnableAndAssertTitleChanged(AwContents awContents, [all...] |
LoadUrlTest.java | 12 import org.chromium.android_webview.AwContents; 43 final AwContents awContents = testContainerView.getAwContents(); 44 loadDataSync(awContents, contentsClient.getOnPageFinishedHelper(), data, 46 assertEquals(expectedTitle, getTitleOnUiThread(awContents)); 59 final AwContents awContents = testContainerView.getAwContents(); 60 loadDataSync(awContents, contentsClient.getOnPageFinishedHelper(), data, 62 assertEquals(expectedTitle, getTitleOnUiThread(awContents)); 76 final AwContents awContents = testContainerView.getAwContents() [all...] |
AwContentsClientVisitedHistoryTest.java | 10 import org.chromium.android_webview.AwContents; 16 * Tests for AwContentsClient.getVisitedHistory and AwContents.doUpdateVisitedHistory callbacks. 97 AwContents awContents = testView.getAwContents(); 109 loadUrlAsync(awContents, pageUrl); 116 loadUrlAsync(awContents, pageUrl); 137 AwContents awContents = testView.getAwContents(); 147 loadUrlSync(awContents, mContentsClient.getOnPageFinishedHelper(), pageUrl); 154 loadUrlSync(awContents, mContentsClient.getOnPageFinishedHelper(), pageUrl) [all...] |
SaveRestoreStateTest.java | 10 import org.chromium.android_webview.AwContents; 27 public final AwContents awContents; 34 this.awContents = testView.getAwContents(); 35 this.contentViewCore = this.awContents.getContentViewCore(); 85 loadUrlSync(vars.awContents, 122 boolean result = vars.awContents.saveState(bundle); 124 result = restoredVars.awContents.restoreState(bundle); 157 invalidState.putByteArray(AwContents.SAVE_RESTORE_STATE_KEY, 162 return mVars.awContents.restoreState(invalidState) [all...] |
AwContentsClientGetVideoLoadingProgressViewTest.java | 10 import org.chromium.android_webview.AwContents; 64 final AwContents awContents = testContainerView.getAwContents(); 65 awContents.getSettings().setFullscreenSupported(true); 66 enableJavaScriptOnUiThread(awContents); 70 loadUrlSync(awContents, contentsClient.getOnPageFinishedHelper(),
|
AwSettingsTest.java | 23 import org.chromium.android_webview.AwContents; 64 protected final AwContents mAwContents; [all...] |
ClearHistoryTest.java | 7 import org.chromium.android_webview.AwContents; 38 final AwContents awContents = testContainerView.getAwContents(); 43 loadUrlSync(awContents, onPageFinishedHelper, URLS[i]);
|
AndroidScrollIntegrationTest.java | 12 import org.chromium.android_webview.AwContents; 118 // NOTE: this simply disables handling the gesture, flinging the AwContents 217 private void assertScrollInJs(final AwContents awContents, 223 String x = executeJavaScriptAndWaitForResult(awContents, contentsClient, 225 String y = executeJavaScriptAndWaitForResult(awContents, contentsClient, 233 private void assertScrolledToBottomInJs(final AwContents awContents, 240 String r = executeJavaScriptAndWaitForResult(awContents, contentsClient, 585 AwContents awContents = testContainerView.getAwContents() [all...] |
AwContentsClientAutoLoginTest.java | 10 import org.chromium.android_webview.AwContents; 28 AwContents awContents = testView.getAwContents(); 42 loadUrlAsync(awContents, pageUrl);
|
AndroidViewIntegrationTest.java | 12 import org.chromium.android_webview.AwContents; 239 private void loadPageOfSizeAndWaitForSizeChange(AwContents awContents, 245 loadDataAsync(awContents, htmlData, "text/html", false); 362 final AwContents awContents = testContainerView.getAwContents(); 380 loadDataAsync(awContents, htmlBuilder.toString(), "text/html", false);
|
NavigationHistoryTest.java | 9 import org.chromium.android_webview.AwContents; 39 private AwContents mAwContents; 44 AwContents.setShouldDownloadFavicons(); 58 private NavigationHistory getNavigationHistory(final AwContents awContents) 63 return awContents.getContentViewCore().getNavigationHistory();
|
AwContentsClientShouldInterceptRequestTest.java | 10 import org.chromium.android_webview.AwContents; 146 private AwContents mAwContents; 444 // Now the AwContents is "stuck" waiting for the SlowInputStream to finish reading so we 458 return AwContents.getNativeInstanceCount() == 0; 500 private String getHeaderValue(AwContents awContents, TestAwContentsClient contentsClient, 510 String header = executeJavaScriptAndWaitForResult(awContents, contentsClient, syncGetJs); [all...] |
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/util/ |
JSUtils.java | 13 import org.chromium.android_webview.AwContents; 27 final AwContents awContents, 35 String linkIsNotNull = executeJavaScriptAndWaitForResult(testCase, awContents, 50 awContents.getContentViewCore().evaluateJavaScript( 62 final AwContents awContents, 69 awContents.getContentViewCore(), code);
|
VideoTestUtil.java | 7 import org.chromium.android_webview.AwContents; 27 final AwContents awContents = 32 AwSettings awSettings = awContents.getSettings(); 35 observer.register(awContents.getContentViewCore(), "javaObserver"); 49 testCase.loadDataAsync(awContents, data, "text/html", false);
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
AwZoomControls.java | 17 private AwContents mAwContents; 21 AwZoomControls(AwContents awContents) { 22 mAwContents = awContents;
|
NullAwViewMethods.java | 17 import org.chromium.android_webview.AwContents.InternalAccessDelegate; 25 private AwContents mAwContents; 30 AwContents awContents, InternalAccessDelegate internalAccessAdapter, 32 mAwContents = awContents; 45 // attached to the AwContents. As such, we don't have any contents to measure
|
AwContentViewClient.java | 85 private AwContents mAwContents; 89 AwContentsClient awContentsClient, AwSettings awSettings, AwContents awContents, 93 mAwContents = awContents;
|
AwContents.java | 72 * Exposes the native AwContents class, and together these classes wrap the ContentViewCore 80 public class AwContents { 81 private static final String TAG = "AwContents"; 107 * Interface that consumers of {@link AwContents} must implement to allow the proper 138 * Interface that consumers of {@link AwContents} must implement to support 149 * |containerView| is the view where the AwContents should be drawn. 164 * certain AwContents dependencies. 537 * @param awSettings AwSettings instance used to configure the AwContents. 541 public AwContents(AwBrowserContext browserContext, ViewGroup containerView, Context context, 555 public AwContents(AwBrowserContext browserContext, ViewGroup containerView, Context context [all...] |
/external/chromium_org/android_webview/test/shell/src/org/chromium/android_webview/test/ |
AwTestContainerView.java | 22 import org.chromium.android_webview.AwContents; 26 * A View used for testing the AwContents internals. 31 private AwContents mAwContents; 32 private AwContents.NativeGLDelegate mNativeGLDelegate; 33 private AwContents.InternalAccessDelegate mInternalAccessDelegate; 44 public void initialize(AwContents awContents) { 45 mAwContents = awContents; 52 public AwContents getAwContents() { 56 public AwContents.NativeGLDelegate getNativeGLDelegate() [all...] |