Commit a81b884b authored by Junbo Ke's avatar Junbo Ke Committed by Commit Bot

[Chromecast] Fix url_util_unittest failure on Cast builds.

Origional CL: chromium/1818460

Bug: b/141260084
Test: content_unittests
Change-Id: I3ab645e0e45184e65e3ff07bd71ce17c2d3d1b25
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1823558Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Junbo Ke <juke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699561}
parent a202e02e
......@@ -41,8 +41,13 @@ TEST(UrlUtilsTest, IsSafeRedirectTarget) {
EXPECT_FALSE(IsSafeRedirectTarget(GURL(), CreateValidURL("about:blank")));
EXPECT_FALSE(IsSafeRedirectTarget(
GURL(), CreateValidURL("filesystem:http://foo.com/bar")));
#if !defined(CHROMECAST_BUILD)
EXPECT_FALSE(
IsSafeRedirectTarget(GURL(), CreateValidURL("data:text/plain,foo")));
#else
EXPECT_TRUE(
IsSafeRedirectTarget(GURL(), CreateValidURL("data:text/plain,foo")));
#endif
EXPECT_FALSE(
IsSafeRedirectTarget(GURL(), CreateValidURL("blob:https://foo.com/bar")));
#if defined(OS_ANDROID)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment