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

Unified Diff: Source/core/fetch/ClientHintsPreferencesTest.cpp

Issue 1287783003: Make ClientHintsPreferences class work like a class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/core/fetch/ClientHintsPreferences.cpp ('k') | Source/core/fetch/FetchRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ClientHintsPreferencesTest.cpp
diff --git a/Source/core/fetch/ClientHintsPreferencesTest.cpp b/Source/core/fetch/ClientHintsPreferencesTest.cpp
index e59f1a170c0d81942ae6c8e234455b7e02057ebd..285ec4abd0fe5d7db93dd670daaa72db72550482 100644
--- a/Source/core/fetch/ClientHintsPreferencesTest.cpp
+++ b/Source/core/fetch/ClientHintsPreferencesTest.cpp
@@ -32,7 +32,7 @@ TEST_F(ClientHintsPreferencesTest, Basic)
ClientHintsPreferences preferences;
const char* value = testCase.headerValue;
- handleAcceptClientHintsHeader(value, preferences, nullptr);
+ preferences.updateFromAcceptClientHintsHeader(value, nullptr);
EXPECT_EQ(testCase.expectationResourceWidth, preferences.shouldSendResourceWidth());
EXPECT_EQ(testCase.expectationDPR, preferences.shouldSendDPR());
EXPECT_EQ(testCase.expectationViewportWidth, preferences.shouldSendViewportWidth());
« no previous file with comments | « Source/core/fetch/ClientHintsPreferences.cpp ('k') | Source/core/fetch/FetchRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698