Home
last modified time | relevance | path

Searched refs:CommonResources (Results 1 – 19 of 19) sorted by relevance

/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/
DLoadDataWithBaseUrlTest.java12 import org.chromium.android_webview.test.util.CommonResources;
94 webServer.setResponseBase64("/" + CommonResources.FAVICON_FILENAME, in testImageLoad()
95 CommonResources.FAVICON_DATA_BASE64, CommonResources.getImagePngHeaders(true)); in testImageLoad()
102 CommonResources.getOnImageLoadedHtml(CommonResources.FAVICON_FILENAME), in testImageLoad()
119 CommonResources.getTextJavascriptHeaders(true)); in testScriptLoad()
137 final String frameUrl = webServer.setResponse("/" + CommonResources.ABOUT_FILENAME, in testSameOrigin()
138 CommonResources.ABOUT_HTML, CommonResources.getTextHtmlHeaders(true)); in testSameOrigin()
156 final String frameUrl = webServer.setResponse("/" + CommonResources.ABOUT_FILENAME, in testCrossOrigin()
157 CommonResources.ABOUT_HTML, CommonResources.getTextHtmlHeaders(true)); in testCrossOrigin()
188 loadDataWithBaseUrlAsync(mAwContents, CommonResources.ABOUT_HTML, "text/html", false, in testloadDataWithBaseUrlCallsOnPageStarted()
[all …]
DNavigationHistoryTest.java10 import org.chromium.android_webview.test.util.CommonResources;
82 CommonResources.makeHtmlPageFrom(
85 CommonResources.getTextHtmlHeaders(false));
90 CommonResources.makeHtmlPageFrom(
93 CommonResources.getTextHtmlHeaders(false));
98 CommonResources.makeHtmlPageFrom(
101 CommonResources.getTextHtmlHeaders(false));
206 mWebServer.setResponseBase64("/" + CommonResources.FAVICON_FILENAME,
207 CommonResources.FAVICON_DATA_BASE64, CommonResources.getImagePngHeaders(false));
209 CommonResources.FAVICON_STATIC_HTML, null);
[all …]
DAwContentsClientFaviconTest.java14 import org.chromium.android_webview.test.util.CommonResources;
31 CommonResources.makeHtmlPageFrom(
40 CommonResources.makeHtmlPageFrom(
114 CommonResources.FAVICON_DATA_BASE64, CommonResources.getImagePngHeaders(true)); in testReceiveBasicFavicon()
116 CommonResources.getTextHtmlHeaders(true)); in testReceiveBasicFavicon()
141 CommonResources.getTextHtmlHeaders(true)); in testDoNotMakeRequestForFaviconAfter404()
164 CommonResources.getTextHtmlHeaders(true)); in testReceiveBasicTouchIconLinkRel()
DAwContentsClientShouldInterceptRequestTest.java13 import org.chromium.android_webview.test.util.CommonResources;
131 return addPageToTestServer(webServer, "/" + CommonResources.ABOUT_FILENAME, in addAboutPageToTestServer()
132 CommonResources.ABOUT_HTML); in addAboutPageToTestServer()
182 assertEquals(CommonResources.ABOUT_TITLE, getTitleOnUiThread(mAwContents)); in testCalledWithCorrectUrlParam()
190 CommonResources.makeHtmlPageFrom("", in testCalledWithCorrectIsMainFrameParam()
208 CommonResources.makeHtmlPageWithSimplePostFormTo(pageToPostToUrl)); in testCalledWithCorrectMethodParam()
230 CommonResources.makeHtmlPageWithSimpleLinkTo(aboutPageUrl)); in testCalledWithCorrectHasUserGestureParam()
253 CommonResources.ABOUT_HTML); in testCalledWithCorrectHeadersParam()
255 CommonResources.makeHtmlPageFrom("", in testCalledWithCorrectHeadersParam()
580 return CommonResources.makeHtmlPageFrom("<title>" + title + "</title>", in makePageWithTitle()
[all …]
DAwContentsClientShouldOverrideUrlLoadingTest.java11 import org.chromium.android_webview.test.util.CommonResources;
72 return CommonResources.makeHtmlPageFrom(getTestPageCommonHeaders() + headers, body); in makeHtmlPageFrom()
127 CommonResources.makeHtmlPageWithSimpleLinkTo(DATA_URL), "text/html", false); in testNotCalledOnLoadUrl()
155 CommonResources.makeHtmlPageFrom("<title>" + title + "</title>", ""), in testNotCalledOnBackForwardNavigation()
210 CommonResources.makeHtmlPageWithSimpleLinkTo(getTestPageCommonHeaders(), in testCantBlockLoads()
228 CommonResources.makeHtmlPageWithSimpleLinkTo(DATA_URL), "text/html", false); in testCalledBeforeOnPageStarted()
253 CommonResources.makeHtmlPageWithSimpleLinkTo(DATA_URL), "text/html", false); in testDoesNotCauseOnReceivedError()
295 CommonResources.makeHtmlPageWithSimpleLinkTo(anchorLinkUrl + "#anchor")); in doTestNotCalledForAnchorNavigations()
299 CommonResources.makeHtmlPageWithSimpleLinkTo("#anchor"), "text/html", false); in doTestNotCalledForAnchorNavigations()
329 CommonResources.makeHtmlPageWithSimpleLinkTo(DATA_URL), "text/html", false); in testCalledWhenLinkClicked()
[all …]
DWebKitHitTestTest.java17 import org.chromium.android_webview.test.util.CommonResources;
61 return CommonResources.makeHtmlPageFrom("", "<a class=\"full_view\" href=\"" + in fullPageLink()
282 String page = CommonResources.makeHtmlPageFrom("", "<a class=\"full_view\" href=\"" + in srcImgeAnchorTypeTestBody()
308 String page = CommonResources.makeHtmlPageFrom("", "<a class=\"full_view\" href=\"" + in srcImgeAnchorTypeRelativeUrlTestBody()
334 String page = CommonResources.makeHtmlPageFrom("", in testImgeType()
343 String page = CommonResources.makeHtmlPageFrom("", in editTextTypeTestBody()
394 String page = CommonResources.makeHtmlPageFrom( in testUnknownTypeUnrecognizedNode()
418 String html = CommonResources.makeHtmlPageFrom( in testUnfocusedNodeAndTouchRace()
DAndroidViewIntegrationTest.java15 import org.chromium.android_webview.test.util.CommonResources;
151 loadUrlAsync(testContainerView.getAwContents(), CommonResources.ABOUT_HTML);
173 loadUrlAsync(testContainerView.getAwContents(), CommonResources.ABOUT_HTML);
199 loadUrlAsync(testContainerView.getAwContents(), CommonResources.ABOUT_HTML);
209 return CommonResources.makeHtmlPageFrom(
284 final String htmlData = CommonResources.makeHtmlPageFrom(
DLoadUrlTest.java14 import org.chromium.android_webview.test.util.CommonResources;
148 final String imagePath = "/" + CommonResources.FAVICON_FILENAME; in testLoadUrlWithExtraHeaders()
150 CommonResources.FAVICON_DATA_BASE64, CommonResources.getImagePngHeaders(true)); in testLoadUrlWithExtraHeaders()
154 CommonResources.getOnImageLoadedHtml(CommonResources.FAVICON_FILENAME), in testLoadUrlWithExtraHeaders()
DAwContentsClientOnScaleChangedTest.java10 import org.chromium.android_webview.test.util.CommonResources;
38 CommonResources.ABOUT_HTML, "text/html", false); in testScaleUp()
DAwContentsTest.java23 import org.chromium.android_webview.test.util.CommonResources;
60 mContentsClient.getOnPageFinishedHelper(), CommonResources.ABOUT_HTML); in testCreateLoadPageDestroy()
146 mContentsClient.getOnPageFinishedHelper(), CommonResources.ABOUT_HTML); in testUseAwSettingsAfterDestroy()
287 "/" + CommonResources.FAVICON_FILENAME, CommonResources.FAVICON_DATA_BASE64, in testGetFavicon()
288 CommonResources.getImagePngHeaders(false)); in testGetFavicon()
290 CommonResources.FAVICON_STATIC_HTML, null); in testGetFavicon()
DCookieManagerStartupTest.java15 import org.chromium.android_webview.test.util.CommonResources;
68 String url = webServer.setResponse(path, CommonResources.ABOUT_HTML, null); in testStartup()
DMediaAccessPermissionRequestTest.java11 import org.chromium.android_webview.test.util.CommonResources;
63 CommonResources.getTextHtmlHeaders(true)); in setUp()
DSaveRestoreStateTest.java11 import org.chromium.android_webview.test.util.CommonResources;
80 String html = CommonResources.makeHtmlPageFrom( in setServerResponseAndLoad()
DClientOnPageFinishedTest.java10 import org.chromium.android_webview.test.util.CommonResources;
261 final String testHtml = CommonResources.makeHtmlPageFrom("", in doTestOnPageFinishedCalledForHrefNavigations()
DAndroidScrollIntegrationTest.java15 import org.chromium.android_webview.test.util.CommonResources;
170 return CommonResources.makeHtmlPageFrom(TEST_PAGE_COMMON_HEADERS, content);
569 CommonResources.makeHtmlPageFrom(pageHeaders, TEST_PAGE_COMMON_CONTENT),
DAwSettingsTest.java28 import org.chromium.android_webview.test.util.CommonResources;
2005 CommonResources.getImagePngHeaders(true)); in testBlockNetworkLoadsWithHttpResources()
2347 CommonResources.getContentTypeAndCacheHeaders("text/cache-manifest", false)); in ManifestTestHelper()
2786 httpServer.setResponseBase64(IMG_URL, CommonResources.FAVICON_DATA_BASE64, null); in testAllowMixedMode()
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/util/
DImagePageGenerator.java46 return CommonResources.getOnImageLoadedHtml(imageSrc); in getPageTemplateSource()
60 CommonResources.getImagePngHeaders(false)); in getPageUrl()
DVideoTestWebServer.java61 return CommonResources.getContentTypeAndCacheHeaders("video/webm", disableCache); in getWebmHeaders()
65 return CommonResources.getContentTypeAndCacheHeaders("text/html", disableCache); in getHTMLHeaders()
DCommonResources.java15 public class CommonResources { class