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

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

Issue 1839473002: Centralize the setting of Accept headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 c5b8395c59dd1caeb7e337138dfe8b6fdef8366c..3d39a17037c4e3f1afe14cf0b353ca1302df7056 100644
--- a/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
+++ b/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
@@ -168,7 +168,7 @@ TEST(LinkLoaderTest, Preload)
Resource* resource = preloads->begin().get()->get();
ASSERT_EQ(testCase.priority, resource->resourceRequest().priority());
ASSERT_EQ(testCase.context, resource->resourceRequest().requestContext());
- ASSERT_STREQ(testCase.accept, resource->accept().getString().ascii().data());
+ ASSERT_STREQ(testCase.accept, resource->resourceRequest().httpHeaderField(HTTPNames::Accept).ascii().data());
}
}
dummyPageHolder->document().fetcher()->clearPreloads();

Powered by Google App Engine
This is Rietveld 408576698