| Index: third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp b/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
|
| index f1e04492b92f551b1be9f5383d9a280ec06e06d0..bc544d4a6f1e3a87ffc4790777326f72f81297a4 100644
|
| --- a/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
|
| @@ -96,7 +96,7 @@ TEST(LinkLoaderTest, Preload)
|
| LinkLoader loader(&loaderClient);
|
| KURL hrefURL = KURL(KURL(), testCase.href);
|
| loader.loadLink(LinkRelAttribute("preload"),
|
| - AtomicString(),
|
| + CrossOriginAttributeNotSet,
|
| String(),
|
| testCase.as,
|
| hrefURL,
|
| @@ -140,7 +140,7 @@ TEST(LinkLoaderTest, DNSPrefetch)
|
| KURL hrefURL = KURL(KURL(ParsedURLStringTag(), String("http://example.com")), testCase.href);
|
| NetworkHintsMock networkHints;
|
| loader.loadLink(LinkRelAttribute("dns-prefetch"),
|
| - AtomicString(),
|
| + CrossOriginAttributeNotSet,
|
| String(),
|
| String(),
|
| hrefURL,
|
| @@ -155,15 +155,15 @@ TEST(LinkLoaderTest, Preconnect)
|
| {
|
| struct {
|
| const char* href;
|
| - const char* crossOrigin;
|
| + CrossOriginAttributeValue crossOrigin;
|
| const bool shouldLoad;
|
| const bool isHTTPS;
|
| const bool isCrossOrigin;
|
| } cases[] = {
|
| - {"http://example.com/", nullptr, true, false, false},
|
| - {"https://example.com/", nullptr, true, true, false},
|
| - {"http://example.com/", "anonymous", true, false, true},
|
| - {"//example.com/", nullptr, true, false, false},
|
| + {"http://example.com/", CrossOriginAttributeNotSet, true, false, false},
|
| + {"https://example.com/", CrossOriginAttributeNotSet, true, true, false},
|
| + {"http://example.com/", CrossOriginAttributeAnonymous, true, false, true},
|
| + {"//example.com/", CrossOriginAttributeNotSet, true, false, false},
|
| };
|
|
|
| // Test the cases with a single header
|
|
|