Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp

Issue 2753053004: Improve preload related priorities (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 67d0c6b4be37f7981942335716c2088b86bd2dd3..5e15b1e39429b029976fbae60a4f82fd49c47e41 100644
--- a/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
+++ b/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
@@ -115,8 +115,8 @@ TEST(LinkLoaderTest, Preload) {
ResourceLoadPriorityLow, WebURLRequest::RequestContextTrack, true, true,
ReferrerPolicyDefault},
{"http://example.test/cat.woff", "font", "", "", ReferrerPolicyDefault,
- ResourceLoadPriorityVeryHigh, WebURLRequest::RequestContextFont, true,
- true, ReferrerPolicyDefault},
+ ResourceLoadPriorityHigh, WebURLRequest::RequestContextFont, true, true,
+ ReferrerPolicyDefault},
// TODO(yoav): subresource should be *very* low priority (rather than
// low).
{"http://example.test/cat.empty", "", "", "", ReferrerPolicyDefault,
@@ -170,7 +170,7 @@ TEST(LinkLoaderTest, Preload) {
ReferrerPolicyDefault, ResourceLoadPriorityUnresolved,
WebURLRequest::RequestContextTrack, false, false, ReferrerPolicyDefault},
{"http://example.test/cat.woff", "font", "font/woff2", "",
- ReferrerPolicyDefault, ResourceLoadPriorityVeryHigh,
+ ReferrerPolicyDefault, ResourceLoadPriorityHigh,
WebURLRequest::RequestContextFont, true, true, ReferrerPolicyDefault},
{"http://example.test/cat.woff", "font", "font/woff84", "",
ReferrerPolicyDefault, ResourceLoadPriorityUnresolved,

Powered by Google App Engine
This is Rietveld 408576698