| Index: third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp b/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
|
| index df588a0dc8294dbbd0258efe7a24d1c2921eb68b..d66eed6bac8030abe91bff67f96fc8a850028fa4 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
|
| @@ -7,6 +7,7 @@
|
| #include "core/dom/Document.h"
|
| #include "core/frame/csp/CSPSource.h"
|
| #include "core/frame/csp/ContentSecurityPolicy.h"
|
| +#include "platform/network/ResourceRequest.h"
|
| #include "platform/weborigin/KURL.h"
|
| #include "platform/weborigin/SchemeRegistry.h"
|
| #include "platform/weborigin/SecurityOrigin.h"
|
| @@ -187,14 +188,14 @@ TEST_F(CSPSourceListTest, RedirectMatching)
|
| CSPSourceList sourceList(csp.get(), "script-src");
|
| parseSourceList(sourceList, sources);
|
|
|
| - EXPECT_TRUE(sourceList.matches(KURL(base, "http://example1.com/foo/"), ContentSecurityPolicy::DidRedirect));
|
| - EXPECT_TRUE(sourceList.matches(KURL(base, "http://example1.com/bar/"), ContentSecurityPolicy::DidRedirect));
|
| - EXPECT_TRUE(sourceList.matches(KURL(base, "http://example2.com/bar/"), ContentSecurityPolicy::DidRedirect));
|
| - EXPECT_TRUE(sourceList.matches(KURL(base, "http://example2.com/foo/"), ContentSecurityPolicy::DidRedirect));
|
| - EXPECT_TRUE(sourceList.matches(KURL(base, "https://example1.com/foo/"), ContentSecurityPolicy::DidRedirect));
|
| - EXPECT_TRUE(sourceList.matches(KURL(base, "https://example1.com/bar/"), ContentSecurityPolicy::DidRedirect));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "http://example1.com/foo/"), ResourceRequest::RedirectStatus::FollowedRedirect));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "http://example1.com/bar/"), ResourceRequest::RedirectStatus::FollowedRedirect));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "http://example2.com/bar/"), ResourceRequest::RedirectStatus::FollowedRedirect));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "http://example2.com/foo/"), ResourceRequest::RedirectStatus::FollowedRedirect));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "https://example1.com/foo/"), ResourceRequest::RedirectStatus::FollowedRedirect));
|
| + EXPECT_TRUE(sourceList.matches(KURL(base, "https://example1.com/bar/"), ResourceRequest::RedirectStatus::FollowedRedirect));
|
|
|
| - EXPECT_FALSE(sourceList.matches(KURL(base, "http://example3.com/foo/"), ContentSecurityPolicy::DidRedirect));
|
| + EXPECT_FALSE(sourceList.matches(KURL(base, "http://example3.com/foo/"), ResourceRequest::RedirectStatus::FollowedRedirect));
|
| }
|
|
|
| } // namespace blink
|
|
|