/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
D | ClientOnPageFinishedTest.java | 41 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in testOnPageFinishedPassesCorrectUrl() local 45 int currentCallCount = onPageFinishedHelper.getCallCount(); in testOnPageFinishedPassesCorrectUrl() 48 onPageFinishedHelper.waitForCallback(currentCallCount); in testOnPageFinishedPassesCorrectUrl() 49 assertEquals("data:text/html," + html, onPageFinishedHelper.getUrl()); in testOnPageFinishedPassesCorrectUrl() 98 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in testOnPageFinishedCalledAfterError() local 102 loadUrlSync(mAwContents, onPageFinishedHelper, invalidUrl); in testOnPageFinishedCalledAfterError() 105 assertEquals(invalidUrl, onPageFinishedHelper.getUrl()); in testOnPageFinishedCalledAfterError() 111 loadUrlSync(mAwContents, onPageFinishedHelper, "about:blank"); in testOnPageFinishedCalledAfterError() 140 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in testOnPageFinishedCalledAfterRedirectedUrlIsOverridden() local 143 final int currentOnPageFinishedCallCount = onPageFinishedHelper.getCallCount(); in testOnPageFinishedCalledAfterRedirectedUrlIsOverridden() [all …]
|
D | AwLegacyQuirksTest.java | 32 CallbackHelper onPageFinishedHelper = contentClient.getOnPageFinishedHelper(); in testTargetDensityDpi() local 45 loadDataSync(awContents, onPageFinishedHelper, pageDeviceDpi, "text/html", false); in testTargetDensityDpi() 52 loadDataSync(awContents, onPageFinishedHelper, pageHighDpi, "text/html", false); in testTargetDensityDpi() 56 loadDataSync(awContents, onPageFinishedHelper, pageDpi100, "text/html", false); in testTargetDensityDpi() 69 CallbackHelper onPageFinishedHelper = contentClient.getOnPageFinishedHelper(); in testWideViewportInitialScaleDoesNotExpandFixedLayoutWidth() local 80 loadDataSync(awContents, onPageFinishedHelper, page, "text/html", false); in testWideViewportInitialScaleDoesNotExpandFixedLayoutWidth() 95 CallbackHelper onPageFinishedHelper = contentClient.getOnPageFinishedHelper(); in testZeroValuesQuirk() local 106 loadDataSync(awContents, onPageFinishedHelper, page, "text/html", false); in testZeroValuesQuirk() 113 loadDataSync(awContents, onPageFinishedHelper, page, "text/html", false); in testZeroValuesQuirk() 127 CallbackHelper onPageFinishedHelper = contentClient.getOnPageFinishedHelper(); in testScreenSizeInPhysicalPixelsQuirk() local [all …]
|
D | AwTestBase.java | 106 CallbackHelper onPageFinishedHelper, in loadUrlSync() argument 108 loadUrlSync(awContents, onPageFinishedHelper, url, null); in loadUrlSync() 112 CallbackHelper onPageFinishedHelper, in loadUrlSync() argument 115 int currentCallCount = onPageFinishedHelper.getCallCount(); in loadUrlSync() 117 onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_MS, in loadUrlSync() 122 CallbackHelper onPageFinishedHelper, in loadUrlSyncAndExpectError() argument 126 int onFinishedCallCount = onPageFinishedHelper.getCallCount(); in loadUrlSyncAndExpectError() 130 onPageFinishedHelper.waitForCallback(onFinishedCallCount, 1, WAIT_TIMEOUT_MS, in loadUrlSyncAndExpectError() 159 CallbackHelper onPageFinishedHelper, final String url, in postUrlSync() argument 161 int currentCallCount = onPageFinishedHelper.getCallCount(); in postUrlSync() [all …]
|
D | NavigationHistoryTest.java | 130 final TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = 135 loadUrlSync(mAwContents, onPageFinishedHelper, page1Url); 136 loadUrlSync(mAwContents, onPageFinishedHelper, page2Url); 163 final TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = 171 loadUrlSync(mAwContents, onPageFinishedHelper, page1Url); 172 loadUrlSync(mAwContents, onPageFinishedHelper, page2Url); 175 onPageFinishedHelper); 278 final TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = 286 loadUrlSync(mAwContents, onPageFinishedHelper, loginPageUrl); 309 onPageFinishedHelper);
|
D | ClearHistoryTest.java | 41 OnPageFinishedHelper onPageFinishedHelper = contentsClient.getOnPageFinishedHelper(); in testClearHistory() local 43 loadUrlSync(awContents, onPageFinishedHelper, URLS[i]); in testClearHistory() 46 HistoryUtils.goBackSync(getInstrumentation(), contentViewCore, onPageFinishedHelper); in testClearHistory() local
|
D | ClientOnPageStartedTest.java | 91 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in testOnPageStartedCalledOnceOnError() local 95 loadUrlSync(mAwContents, onPageFinishedHelper, invalidUrl); in testOnPageStartedCalledOnceOnError() 104 loadUrlSync(mAwContents, onPageFinishedHelper, "about:blank"); in testOnPageStartedCalledOnceOnError()
|
D | AwContentsClientOnFormResubmissionTest.java | 113 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in doReload() local 115 int callCount = onPageFinishedHelper.getCallCount(); in doReload() 126 onPageFinishedHelper.waitForCallback(callCount, 1, TIMEOUT, TimeUnit.SECONDS); in doReload()
|
D | ClientOnReceivedErrorTest.java | 76 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in testNoErrorOnFailedSubresourceLoad() local 79 int currentCallCount = onPageFinishedHelper.getCallCount(); in testNoErrorOnFailedSubresourceLoad() 85 onPageFinishedHelper.waitForCallback(currentCallCount); in testNoErrorOnFailedSubresourceLoad()
|
D | LoadDataWithBaseUrlTest.java | 219 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in testOnPageFinishedUrlIsBaseUrl() local 221 assertEquals(baseUrl, onPageFinishedHelper.getUrl()); in testOnPageFinishedUrlIsBaseUrl() 258 final TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in testHistoryUrlNavigation() local 260 loadDataSync(mAwContents, onPageFinishedHelper, page2Html, "text/html", false); in testHistoryUrlNavigation() 263 HistoryUtils.goBackSync(getInstrumentation(), mContentViewCore, onPageFinishedHelper); in testHistoryUrlNavigation() local
|
D | AwSettingsTest.java | 1679 CallbackHelper onPageFinishedHelper = contentClient.getOnPageFinishedHelper(); in testUserAgentStringOverrideForHistory() local 1696 awContents, onPageFinishedHelper, page1, "text/html", false); in testUserAgentStringOverrideForHistory() 1699 awContents, onPageFinishedHelper, page2, "text/html", false); in testUserAgentStringOverrideForHistory() 1704 HistoryUtils.goBackSync(getInstrumentation(), contentView, onPageFinishedHelper); in testUserAgentStringOverrideForHistory() local 1707 onPageFinishedHelper); in testUserAgentStringOverrideForHistory() local 2496 AwTestContainerView testContainer, CallbackHelper onPageFinishedHelper) in useWideViewportLayoutWidthTest() argument 2520 loadDataSync(awContents, onPageFinishedHelper, pageNoViewport, "text/html", false); in useWideViewportLayoutWidthTest() 2525 loadDataSync(awContents, onPageFinishedHelper, pageViewportDeviceWidth, "text/html", false); in useWideViewportLayoutWidthTest() 2530 awContents, onPageFinishedHelper, pageViewportSpecifiedWidth, "text/html", false); in useWideViewportLayoutWidthTest() 2539 loadDataSync(awContents, onPageFinishedHelper, pageNoViewport, "text/html", false); in useWideViewportLayoutWidthTest() [all …]
|
D | LoadUrlTest.java | 87 CallbackHelper onPageFinishedHelper, in loadUrlWithExtraHeadersSync() argument 90 int currentCallCount = onPageFinishedHelper.getCallCount(); in loadUrlWithExtraHeadersSync() 99 onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_MS, in loadUrlWithExtraHeadersSync()
|
D | AwContentsTest.java | 420 CallbackHelper onPageFinishedHelper = mContentsClient.getOnPageFinishedHelper(); in testEscapingOfErrorPage() local 421 int currentCallCount = onPageFinishedHelper.getCallCount(); in testEscapingOfErrorPage() 424 onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_MS, in testEscapingOfErrorPage()
|
D | AwContentsClientShouldOverrideUrlLoadingTest.java | 133 CallbackHelper onPageFinishedHelper, in waitForNavigationRunnableAndAssertTitleChanged() argument 135 final int callCount = onPageFinishedHelper.getCallCount(); in waitForNavigationRunnableAndAssertTitleChanged() 138 onPageFinishedHelper.waitForCallback(callCount); in waitForNavigationRunnableAndAssertTitleChanged()
|
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
D | HistoryUtils.java | 132 final ContentViewCore contentViewCore, CallbackHelper onPageFinishedHelper, 134 int currentCallCount = onPageFinishedHelper.getCallCount(); 143 onPageFinishedHelper.waitForCallback(currentCallCount, 1, 30, TimeUnit.SECONDS); 158 CallbackHelper onPageFinishedHelper) throws Throwable { 159 int currentCallCount = onPageFinishedHelper.getCallCount(); 167 onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS, 181 CallbackHelper onPageFinishedHelper) throws Throwable { 182 int currentCallCount = onPageFinishedHelper.getCallCount(); 190 onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS,
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
D | JavaBridgeBasicsTest.java | 112 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in injectObjectAndReload() local 114 int currentCallCount = onPageFinishedHelper.getCallCount(); in injectObjectAndReload() 123 onPageFinishedHelper.waitForCallback(currentCallCount); in injectObjectAndReload() 127 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in synchronousPageReload() local 129 int currentCallCount = onPageFinishedHelper.getCallCount(); in synchronousPageReload() 136 onPageFinishedHelper.waitForCallback(currentCallCount); in synchronousPageReload() 191 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in testRemoveObjectNotAdded() local 193 int currentCallCount = onPageFinishedHelper.getCallCount(); in testRemoveObjectNotAdded() 201 onPageFinishedHelper.waitForCallback(currentCallCount); in testRemoveObjectNotAdded() 350 TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper = in testSameObjectInjectedMultipleTimes() local [all …]
|
D | GestureDetectorResetTest.java | 98 final OnPageFinishedHelper onPageFinishedHelper = in testSeparateClicksAreRegisteredOnReload() local 105 int currentCallCount = onPageFinishedHelper.getCallCount(); in testSeparateClicksAreRegisteredOnReload() 112 onPageFinishedHelper.waitForCallback(currentCallCount, 1, in testSeparateClicksAreRegisteredOnReload() 119 currentCallCount = onPageFinishedHelper.getCallCount(); in testSeparateClicksAreRegisteredOnReload() 127 onPageFinishedHelper.waitForCallback(currentCallCount, 1, in testSeparateClicksAreRegisteredOnReload()
|
D | ContentDetectionTestBase.java | 86 OnPageFinishedHelper onPageFinishedHelper = in scrollAndTapNavigatingOut() local 88 int currentCallCount = onPageFinishedHelper.getCallCount(); in scrollAndTapNavigatingOut() 93 onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS, in scrollAndTapNavigatingOut()
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/input/ |
D | SelectPopupTest.java | 77 final OnPageFinishedHelper onPageFinishedHelper = viewClient.getOnPageFinishedHelper(); in testReloadWhilePopupShowing() local 85 int currentCallCount = onPageFinishedHelper.getCallCount(); in testReloadWhilePopupShowing() 93 onPageFinishedHelper.waitForCallback(currentCallCount, 1, in testReloadWhilePopupShowing()
|