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

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

Issue 2724543002: Renamed deviceScaleFactor() to deviceScaleFactorDeprecated() in Page (Closed)
Patch Set: Rebase Created 3 years, 10 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/FrameFetchContextTest.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
index 65ae5c77e396607cc2fb96e537c5d7493702f913..7e846d2e627ef73ce847fcab3cf3446f7d2be992 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
@@ -105,7 +105,7 @@ class FrameFetchContextTest : public ::testing::Test {
protected:
void SetUp() override {
dummyPageHolder = DummyPageHolder::create(IntSize(500, 500));
- dummyPageHolder->page().setDeviceScaleFactor(1.0);
+ dummyPageHolder->page().setDeviceScaleFactorDeprecated(1.0);
document = &dummyPageHolder->document();
fetchContext =
static_cast<FrameFetchContext*>(&document->fetcher()->context());
@@ -197,7 +197,7 @@ class FrameFetchContextMockedLocalFrameClientTest
client = new testing::NiceMock<MockLocalFrameClient>();
dummyPageHolder =
DummyPageHolder::create(IntSize(500, 500), nullptr, client);
- dummyPageHolder->page().setDeviceScaleFactor(1.0);
+ dummyPageHolder->page().setDeviceScaleFactorDeprecated(1.0);
document = &dummyPageHolder->document();
document->setURL(mainResourceUrl);
fetchContext =
@@ -495,7 +495,7 @@ TEST_F(FrameFetchContextHintsTest, MonitorDPRHints) {
preferences.setShouldSendDPR(true);
document->clientHintsPreferences().updateFrom(preferences);
expectHeader("http://www.example.com/1.gif", "DPR", true, "1");
- dummyPageHolder->page().setDeviceScaleFactor(2.5);
+ dummyPageHolder->page().setDeviceScaleFactorDeprecated(2.5);
expectHeader("http://www.example.com/1.gif", "DPR", true, "2.5");
expectHeader("http://www.example.com/1.gif", "Width", false, "");
expectHeader("http://www.example.com/1.gif", "Viewport-Width", false, "");
@@ -509,7 +509,7 @@ TEST_F(FrameFetchContextHintsTest, MonitorResourceWidthHints) {
expectHeader("http://www.example.com/1.gif", "Width", true, "500", 500);
expectHeader("http://www.example.com/1.gif", "Width", true, "667", 666.6666);
expectHeader("http://www.example.com/1.gif", "DPR", false, "");
- dummyPageHolder->page().setDeviceScaleFactor(2.5);
+ dummyPageHolder->page().setDeviceScaleFactorDeprecated(2.5);
expectHeader("http://www.example.com/1.gif", "Width", true, "1250", 500);
expectHeader("http://www.example.com/1.gif", "Width", true, "1667", 666.6666);
}
@@ -637,7 +637,7 @@ TEST_F(FrameFetchContextTest, SetFirstPartyCookieAndRequestorOrigin) {
<< test.serializedOrigin);
// Set up a new document to ensure sandbox flags are cleared:
dummyPageHolder = DummyPageHolder::create(IntSize(500, 500));
- dummyPageHolder->page().setDeviceScaleFactor(1.0);
+ dummyPageHolder->page().setDeviceScaleFactorDeprecated(1.0);
document = &dummyPageHolder->document();
FrameFetchContext::provideDocumentToContext(*fetchContext, document.get());

Powered by Google App Engine
This is Rietveld 408576698